From c5f603a927ea19c95fb6e12ecfdbf8c6620aac21 Mon Sep 17 00:00:00 2001 From: Viorel Suman Date: Thu, 8 Feb 2018 12:47:24 +0200 Subject: MLK-17528-1: ASoC: fsl_sai: Introduce FSL_SAI_CLK_BIT clock id Introduce FSL_SAI_CLK_BIT clock id in order to distinguish the bit clock and master clocks in "set_sysclk" API. Signed-off-by: Viorel Suman Suggested-by: Shengjiu Wang Reviewed-by: Shengjiu Wang Reviewed-by: Daniel Baluta --- sound/soc/fsl/fsl_sai.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'sound/soc/fsl/fsl_sai.c') diff --git a/sound/soc/fsl/fsl_sai.c b/sound/soc/fsl/fsl_sai.c index 138369afecf7..d1f40636a0b9 100644 --- a/sound/soc/fsl/fsl_sai.c +++ b/sound/soc/fsl/fsl_sai.c @@ -240,7 +240,10 @@ static int fsl_sai_set_dai_sysclk(struct snd_soc_dai *cpu_dai, if (dir == SND_SOC_CLOCK_IN) return 0; - sai->bitclk_freq = freq; + if (clk_id == FSL_SAI_CLK_BIT) { + sai->bitclk_freq = freq; + return 0; + } ret = fsl_sai_set_dai_sysclk_tr(cpu_dai, clk_id, freq, FSL_FMT_TRANSMITTER); -- cgit v1.2.3