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: sdm845: add handling of secondary MI2S clock

Add handling of clock related to secondary MI2S_RX in startup, shutdown
and hw params routines. The handing of MI2S_TX and SEC_MI2S clock is
already there so this requires only placing SECONDARY_MI2S_RX in the
correct switch-case choices.

Signed-off-by: Alexey Klimov <alexey.klimov@linaro.org>
Link: https://patch.msgid.link/20241205023344.2232529-3-alexey.klimov@linaro.org
Signed-off-by: Mark Brown <broonie@kernel.org>

authored by

Alexey Klimov and committed by
Mark Brown
8bfb66c7 a5dfca55

+3 -2
+3 -2
sound/soc/qcom/sdm845.c
··· 215 215 ret = sdm845_slim_snd_hw_params(substream, params); 216 216 break; 217 217 case QUATERNARY_MI2S_RX: 218 + case SECONDARY_MI2S_RX: 218 219 break; 219 220 default: 220 221 pr_err("%s: invalid dai id 0x%x\n", __func__, cpu_dai->id); ··· 357 356 snd_soc_dai_set_fmt(codec_dai, codec_dai_fmt); 358 357 break; 359 358 359 + case SECONDARY_MI2S_RX: 360 360 case SECONDARY_MI2S_TX: 361 361 codec_dai_fmt |= SND_SOC_DAIFMT_NB_NF | SND_SOC_DAIFMT_I2S; 362 362 if (++(data->sec_mi2s_clk_count) == 1) { ··· 373 371 Q6AFE_LPASS_CLK_ID_QUAD_MI2S_IBIT, 374 372 MI2S_BCLK_RATE, SNDRV_PCM_STREAM_PLAYBACK); 375 373 snd_soc_dai_set_fmt(cpu_dai, fmt); 376 - 377 - 378 374 break; 379 375 380 376 case QUATERNARY_TDM_RX_0: ··· 441 441 } 442 442 break; 443 443 444 + case SECONDARY_MI2S_RX: 444 445 case SECONDARY_MI2S_TX: 445 446 if (--(data->sec_mi2s_clk_count) == 0) { 446 447 snd_soc_dai_set_sysclk(cpu_dai,