16 Nov
2017
16 Nov
'17
12:56 p.m.
Currently frame bytes is calculated as period bytes. Fix.
Signed-off-by: Liam Girdwood liam.r.girdwood@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