summaryrefslogtreecommitdiff
path: root/sound
diff options
context:
space:
mode:
authorLionel Xu <Lionel.Xu@freescale.com>2011-08-29 14:01:16 +0800
committerJason Liu <r64343@freescale.com>2012-01-09 20:23:27 +0800
commitd14313b5cff7d2f3cbd23244b491aaef986ad5a3 (patch)
treef262fd70bd76de3c85de64ab7cbde8cedcd7e764 /sound
parentdb0e9c1f0175588e9568fd7e3aef47076f79fbc8 (diff)
ENGR00139255 MX6Q_BSP ESAI: Add esai recording support
Add ESAI recording to mx6q platform. To differentiate mx6q and mx53 in codec machine layer code. Signed-off-by: Lionel Xu <R63889@freescale.com>
Diffstat (limited to 'sound')
-rw-r--r--sound/soc/imx/imx-cs42888.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/sound/soc/imx/imx-cs42888.c b/sound/soc/imx/imx-cs42888.c
index 87c2115cc960..e9f6633f1b74 100644
--- a/sound/soc/imx/imx-cs42888.c
+++ b/sound/soc/imx/imx-cs42888.c
@@ -154,8 +154,12 @@ static int imx_3stack_surround_hw_params(struct snd_pcm_substream *substream,
else if (cpu_is_mx6q())
snd_soc_dai_set_clkdiv(cpu_dai, ESAI_TX_DIV_PM, 2);
snd_soc_dai_set_clkdiv(cpu_dai, ESAI_TX_DIV_FP, lrclk_ratio);
+
snd_soc_dai_set_clkdiv(cpu_dai, ESAI_RX_DIV_PSR, 1);
- snd_soc_dai_set_clkdiv(cpu_dai, ESAI_RX_DIV_PM, 2);
+ if (cpu_is_mx53())
+ snd_soc_dai_set_clkdiv(cpu_dai, ESAI_RX_DIV_PM, 0);
+ else if (cpu_is_mx6q())
+ snd_soc_dai_set_clkdiv(cpu_dai, ESAI_RX_DIV_PM, 2);
snd_soc_dai_set_clkdiv(cpu_dai, ESAI_RX_DIV_FP, lrclk_ratio);
/* set codec DAI configuration */