diff options
author | Lionel Xu <Lionel.Xu@freescale.com> | 2011-08-26 18:26:45 +0800 |
---|---|---|
committer | Jason Liu <r64343@freescale.com> | 2012-01-09 20:23:27 +0800 |
commit | f05139aff7bddc0e188320755ab4c6be05969553 (patch) | |
tree | e4589046a966d514c5d3cf5ae7265e2f1301f375 /sound/soc | |
parent | 361305f23d990e65752635673cd9e6c20cf72353 (diff) |
ENGR00139255-2 MX6Q_BSP ESAI: Add esai recording support
Add ESAI recording to mx6q platform.
Note: since there is pad conflict between esai record and fec, add a boot
argument esai_record to deal with it. This argument is required to enable
the record functionality.
Signed-off-by: Lionel Xu <R63889@freescale.com>
Diffstat (limited to 'sound/soc')
-rw-r--r-- | sound/soc/codecs/cs42888.c | 4 | ||||
-rw-r--r-- | sound/soc/imx/imx-cs42888.c | 2 | ||||
-rw-r--r-- | sound/soc/imx/imx-esai.c | 2 |
3 files changed, 5 insertions, 3 deletions
diff --git a/sound/soc/codecs/cs42888.c b/sound/soc/codecs/cs42888.c index e06eb30a1810..c810333b3284 100644 --- a/sound/soc/codecs/cs42888.c +++ b/sound/soc/codecs/cs42888.c @@ -618,6 +618,7 @@ static int cs42888_set_dai_fmt(struct snd_soc_dai *codec_dai, return ret; } + dump_reg(codec); return ret; } @@ -647,7 +648,7 @@ static int cs42888_hw_params(struct snd_pcm_substream *substream, unsigned int i; unsigned int rate; unsigned int ratio; - u8 val; + u32 val; rate = params_rate(params); /* Sampling rate, in Hz */ ratio = cs42888->mclk / rate; /* MCLK/LRCK ratio */ @@ -706,6 +707,7 @@ static int cs42888_hw_params(struct snd_pcm_substream *substream, return ret; } + dump_reg(codec); return ret; } diff --git a/sound/soc/imx/imx-cs42888.c b/sound/soc/imx/imx-cs42888.c index 8943534b958c..87c2115cc960 100644 --- a/sound/soc/imx/imx-cs42888.c +++ b/sound/soc/imx/imx-cs42888.c @@ -155,7 +155,7 @@ static int imx_3stack_surround_hw_params(struct snd_pcm_substream *substream, 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, 0); + 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 */ diff --git a/sound/soc/imx/imx-esai.c b/sound/soc/imx/imx-esai.c index 3a31d079796b..ebd45ffa6ecf 100644 --- a/sound/soc/imx/imx-esai.c +++ b/sound/soc/imx/imx-esai.c @@ -68,7 +68,7 @@ static int imx_esai_set_dai_sysclk(struct snd_soc_dai *cpu_dai, ecr |= ESAI_ECR_ETI; ecr &= ~ESAI_ECR_ETO; ecr |= ESAI_ECR_ERI; - ecr |= ESAI_ECR_ERO; + ecr &= ~ESAI_ECR_ERO; } } |