mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [PATCH v1 0/1] ASoC: qcom: sc8280xp: Assign backend ops for multi codec dai links
@ 2025-05-28 15:07 Mohammad Rafi Shaik
  2025-05-28 15:07 ` [PATCH v1 1/1] " Mohammad Rafi Shaik
  2025-05-28 15:09 ` [PATCH v1 0/1] " Mark Brown
  0 siblings, 2 replies; 5+ messages in thread
From: Mohammad Rafi Shaik @ 2025-05-28 15:07 UTC (permalink / raw)
  To: Srinivas Kandagatla, Liam Girdwood, Mark Brown, Jaroslav Kysela,
	Takashi Iwai
  Cc: linux-sound, linux-arm-msm, linux-kernel, kernel

In the existing implementation, the link->ops assignment is
conditioned on link->no_pcm being set, which generally happens
when a platform entry is present. However, in scenarios where
there is no platform but multiple codecs in the DAI link,
backend operations (link->ops) must still be assigned to ensure
correct codec settings.

Mohammad Rafi Shaik (1):
  ASoC: qcom: sc8280xp: Assign backend ops for multi codec dai links

 sound/soc/qcom/sc8280xp.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)


base-commit: 176e917e010cb7dcc605f11d2bc33f304292482b
-- 
2.34.1


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

* [PATCH v1 1/1] ASoC: qcom: sc8280xp: Assign backend ops for multi codec dai links
  2025-05-28 15:07 [PATCH v1 0/1] ASoC: qcom: sc8280xp: Assign backend ops for multi codec dai links Mohammad Rafi Shaik
@ 2025-05-28 15:07 ` Mohammad Rafi Shaik
  2025-05-28 16:02   ` Alexey Klimov
  2025-05-28 16:14   ` Dmitry Baryshkov
  2025-05-28 15:09 ` [PATCH v1 0/1] " Mark Brown
  1 sibling, 2 replies; 5+ messages in thread
From: Mohammad Rafi Shaik @ 2025-05-28 15:07 UTC (permalink / raw)
  To: Srinivas Kandagatla, Liam Girdwood, Mark Brown, Jaroslav Kysela,
	Takashi Iwai
  Cc: linux-sound, linux-arm-msm, linux-kernel, kernel

In the existing implementation, the link->ops assignment is
conditioned on link->no_pcm being set, which generally happens
when a platform entry is present. However, in scenarios where
there is no platform but multiple codecs in the DAI link,
backend operations (link->ops) must still be assigned to ensure
correct codec settings.

Signed-off-by: Mohammad Rafi Shaik <mohammad.rafi.shaik@oss.qualcomm.com>
---
 sound/soc/qcom/sc8280xp.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/sound/soc/qcom/sc8280xp.c b/sound/soc/qcom/sc8280xp.c
index 99fd34728e38..b1b31d197b42 100644
--- a/sound/soc/qcom/sc8280xp.c
+++ b/sound/soc/qcom/sc8280xp.c
@@ -147,7 +147,7 @@ static void sc8280xp_add_be_ops(struct snd_soc_card *card)
 	int i;
 
 	for_each_card_prelinks(card, i, link) {
-		if (link->no_pcm == 1) {
+		if (link->no_pcm == 1 || link->num_codecs > 1) {
 			link->init = sc8280xp_snd_init;
 			link->be_hw_params_fixup = sc8280xp_be_hw_params_fixup;
 			link->ops = &sc8280xp_be_ops;
-- 
2.34.1


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

* Re: [PATCH v1 0/1] ASoC: qcom: sc8280xp: Assign backend ops for multi codec dai links
  2025-05-28 15:07 [PATCH v1 0/1] ASoC: qcom: sc8280xp: Assign backend ops for multi codec dai links Mohammad Rafi Shaik
  2025-05-28 15:07 ` [PATCH v1 1/1] " Mohammad Rafi Shaik
@ 2025-05-28 15:09 ` Mark Brown
  1 sibling, 0 replies; 5+ messages in thread
From: Mark Brown @ 2025-05-28 15:09 UTC (permalink / raw)
  To: Mohammad Rafi Shaik
  Cc: Srinivas Kandagatla, Liam Girdwood, Jaroslav Kysela,
	Takashi Iwai, linux-sound, linux-arm-msm, linux-kernel, kernel

[-- Attachment #1: Type: text/plain, Size: 725 bytes --]

On Wed, May 28, 2025 at 08:37:15PM +0530, Mohammad Rafi Shaik wrote:
> In the existing implementation, the link->ops assignment is
> conditioned on link->no_pcm being set, which generally happens
> when a platform entry is present. However, in scenarios where
> there is no platform but multiple codecs in the DAI link,
> backend operations (link->ops) must still be assigned to ensure
> correct codec settings.

Please don't send cover letters for single patches, if there is anything
that needs saying put it in the changelog of the patch or after the ---
if it's administrative stuff.  This reduces mail volume and ensures that 
any important information is recorded in the changelog rather than being
lost. 

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 488 bytes --]

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

* Re: [PATCH v1 1/1] ASoC: qcom: sc8280xp: Assign backend ops for multi codec dai links
  2025-05-28 15:07 ` [PATCH v1 1/1] " Mohammad Rafi Shaik
@ 2025-05-28 16:02   ` Alexey Klimov
  2025-05-28 16:14   ` Dmitry Baryshkov
  1 sibling, 0 replies; 5+ messages in thread
From: Alexey Klimov @ 2025-05-28 16:02 UTC (permalink / raw)
  To: Mohammad Rafi Shaik, Srinivas Kandagatla
  Cc: Liam Girdwood, Mark Brown, Jaroslav Kysela, Takashi Iwai,
	linux-sound, linux-arm-msm, linux-kernel, kernel

On Wed May 28, 2025 at 4:07 PM BST, Mohammad Rafi Shaik wrote:
> In the existing implementation, the link->ops assignment is
> conditioned on link->no_pcm being set, which generally happens
> when a platform entry is present. However, in scenarios where
> there is no platform but multiple codecs in the DAI link,
> backend operations (link->ops) must still be assigned to ensure
> correct codec settings.
>
> Signed-off-by: Mohammad Rafi Shaik <mohammad.rafi.shaik@oss.qualcomm.com>
> ---
>  sound/soc/qcom/sc8280xp.c | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/sound/soc/qcom/sc8280xp.c b/sound/soc/qcom/sc8280xp.c
> index 99fd34728e38..b1b31d197b42 100644
> --- a/sound/soc/qcom/sc8280xp.c
> +++ b/sound/soc/qcom/sc8280xp.c
> @@ -147,7 +147,7 @@ static void sc8280xp_add_be_ops(struct snd_soc_card *card)
>  	int i;
>  
>  	for_each_card_prelinks(card, i, link) {
> -		if (link->no_pcm == 1) {
> +		if (link->no_pcm == 1 || link->num_codecs > 1) {

Out of curiosity or maybe I am missing something, why this is needed
for a multi-codec link only? Or in other words why not link->num_codecs > 0 ?

Or due to some reasons platformless single-codec backend is a no-go scenario?

Thanks,
Alexey


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

* Re: [PATCH v1 1/1] ASoC: qcom: sc8280xp: Assign backend ops for multi codec dai links
  2025-05-28 15:07 ` [PATCH v1 1/1] " Mohammad Rafi Shaik
  2025-05-28 16:02   ` Alexey Klimov
@ 2025-05-28 16:14   ` Dmitry Baryshkov
  1 sibling, 0 replies; 5+ messages in thread
From: Dmitry Baryshkov @ 2025-05-28 16:14 UTC (permalink / raw)
  To: Mohammad Rafi Shaik
  Cc: Srinivas Kandagatla, Liam Girdwood, Mark Brown, Jaroslav Kysela,
	Takashi Iwai, linux-sound, linux-arm-msm, linux-kernel, kernel

On Wed, May 28, 2025 at 08:37:16PM +0530, Mohammad Rafi Shaik wrote:
> In the existing implementation, the link->ops assignment is
> conditioned on link->no_pcm being set, which generally happens
> when a platform entry is present. However, in scenarios where
> there is no platform but multiple codecs in the DAI link,
> backend operations (link->ops) must still be assigned to ensure
> correct codec settings.

Could you please provide an example of such scenarios?

> 
> Signed-off-by: Mohammad Rafi Shaik <mohammad.rafi.shaik@oss.qualcomm.com>
> ---
>  sound/soc/qcom/sc8280xp.c | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
> 

-- 
With best wishes
Dmitry

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

end of thread, other threads:[~2025-05-28 16:14 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2025-05-28 15:07 [PATCH v1 0/1] ASoC: qcom: sc8280xp: Assign backend ops for multi codec dai links Mohammad Rafi Shaik
2025-05-28 15:07 ` [PATCH v1 1/1] " Mohammad Rafi Shaik
2025-05-28 16:02   ` Alexey Klimov
2025-05-28 16:14   ` Dmitry Baryshkov
2025-05-28 15:09 ` [PATCH v1 0/1] " 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®