mirror of https://github.com/thesofproject/sof.git
volume: fix frame bytes calculation.
Currently frame bytes is calculated as period bytes. Fix. Signed-off-by: Liam Girdwood <liam.r.girdwood@linux.intel.com>
This commit is contained in:
parent
a1e35a2148
commit
1aded4f4a6
|
@ -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 *
|
||||
|
|
Loading…
Reference in New Issue