MLK-17528-2: ASoC: imx_pdm: Use FSL_SAI_CLK_BIT to signal the proper clock id

The current implementation suggest that MAST1 frequency is to be changed,
which is wrong. Use FSL_SAI_CLK_BIT clock id instead of FSL_SAI_CLK_MAST1
in order to make the code more intuitive and to signal proper
clk_id to SAI.

Signed-off-by: Viorel Suman <viorel.suman@nxp.com>
Reviewed-by: Shengjiu Wang <shengjiu.wang@nxp.com>
Reviewed-by: Daniel Baluta <daniel.baluta@nxp.com>
This commit is contained in:
Viorel Suman 2018-02-08 12:48:01 +02:00 committed by Jason Liu
parent 2ebe22fce4
commit 989d39aa82

View file

@ -80,7 +80,7 @@ static int imx_pdm_mic_hw_params(struct snd_pcm_substream *substream,
/* set tdm slots only one for now */
snd_soc_dai_set_tdm_slot(cpu_dai, 0, 0, 1, 32);
/* Set clock out */
ret = snd_soc_dai_set_sysclk(cpu_dai, FSL_SAI_CLK_MAST1,
ret = snd_soc_dai_set_sysclk(cpu_dai, FSL_SAI_CLK_BIT,
bitclk, SND_SOC_CLOCK_OUT);
if (ret) {
dev_err(card->dev, "fail to set cpu sysclk: %d\n", ret);