Searched hist:"7 fb59e940f6225beed0b24cd09e9fad9aebb7565" (Results 1 – 1 of 1) sorted by relevance
/linux/sound/soc/codecs/ |
H A D | dmic.c | diff 7fb59e940f6225beed0b24cd09e9fad9aebb7565 Fri Jan 05 21:39:57 CET 2018 Matthias Kaehlcke <mka@chromium.org> ASoC: codecs: dmic: Make number of channels configurable
The DMIC DAI driver specifies a number of 1 to 8 channels for each DAI. The actual number of mics can currently not be configured in the device tree or audio glue, but is derived from the min/max channels of the CPU and codec DAI. A typical CPU DAI has two or more channels, in consequence a single mic is treated as a stereo/multi channel device, even though only one channel carries audio data.
This change adds the option to specify the number of used DMIC channels in the device tree. When specified this value overwrites the default channels_max value of 8 in the snd_soc_dai_driver struct of the codec.
Signed-off-by: Matthias Kaehlcke <mka@chromium.org> Reviewed-by: Rob Herring <robh@kernel.org> Acked-by: Arnaud Pouliquen <arnaud.pouliquen@st.com> Signed-off-by: Mark Brown <broonie@kernel.org>
|