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:
Liam Girdwood 2017-11-15 23:31:31 +00:00
parent a1e35a2148
commit 1aded4f4a6
1 changed files with 1 additions and 1 deletions

View File

@ -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 *