MLK-14448: ASoC: fsl_ssi: Fix capture and playback with master mode
authorShengjiu Wang <shengjiu.wang@freescale.com>
Wed, 15 Mar 2017 06:17:24 +0000 (14:17 +0800)
committerNitin Garg <nitin.garg@nxp.com>
Mon, 19 Mar 2018 20:21:58 +0000 (15:21 -0500)
commitc2a0817364bb9e982054aadc03f2fcd67ab044fd
treea3d61e506893e715e05abbaf25c3237389829141
parent5a5122c1cde48d8a15451d3c0d85a2d7ddfdb5a1
MLK-14448: ASoC: fsl_ssi: Fix capture and playback with master mode

Capture and Playback work in parallel in master mode, stop one substream,
the other substream will be conflicted, for clock is disabled.
The reason is that the clock counter is not increased in second substream,
the hw_param() function returned in the beginning for first substream is
enabled.
This patch is to move the clock enablement before the device enablement
checking in hw_param().

Signed-off-by: Shengjiu Wang <shengjiu.wang@freescale.com>
sound/soc/fsl/fsl_ssi.c