[Sound-open-firmware] [PATCH 07/15] [RFC][v2]DMIC: Add DMIC DMA setting to DAI

Seppo Ingalsuo seppo.ingalsuo at linux.intel.com
Fri May 4 17:01:09 CEST 2018


Note that this is hardwired to stereo for now to enable testing of
feature. It need to be updated to support any number of channels and
optimized DMA burst size.

Signed-off-by: Seppo Ingalsuo <seppo.ingalsuo at linux.intel.com>
---
 src/audio/dai.c | 5 +++++
 1 file changed, 5 insertions(+)

diff --git a/src/audio/dai.c b/src/audio/dai.c
index 7905665..1eeecd2 100644
--- a/src/audio/dai.c
+++ b/src/audio/dai.c
@@ -639,6 +639,11 @@ static int dai_config(struct comp_dev *dev, struct sof_ipc_dai_config *config)
 			break;
 		}
 		break;
+	case SOF_DAI_INTEL_DMIC:
+		/* TODO: No hardwired values here. */
+		dd->config.burst_elems = 2;
+		dev->frame_bytes = 8;
+		break;
 	default:
 		/* other types of DAIs not handled for now */
 		trace_dai_error("de2");
-- 
2.14.1



More information about the Sound-open-firmware mailing list