summaryrefslogtreecommitdiff
path: root/sound
diff options
context:
space:
mode:
authorShengjiu Wang <shengjiu.wang@freescale.com>2014-10-13 11:27:12 +0800
committerNitin Garg <nitin.garg@freescale.com>2015-01-15 21:18:34 -0600
commitbf3a8726efdefe76aeb74a717087ef1e48fc407b (patch)
tree87136de83a28eede87be648d8e4b3318fd4d0152 /sound
parent45567b25994b974482f0648ae106cd7ce102d5df (diff)
MLK-9684-3: ASoC: imx-si476x: SRCK and SRFS is used for fm in imx6sx
Configure the aumux port to output SRCK and SRFS from STCK and STFS of internal port when use the SYN mode. Signed-off-by: Shengjiu Wang <shengjiu.wang@freescale.com> (cherry picked from commit f4428f5617916863b5410afea5614cc52190f1a8)
Diffstat (limited to 'sound')
-rw-r--r--sound/soc/fsl/imx-si476x.c10
1 files changed, 10 insertions, 0 deletions
diff --git a/sound/soc/fsl/imx-si476x.c b/sound/soc/fsl/imx-si476x.c
index a80ad54fe30e..986b86b455c2 100644
--- a/sound/soc/fsl/imx-si476x.c
+++ b/sound/soc/fsl/imx-si476x.c
@@ -32,6 +32,16 @@ static int imx_audmux_config(int slave, int master)
pdcr = IMX_AUDMUX_V2_PDCR_RXDSEL(slave);
imx_audmux_v2_configure_port(master, ptcr, pdcr);
+ /*
+ * According to RM, RCLKDIR and SYN should not be changed at same time.
+ * So separate to two step for configuring this port.
+ */
+ ptcr |= IMX_AUDMUX_V2_PTCR_RFSDIR |
+ IMX_AUDMUX_V2_PTCR_RFSEL(slave) |
+ IMX_AUDMUX_V2_PTCR_RCLKDIR |
+ IMX_AUDMUX_V2_PTCR_RCSEL(slave);
+ imx_audmux_v2_configure_port(master, ptcr, pdcr);
+
ptcr = IMX_AUDMUX_V2_PTCR_SYN;
pdcr = IMX_AUDMUX_V2_PDCR_RXDSEL(master);
imx_audmux_v2_configure_port(slave, ptcr, pdcr);