MLK-15043-2: ASoC: imx-cs42888: fix noise issue with FE-BE case
authorShengjiu Wang <shengjiu.wang@freescale.com>
Wed, 14 Jun 2017 09:40:17 +0000 (17:40 +0800)
committerNitin Garg <nitin.garg@nxp.com>
Mon, 19 Mar 2018 20:28:15 +0000 (15:28 -0500)
commit89d5f7707883e400408ae56c9853c57f8fabf488
tree52d9e96294009daaa500732047552bca7a765e51
parent1ddcb58600ad346d6cbafec25da236af55143d4b
MLK-15043-2: ASoC: imx-cs42888: fix noise issue with FE-BE case

The case is "aplay -Dhw:0,1 -d 5 -r 8000 -f S16_LE -c 9 audio8k16b9c.wav",
which is to playback 9 channel bitstream. But the maximum supported channel
of codec is 8, ALSA didn't return error for this case, but continue to
playback.

The reason is that in FE-BE case, ASLA only get the FE's hw parameter for
constraint list, omit the BE's parameter. This patch is to merge BE's
parameter to FE. in this situation with the 9 channel case, ASLA will
return error "aplay: set_params:1303: Channels count non available"

Signed-off-by: Shengjiu Wang <shengjiu.wang@freescale.com>
(cherry picked from commit cfe36e2e7fce578eeac9a36eac04db2584e6e92e)
sound/soc/fsl/imx-cs42888.c