sound/soc/codecs/adau7118.c | 6 ++++++ 1 file changed, 6 insertions(+)
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>
---
sound/soc/codecs/adau7118.c | 6 ++++++
1 file changed, 6 insertions(+)
diff --git a/sound/soc/codecs/adau7118.c b/sound/soc/codecs/adau7118.c
index abc4764697a5..14259807c872 100644
--- a/sound/soc/codecs/adau7118.c
+++ b/sound/soc/codecs/adau7118.c
@@ -169,6 +169,12 @@ static int adau7118_set_fmt(struct snd_soc_dai *dai, unsigned int fmt)
case SND_SOC_DAIFMT_RIGHT_J:
st->right_j = true;
break;
+ case SND_SOC_DAIFMT_DSP_A:
+ ret = snd_soc_component_update_bits(dai->component,
+ ADAU7118_REG_SPT_CTRL1,
+ ADAU7118_DATA_FMT_MASK,
+ ADAU7118_DATA_FMT(1));
+ break;
default:
dev_err(st->dev, "Invalid format %d",
fmt & SND_SOC_DAIFMT_FORMAT_MASK);
---
base-commit: 5751a1448babcf892161b4496d6b3da11a0862ec
change-id: 20250325-adau7118-dsp-a-e26e1dfc2b8f
Best regards,
--
Michael Sikora <michael.sikora@axis.com>
On Fri, 11 Apr 2025 09:49:29 +0200, Michael Sikora wrote:
> 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.
>
>
Applied to
https://git.kernel.org/pub/scm/linux/kernel/git/broonie/sound.git for-next
Thanks!
[1/1] ASoC: adau7118: Allow dsp_a mode
commit: 6d7ee6de75010ed5d70f1c496070c4a7cd1968b5
All being well this means that it will be integrated into the linux-next
tree (usually sometime in the next 24 hours) and sent to Linus during
the next merge window (or sooner if it is a bug fix), however if
problems are discovered then the patch may be dropped or reverted.
You may get further e-mails resulting from automated or manual testing
and review of the tree, please engage with people reporting problems and
send followup patches addressing any issues that are reported if needed.
If any updates are required or you are submitting further changes they
should be sent as incremental updates against current git, existing
patches will not be replaced.
Please add any relevant lists and maintainers to the CCs when replying
to this mail.
Thanks,
Mark
© 2016 - 2026 Red Hat, Inc.