Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

ASoC: qcom: sm8250: add handling of secondary MI2S clock

Add handling of clock related to secondary MI2S_RX in
sm8250_snd_startup().

Cc: Srinivas Kandagatla <srinivas.kandagatla@linaro.org>
Reviewed-by: Dmitry Baryshkov <dmitry.baryshkov@linaro.org>
Signed-off-by: Alexey Klimov <alexey.klimov@linaro.org>
Link: https://patch.msgid.link/20241018025452.1362293-2-alexey.klimov@linaro.org
Signed-off-by: Mark Brown <broonie@kernel.org>

authored by

Alexey Klimov and committed by
Mark Brown
ed7bca5b 08aa540a

+8
+8
sound/soc/qcom/sm8250.c
··· 63 63 snd_soc_dai_set_fmt(cpu_dai, fmt); 64 64 snd_soc_dai_set_fmt(codec_dai, codec_dai_fmt); 65 65 break; 66 + case SECONDARY_MI2S_RX: 67 + codec_dai_fmt |= SND_SOC_DAIFMT_NB_NF | SND_SOC_DAIFMT_I2S; 68 + snd_soc_dai_set_sysclk(cpu_dai, 69 + Q6AFE_LPASS_CLK_ID_SEC_MI2S_IBIT, 70 + MI2S_BCLK_RATE, SNDRV_PCM_STREAM_PLAYBACK); 71 + snd_soc_dai_set_fmt(cpu_dai, fmt); 72 + snd_soc_dai_set_fmt(codec_dai, codec_dai_fmt); 73 + break; 66 74 case TERTIARY_MI2S_RX: 67 75 codec_dai_fmt |= SND_SOC_DAIFMT_NB_NF | SND_SOC_DAIFMT_I2S; 68 76 snd_soc_dai_set_sysclk(cpu_dai,