mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [PATCH] ASoC: adau7118: Allow dsp_a mode
@ 2025-04-11  7:49 Michael Sikora
  2025-04-23 11:44 ` Mark Brown
  0 siblings, 1 reply; 2+ messages in thread
From: Michael Sikora @ 2025-04-11  7:49 UTC (permalink / raw)
  To: Lars-Peter Clausen, Nuno Sá,
	Liam Girdwood, Mark Brown, Jaroslav Kysela, Takashi Iwai
  Cc: linux-sound, linux-kernel, kernel, Michael Sikora

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>


^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: [PATCH] ASoC: adau7118: Allow dsp_a mode
  2025-04-11  7:49 [PATCH] ASoC: adau7118: Allow dsp_a mode Michael Sikora
@ 2025-04-23 11:44 ` Mark Brown
  0 siblings, 0 replies; 2+ messages in thread
From: Mark Brown @ 2025-04-23 11:44 UTC (permalink / raw)
  To: Lars-Peter Clausen, Nuno Sá,
	Liam Girdwood, Jaroslav Kysela, Takashi Iwai, Michael Sikora
  Cc: linux-sound, linux-kernel, kernel

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


^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2025-04-23 11:44 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2025-04-11  7:49 [PATCH] ASoC: adau7118: Allow dsp_a mode Michael Sikora
2025-04-23 11:44 ` Mark Brown

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®