mirror of https://github.com/thesofproject/sof.git
Audio: Volume: fix problem with generic peakVol
Fixed a problem with generic implementation of function vol_passthrough_s16_to_s16. Corrected Pointer Types. Variables x and y are treated as int16_t pointers since we are dealing with 16-bit samples. That was tested in test: test_01_09_peakvol_quality[44100Hz_16in16bit_1ch-0] Signed-off-by: Grzegorz Bernat <grzegorzx.bernat@intel.com>
This commit is contained in:
parent
737d4d41fb
commit
f9eaaba5ac
|
@ -338,8 +338,8 @@ static void vol_passthrough_s16_to_s16(struct processing_module *mod,
|
|||
struct vol_data *cd = module_get_private_data(mod);
|
||||
struct audio_stream *source = bsource->data;
|
||||
struct audio_stream *sink = bsink->data;
|
||||
int32_t *x, *x0;
|
||||
int32_t *y, *y0;
|
||||
int16_t *x, *x0;
|
||||
int16_t *y, *y0;
|
||||
int nmax, n, i, j;
|
||||
const int nch = audio_stream_get_channels(source);
|
||||
int remaining_samples = frames * nch;
|
||||
|
|
Loading…
Reference in New Issue