volume: fix 16_to_24 right channel wrong issue

The right channel was set duplicated to the left
channel, here correct it.

Signed-off-by: Keyon Jie <yang.jie@linux.intel.com>
This commit is contained in:
Keyon Jie 2017-11-07 12:15:33 +08:00 committed by Liam Girdwood
parent caaab6c059
commit b791cc96a3
1 changed files with 1 additions and 1 deletions

View File

@ -179,7 +179,7 @@ static void vol_s16_to_s24(struct comp_dev *dev, struct comp_buffer *sink,
dest[i] = q_multsr_sat_32x32(
src[i], cd->volume[0], Q_SHIFT_BITS_64(15, 16, 23));
dest[i + 1] = q_multsr_sat_32x32(
src[i], cd->volume[0], Q_SHIFT_BITS_64(15, 16, 23));
src[i + 1], cd->volume[1], Q_SHIFT_BITS_64(15, 16, 23));
}
}