diff options
author | Chen Liangjun <b36089@freescale.com> | 2012-07-05 15:10:14 +0800 |
---|---|---|
committer | Terry Lv <r65388@freescale.com> | 2012-07-25 13:10:29 +0800 |
commit | e78e111ac3a51ec3e4dece15b36716ea7f112606 (patch) | |
tree | b49ea04a43b979a6da7d69e1d4870df366704c96 /sound/soc | |
parent | 1c4bcf798c61e9276b0b77dc3b9abe408e1f1a90 (diff) |
ENGR00215851 ASRC:fix datawidth type mismatch
When ESAI call ASRC for p2p playback. The datawidth may be
changed. The cpu dai would configure the ESAI data width according
to the modified datawidth(output_bits). The type mismatch between output_bits
and cpu dai's switch branch cause cpu dai's hardware parameter set
fail.
Match the type of output_bits to the switch branch in cpu dai's hardware
parameter configuration function.
Signed-off-by: Chen Liangjun <b36089@freescale.com>
Diffstat (limited to 'sound/soc')
-rw-r--r-- | sound/soc/imx/imx-esai.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sound/soc/imx/imx-esai.c b/sound/soc/imx/imx-esai.c index daa3a8ae7a11..f11757b0e7cc 100644 --- a/sound/soc/imx/imx-esai.c +++ b/sound/soc/imx/imx-esai.c @@ -320,11 +320,11 @@ static int imx_esai_hw_tx_params(struct snd_pcm_substream *substream, if (iprtd->asrc_enable) { switch (iprtd->output_bit) { - case 16: + case ASRC_WIDTH_16_BIT: tfcr |= ESAI_WORD_LEN_16; tcr |= ESAI_TCR_TSHFD_MSB | ESAI_TCR_TSWS_STL32_WDL16; break; - case 24: + case ASRC_WIDTH_24_BIT: tfcr |= ESAI_WORD_LEN_24; tcr |= ESAI_TCR_TSHFD_MSB | ESAI_TCR_TSWS_STL32_WDL24; break; |