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

ASoC: adau7118: Allow dsp_a mode

TDM mode on the adau7118 is dsp_a compatible. Set SPT_SAI_MODE on the
SPT_CTRL1 register to 1 for TDM mode when the DAI is operating in
dsp_a mode.

Signed-off-by: Michael Sikora <michael.sikora@axis.com>
Link: https://patch.msgid.link/20250411-adau7118-dsp-a-v1-1-be3fb487a6ac@axis.com
Signed-off-by: Mark Brown <broonie@kernel.org>

authored by

Michael Sikora and committed by
Mark Brown
6d7ee6de 0c9f8244

+6
+6
sound/soc/codecs/adau7118.c
··· 169 169 case SND_SOC_DAIFMT_RIGHT_J: 170 170 st->right_j = true; 171 171 break; 172 + case SND_SOC_DAIFMT_DSP_A: 173 + ret = snd_soc_component_update_bits(dai->component, 174 + ADAU7118_REG_SPT_CTRL1, 175 + ADAU7118_DATA_FMT_MASK, 176 + ADAU7118_DATA_FMT(1)); 177 + break; 172 178 default: 173 179 dev_err(st->dev, "Invalid format %d", 174 180 fmt & SND_SOC_DAIFMT_FORMAT_MASK);