]> git.baikalelectronics.ru Git - kernel.git/commit
ASoc: fsl_sai: Add pinctrl operation for PDM and DSD
authorShengjiu Wang <shengjiu.wang@nxp.com>
Fri, 17 Jun 2022 07:44:34 +0000 (15:44 +0800)
committerMark Brown <broonie@kernel.org>
Mon, 27 Jun 2022 12:18:08 +0000 (13:18 +0100)
commitc0cc43bf837855bce1a14e4622177bf6ca497b45
tree41921d906bc8625cc7400244c93ab7a5d6213c06
parent1b9c9dc5d7bf0efce7ee686794a593e233b7c60f
ASoc: fsl_sai: Add pinctrl operation for PDM and DSD

With DSD format, the pinctrl is different compare with
I2S format, because one dataline only has one channel
data, and the codec always mux the LRCLK pin to DSD
data line, and on i.MX8MQ the BCLK pin can route to
codec on DSD case for the MCLK is too high.

Add pinctrl operation that the pinctrl can be switched
on runtime according to the I2S format or DSD format

Signed-off-by: Viorel Suman <viorel.suman@nxp.com>
Signed-off-by: Shengjiu Wang <shengjiu.wang@nxp.com>
Link: https://lore.kernel.org/r/1655451877-16382-5-git-send-email-shengjiu.wang@nxp.com
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/fsl/fsl_sai.c
sound/soc/fsl/fsl_sai.h