DMIC: Add DMIC DMA setting to DAI

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@linux.intel.com>
This commit is contained in:
Seppo Ingalsuo 2018-05-04 18:01:09 +03:00 committed by Liam Girdwood
parent 0c6c12aa96
commit aea16662ca
1 changed files with 5 additions and 0 deletions

View File

@ -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");