Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions src/audio/volume/volume_hifi3.c
Original file line number Diff line number Diff line change
Expand Up @@ -122,8 +122,8 @@ static void vol_s24_to_s24_s32(struct processing_module *mod, struct input_strea
out_sample = AE_MULFP32X2RS(volume, AE_SLAI32(in_sample, 8));
#endif

/* Shift and round for S24_LE */
out_sample = AE_SRAI32R(out_sample, 8);
/* Shift to S24_LE */
out_sample = AE_SRAI32(out_sample, 8);

/* Store the output sample */
AE_SA32X2_IP(out_sample, outu, out);
Expand Down
4 changes: 2 additions & 2 deletions src/audio/volume/volume_hifi3_with_peakvol.c
Original file line number Diff line number Diff line change
Expand Up @@ -91,8 +91,8 @@ static void vol_s24_to_s24_s32(struct processing_module *mod, struct input_strea
out_sample = AE_MULFP32X2RS(volume, AE_SLAI32(in_sample, 8));
#endif

/* Shift and round for S24_LE */
out_sample = AE_SRAI32R(out_sample, 8);
/* Shift to S24_LE */
out_sample = AE_SRAI32(out_sample, 8);
/* Store the output sample */
AE_S32_L_XP(out_sample, out, inc);
}
Expand Down
4 changes: 2 additions & 2 deletions src/audio/volume/volume_hifi4.c
Original file line number Diff line number Diff line change
Expand Up @@ -122,8 +122,8 @@ static void vol_s24_to_s24_s32(struct processing_module *mod, struct input_strea
out_sample = AE_MULFP32X2RS(volume, AE_SLAI32(in_sample, 8));
#endif

/* Shift and round for S24_LE */
out_sample = AE_SRAI32R(out_sample, 8);
/* Shift to S24_LE */
out_sample = AE_SRAI32(out_sample, 8);

/* Store the output sample */
AE_SA32X2_IP(out_sample, outu, out);
Expand Down
4 changes: 2 additions & 2 deletions src/audio/volume/volume_hifi4_with_peakvol.c
Original file line number Diff line number Diff line change
Expand Up @@ -120,8 +120,8 @@ static void vol_s24_to_s24_s32(struct processing_module *mod, struct input_strea
out_sample = AE_MULFP32X2RS(volume, AE_SLAI32(in_sample, 8));
#endif

/* Shift and round for S24_LE */
out_sample = AE_SRAI32R(out_sample, 8);
/* Shift to S24_LE */
out_sample = AE_SRAI32(out_sample, 8);

/* Store the output sample */
AE_SA32X2_IP(out_sample, outu, out);
Expand Down
Loading