MLK-22022: ASoC: imx-si476x: Fix Failure at capture
authorShengjiu Wang <shengjiu.wang@nxp.com>
Tue, 16 Jul 2019 05:31:44 +0000 (13:31 +0800)
committerShengjiu Wang <shengjiu.wang@nxp.com>
Tue, 16 Jul 2019 07:38:21 +0000 (15:38 +0800)
commit97b739e771f2e04a9291fe63284d4b9b7de262ff
treea6afd688f426ff34ce5af9064993049209641035
parentc2e6a7a0c25c692f7526e6c9d43ce7b739550f83
MLK-22022: ASoC: imx-si476x: Fix Failure at capture

With command: arecord -D hw:$num,0 -f dat | aplay -D hw:0,0 -f dat &

There is error:
fsl-ssi-dai 202c000.ssi: invalid slot width: 32
fsl-ssi-dai 202c000.ssi: failed to set dai tdm slot
imx-tuner-si476x sound-fm: ASoC: machine hw_params failed: -22

The reason is that slot width 32 is not valid and and set_sysclk
api is removed by commit b0a7043d5c2c ("ASoC: fsl_ssi: Caculate bit clock
rate using slot number and width").

Signed-off-by: Shengjiu Wang <shengjiu.wang@nxp.com>
Reviewed-by: Viorel Suman <viorel.suman@nxp.com>
sound/soc/fsl/imx-si476x.c