Linux Sound subsystem development
 help / color / mirror / Atom feed
* [PATCH v3] ASoC: qcom: sdm845: set quaternary MI2S codec DAI to I2S format
@ 2025-11-15 18:43 David Heidelberg via B4 Relay
  2025-12-05 19:58 ` David Heidelberg
                   ` (3 more replies)
  0 siblings, 4 replies; 5+ messages in thread
From: David Heidelberg via B4 Relay @ 2025-11-15 18:43 UTC (permalink / raw)
  To: Srinivas Kandagatla, Liam Girdwood, Mark Brown, Jaroslav Kysela,
	Takashi Iwai
  Cc: linux-sound, linux-arm-msm, linux-kernel, phone-devel,
	Robert Oscilowski, Casey Connolly, David Heidelberg

From: Robert Oscilowski <drgitx@gmail.com>

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>
---
Changes in v3:
- Updated DrGit name to real name.
- Link to v2: https://lore.kernel.org/r/20251114-sdm845-quaternary-v2-1-9d803bf5f7c9@ixit.cz

Changes in v2:
 - Rebased on top of next-20251113
---
 sound/soc/qcom/sdm845.c | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/sound/soc/qcom/sdm845.c b/sound/soc/qcom/sdm845.c
index e18a8e44f2db5..0ce9dff4dc525 100644
--- a/sound/soc/qcom/sdm845.c
+++ b/sound/soc/qcom/sdm845.c
@@ -365,10 +365,12 @@ static int sdm845_snd_startup(struct snd_pcm_substream *substream)
 		snd_soc_dai_set_fmt(codec_dai, codec_dai_fmt);
 		break;
 	case QUATERNARY_MI2S_RX:
+		codec_dai_fmt |= SND_SOC_DAIFMT_NB_NF | SND_SOC_DAIFMT_I2S;
 		snd_soc_dai_set_sysclk(cpu_dai,
 			Q6AFE_LPASS_CLK_ID_QUAD_MI2S_IBIT,
 			MI2S_BCLK_RATE, SNDRV_PCM_STREAM_PLAYBACK);
 		snd_soc_dai_set_fmt(cpu_dai, fmt);
+		snd_soc_dai_set_fmt(codec_dai, codec_dai_fmt);
 		break;
 
 	case QUATERNARY_TDM_RX_0:

---
base-commit: 0f2995693867bfb26197b117cd55624ddc57582f
change-id: 20251114-sdm845-quaternary-e9d6d0b513c9

Best regards,
-- 
David Heidelberg <david@ixit.cz>



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

* Re: [PATCH v3] ASoC: qcom: sdm845: set quaternary MI2S codec DAI to I2S format
  2025-11-15 18:43 [PATCH v3] ASoC: qcom: sdm845: set quaternary MI2S codec DAI to I2S format David Heidelberg via B4 Relay
@ 2025-12-05 19:58 ` David Heidelberg
  2025-12-05 20:08 ` Dmitry Baryshkov
                   ` (2 subsequent siblings)
  3 siblings, 0 replies; 5+ messages in thread
From: David Heidelberg @ 2025-12-05 19:58 UTC (permalink / raw)
  To: Srinivas Kandagatla, Liam Girdwood, Mark Brown, Jaroslav Kysela,
	Takashi Iwai
  Cc: linux-sound, linux-arm-msm, linux-kernel, phone-devel,
	Robert Oscilowski, Casey Connolly

On 15/11/2025 19:43, David Heidelberg via B4 Relay wrote:
> From: Robert Oscilowski <drgitx@gmail.com>

Hello,

with the updated name, is the patch good to go?

Thanks
David

> 
> 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>
> ---
> Changes in v3:
> - Updated DrGit name to real name.
> - Link to v2: https://lore.kernel.org/r/20251114-sdm845-quaternary-v2-1-9d803bf5f7c9@ixit.cz
> 
> Changes in v2:
>   - Rebased on top of next-20251113
> ---
>   sound/soc/qcom/sdm845.c | 2 ++
>   1 file changed, 2 insertions(+)
> 
> diff --git a/sound/soc/qcom/sdm845.c b/sound/soc/qcom/sdm845.c
> index e18a8e44f2db5..0ce9dff4dc525 100644
> --- a/sound/soc/qcom/sdm845.c
> +++ b/sound/soc/qcom/sdm845.c
> @@ -365,10 +365,12 @@ static int sdm845_snd_startup(struct snd_pcm_substream *substream)
>   		snd_soc_dai_set_fmt(codec_dai, codec_dai_fmt);
>   		break;
>   	case QUATERNARY_MI2S_RX:
> +		codec_dai_fmt |= SND_SOC_DAIFMT_NB_NF | SND_SOC_DAIFMT_I2S;
>   		snd_soc_dai_set_sysclk(cpu_dai,
>   			Q6AFE_LPASS_CLK_ID_QUAD_MI2S_IBIT,
>   			MI2S_BCLK_RATE, SNDRV_PCM_STREAM_PLAYBACK);
>   		snd_soc_dai_set_fmt(cpu_dai, fmt);
> +		snd_soc_dai_set_fmt(codec_dai, codec_dai_fmt);
>   		break;
>   
>   	case QUATERNARY_TDM_RX_0:
> 
> ---
> base-commit: 0f2995693867bfb26197b117cd55624ddc57582f
> change-id: 20251114-sdm845-quaternary-e9d6d0b513c9
> 
> Best regards,

-- 
David Heidelberg


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

* Re: [PATCH v3] ASoC: qcom: sdm845: set quaternary MI2S codec DAI to I2S format
  2025-11-15 18:43 [PATCH v3] ASoC: qcom: sdm845: set quaternary MI2S codec DAI to I2S format David Heidelberg via B4 Relay
  2025-12-05 19:58 ` David Heidelberg
@ 2025-12-05 20:08 ` Dmitry Baryshkov
  2025-12-10 14:06 ` Alexey Klimov
  2025-12-15 13:58 ` Mark Brown
  3 siblings, 0 replies; 5+ messages in thread
From: Dmitry Baryshkov @ 2025-12-05 20:08 UTC (permalink / raw)
  To: david
  Cc: Srinivas Kandagatla, Liam Girdwood, Mark Brown, Jaroslav Kysela,
	Takashi Iwai, linux-sound, linux-arm-msm, linux-kernel,
	phone-devel, Robert Oscilowski, Casey Connolly

On Sat, Nov 15, 2025 at 07:43:58PM +0100, David Heidelberg via B4 Relay wrote:
> From: Robert Oscilowski <drgitx@gmail.com>
> 
> 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>
> ---
> Changes in v3:
> - Updated DrGit name to real name.
> - Link to v2: https://lore.kernel.org/r/20251114-sdm845-quaternary-v2-1-9d803bf5f7c9@ixit.cz
> 
> Changes in v2:
>  - Rebased on top of next-20251113
> ---
>  sound/soc/qcom/sdm845.c | 2 ++
>  1 file changed, 2 insertions(+)
> 

Reviewed-by: Dmitry Baryshkov <dmitry.baryshkov@oss.qualcomm.com>


-- 
With best wishes
Dmitry

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

* Re: [PATCH v3] ASoC: qcom: sdm845: set quaternary MI2S codec DAI to I2S format
  2025-11-15 18:43 [PATCH v3] ASoC: qcom: sdm845: set quaternary MI2S codec DAI to I2S format David Heidelberg via B4 Relay
  2025-12-05 19:58 ` David Heidelberg
  2025-12-05 20:08 ` Dmitry Baryshkov
@ 2025-12-10 14:06 ` Alexey Klimov
  2025-12-15 13:58 ` Mark Brown
  3 siblings, 0 replies; 5+ messages in thread
From: Alexey Klimov @ 2025-12-10 14:06 UTC (permalink / raw)
  To: david, Srinivas Kandagatla, Liam Girdwood, Mark Brown,
	Jaroslav Kysela, Takashi Iwai
  Cc: linux-sound, linux-arm-msm, linux-kernel, phone-devel,
	Robert Oscilowski, Casey Connolly

On Sat Nov 15, 2025 at 6:43 PM GMT, David Heidelberg via B4 Relay wrote:
> From: Robert Oscilowski <drgitx@gmail.com>
>
> 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>

Best regards,
Alexey


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

* Re: [PATCH v3] ASoC: qcom: sdm845: set quaternary MI2S codec DAI to I2S format
  2025-11-15 18:43 [PATCH v3] ASoC: qcom: sdm845: set quaternary MI2S codec DAI to I2S format David Heidelberg via B4 Relay
                   ` (2 preceding siblings ...)
  2025-12-10 14:06 ` Alexey Klimov
@ 2025-12-15 13:58 ` Mark Brown
  3 siblings, 0 replies; 5+ messages in thread
From: Mark Brown @ 2025-12-15 13:58 UTC (permalink / raw)
  To: Srinivas Kandagatla, Liam Girdwood, Jaroslav Kysela, Takashi Iwai,
	David Heidelberg
  Cc: linux-sound, linux-arm-msm, linux-kernel, phone-devel,
	Robert Oscilowski, Casey Connolly

On Sat, 15 Nov 2025 19:43:58 +0100, David Heidelberg wrote:
> 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.
> 
> 

Applied to

   https://git.kernel.org/pub/scm/linux/kernel/git/broonie/sound.git for-next

Thanks!

[1/1] ASoC: qcom: sdm845: set quaternary MI2S codec DAI to I2S format
      commit: 20c734cb678332883d317b17bf8fe7361648e170

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] 5+ messages in thread

end of thread, other threads:[~2025-12-15 13:58 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-11-15 18:43 [PATCH v3] ASoC: qcom: sdm845: set quaternary MI2S codec DAI to I2S format David Heidelberg via B4 Relay
2025-12-05 19:58 ` David Heidelberg
2025-12-05 20:08 ` Dmitry Baryshkov
2025-12-10 14:06 ` Alexey Klimov
2025-12-15 13:58 ` Mark Brown

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