[Sound-open-firmware] [PATCH] volume: fix 16_to_24 right channel wrong issue
Keyon Jie
yang.jie at linux.intel.com
Tue Nov 7 05:15:33 CET 2017
The right channel was set duplicated to the left
channel, here correct it.
Signed-off-by: Keyon Jie <yang.jie at linux.intel.com>
---
src/audio/volume.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/audio/volume.c b/src/audio/volume.c
index f52ab46..e1cbda2 100644
--- a/src/audio/volume.c
+++ b/src/audio/volume.c
@@ -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));
}
}
--
2.11.0
More information about the Sound-open-firmware
mailing list