[Sound-open-firmware] [PATCH 4/4] SRC: Comment edit
Seppo Ingalsuo
seppo.ingalsuo at linux.intel.com
Fri Sep 22 15:08:47 CEST 2017
Signed-off-by: Seppo Ingalsuo <seppo.ingalsuo at linux.intel.com>
---
src/audio/src.c | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
diff --git a/src/audio/src.c b/src/audio/src.c
index 203e802..86f56de 100644
--- a/src/audio/src.c
+++ b/src/audio/src.c
@@ -417,7 +417,9 @@ static int src_params(struct comp_dev *dev)
break;
}
- /* Need to compute this */
+ /* Calculate period size based on config. First make sure that
+ * frame_bytes is set.
+ */
dev->frame_bytes =
dev->params.sample_container_bytes * dev->params.channels;
cd->period_bytes = dev->frames * dev->frame_bytes;
--
2.11.0
More information about the Sound-open-firmware
mailing list