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

ASoC: qcom: sdm845: set quaternary MI2S codec DAI to I2S format

We configure the codec DAI format for primary and secondary but not the
quaternery MI2S path. Add the missing configuration to enable speaker
codecs on the quaternary MI2S like the MAX9827 found on the OnePlus 6.

Signed-off-by: Robert Oscilowski <drgitx@gmail.com>
Signed-off-by: Casey Connolly <casey.connolly@linaro.org>
Signed-off-by: David Heidelberg <david@ixit.cz>
Reviewed-by: Alexey Klimov <alexey.klimov@linaro.org>
Reviewed-by: Dmitry Baryshkov <dmitry.baryshkov@oss.qualcomm.com>
Link: https://patch.msgid.link/20251115-sdm845-quaternary-v3-1-c16bf19128ac@ixit.cz
Signed-off-by: Mark Brown <broonie@kernel.org>

authored by

Robert Oscilowski and committed by
Mark Brown
20c734cb e2cb8ef0

+2
+2
sound/soc/qcom/sdm845.c
··· 365 365 snd_soc_dai_set_fmt(codec_dai, codec_dai_fmt); 366 366 break; 367 367 case QUATERNARY_MI2S_RX: 368 + codec_dai_fmt |= SND_SOC_DAIFMT_NB_NF | SND_SOC_DAIFMT_I2S; 368 369 snd_soc_dai_set_sysclk(cpu_dai, 369 370 Q6AFE_LPASS_CLK_ID_QUAD_MI2S_IBIT, 370 371 MI2S_BCLK_RATE, SNDRV_PCM_STREAM_PLAYBACK); 371 372 snd_soc_dai_set_fmt(cpu_dai, fmt); 373 + snd_soc_dai_set_fmt(codec_dai, codec_dai_fmt); 372 374 break; 373 375 374 376 case QUATERNARY_TDM_RX_0: