[Sound-open-firmware] [PATCH] volume: fix frame bytes calculation.
Liam Girdwood
liam.r.girdwood at linux.intel.com
Thu Nov 16 12:56:20 CET 2017
Currently frame bytes is calculated as period bytes. Fix.
Signed-off-by: Liam Girdwood <liam.r.girdwood 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 fb8d9e7..b6872a7 100644
--- a/src/audio/volume.c
+++ b/src/audio/volume.c
@@ -656,7 +656,7 @@ static int volume_prepare(struct comp_dev *dev)
break;
}
- dev->frame_bytes = cd->sink_period_bytes;
+ dev->frame_bytes = cd->sink_period_bytes / dev->frames;
/* set downstream buffer size */
ret = buffer_set_size(sinkb, cd->sink_period_bytes *
--
1.9.1
More information about the Sound-open-firmware
mailing list