Devicetree
 help / color / mirror / Atom feed
From: Mohammad Rafi Shaik <mohammad.rafi.shaik@oss.qualcomm.com>
To: Karthik S <karthik.s@oss.qualcomm.com>,
	Srinivas Kandagatla <srini@kernel.org>,
	Liam Girdwood <lgirdwood@gmail.com>,
	Mark Brown <broonie@kernel.org>, Rob Herring <robh@kernel.org>,
	Krzysztof Kozlowski <krzk+dt@kernel.org>,
	Conor Dooley <conor+dt@kernel.org>,
	Jaroslav Kysela <perex@perex.cz>, Takashi Iwai <tiwai@suse.com>
Cc: linux-sound@vger.kernel.org, linux-arm-msm@vger.kernel.org,
	devicetree@vger.kernel.org
Subject: Re: [PATCH v1 1/2] ASoC: qcom: sc8280xp: Add support for lemans-draco-evk
Date: Tue, 24 Nov 2026 13:53:08 +0530	[thread overview]
Message-ID: <808bb7ca-ecb0-4594-900e-3114fd26eb97@oss.qualcomm.com> (raw)
In-Reply-To: <20261123072522.2358819-2-karthik.s@oss.qualcomm.com>



On 11/23/2026 12:55 PM, Karthik S wrote:
> Add routes and controls for max98091 and va_macro for playback
> and capture. Add mclk enablement and codec dai format enablement
> for playback support on lemans-draco-evk.
> 
> Signed-off-by: Karthik S <karthik.s@oss.qualcomm.com>
> ---
>   sound/soc/qcom/sc8280xp.c | 38 +++++++++++++++++++++++++++++++++++++-
>   1 file changed, 37 insertions(+), 1 deletion(-)
> 
> diff --git a/sound/soc/qcom/sc8280xp.c b/sound/soc/qcom/sc8280xp.c
> index e136407c56bf..2a542699a51b 100644
> --- a/sound/soc/qcom/sc8280xp.c
> +++ b/sound/soc/qcom/sc8280xp.c
> @@ -44,18 +44,41 @@ static struct snd_soc_dapm_widget sc8280xp_dapm_widgets[] = {
>   
>   static const struct snd_kcontrol_new max98090_controls[] = {
>   	SOC_DAPM_PIN_SWITCH("Headset Mic12"),
> -	SOC_DAPM_PIN_SWITCH("Headphone"),
> +	SOC_DAPM_PIN_SWITCH("Headset Mic34"),
>   	SOC_DAPM_PIN_SWITCH("Headset Mic56"),
> +	SOC_DAPM_PIN_SWITCH("Headphone"),
>   	SOC_DAPM_PIN_SWITCH("Speaker"),
>   	SOC_DAPM_PIN_SWITCH("Receiver"),
>   	SOC_DAPM_PIN_SWITCH("Int Mic"),
>   };
>   
> +static const struct snd_soc_dapm_route draco_lemans_dapm_routes[] = {

Move the audio routes to the Device Tree.

Best Regards,
Rafi.

> +	{"IN12", NULL, "Headset Mic12"},
> +	{"Headset Mic12", NULL, "MICBIAS"},
> +	{"IN34", NULL, "Headset Mic34"},
> +	{"Headset Mic34", NULL, "MICBIAS"},
> +	{"IN56", NULL, "Headset Mic56"},
> +	{"Headset Mic56", NULL, "MICBIAS"},
> +	{"Headphone", NULL, "HPL"},
> +	{"Headphone", NULL, "HPR"},
> +	{"Receiver", NULL, "RCVL"},
> +	{"Receiver", NULL, "RCVR"},
> +	{"Speaker", NULL, "SPKL"},
> +	{"Speaker", NULL, "SPKR"},
> +	{"VA DMIC0", NULL, "vdd-micb"},
> +	{"VA DMIC1", NULL, "vdd-micb"},
> +	{"VA DMIC2", NULL, "vdd-micb"},
> +	{"VA DMIC3", NULL, "vdd-micb"},
> +	{"VA DMIC4", NULL, "vdd-micb"},
> +	{"VA DMIC5", NULL, "vdd-micb"},
> +};
> +
>   static const struct snd_soc_dapm_widget max98090_dapm_widgets[] = {
>   	SND_SOC_DAPM_HP("Headphone Jack", NULL),
>   	SND_SOC_DAPM_MIC("Mic Jack", NULL),
>   	SND_SOC_DAPM_HP("Headphone", NULL),
>   	SND_SOC_DAPM_MIC("Headset Mic12", NULL),
> +	SND_SOC_DAPM_MIC("Headset Mic34", NULL),
>   	SND_SOC_DAPM_MIC("Headset Mic56", NULL),
>   	SND_SOC_DAPM_MIC("Int Mic", NULL),
>   	SND_SOC_DAPM_SPK("Receiver", NULL),
> @@ -617,6 +640,18 @@ static const struct qcom_snd_soc_common qcs9100_priv_data = {
>   	.num_dapm_widgets = ARRAY_SIZE(sc8280xp_dapm_widgets),
>   };
>   
> +static const struct qcom_snd_soc_common draco_lemans_priv_data = {
> +	.driver_name = "sa8775p",
> +	.dapm_widgets = max98090_dapm_widgets,
> +	.num_dapm_widgets = ARRAY_SIZE(max98090_dapm_widgets),
> +	.dapm_routes = draco_lemans_dapm_routes,
> +	.num_dapm_routes = ARRAY_SIZE(draco_lemans_dapm_routes),
> +	.controls = max98090_controls,
> +	.num_controls = ARRAY_SIZE(max98090_controls),
> +	.codec_dai_fmt = SND_SOC_DAIFMT_NB_NF | SND_SOC_DAIFMT_I2S | SND_SOC_DAIFMT_BC_FC,
> +	.codec_sysclk_set = true,
> +};
> +
>   static const struct qcom_snd_soc_common qcs615_priv_data = {
>   	.driver_name = "qcs615",
>   	.dapm_widgets = sc8280xp_dapm_widgets,
> @@ -743,6 +778,7 @@ static const struct of_device_id snd_sc8280xp_dt_match[] = {
>   	{ .compatible = "thundercomm,qcs6490-rubikpi3-sndcard", .data = &rubikpi3_priv_data },
>   	{ .compatible = "qcom,qcs8275-sndcard", .data = &qcs8275_priv_data },
>   	{ .compatible = "qcom,qcs9075-sndcard", .data = &qcs9100_priv_data },
> +	{ .compatible = "qcom,qcs9100-draco-sndcard", .data = &draco_lemans_priv_data },
>   	{ .compatible = "qcom,qcs9100-sndcard", .data = &qcs9100_priv_data },
>   	{ .compatible = "qcom,sc8280xp-sndcard", .data = &sc8280xp_priv_data },
>   	{ .compatible = "qcom,sm8450-sndcard", .data = &sm8450_priv_data },


  reply	other threads:[~2026-11-24  8:23 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-11-23  7:25 [PATCH v1 0/2] ASoC: qcom: add lemans-draco sound card support Karthik S
2026-11-23  7:25 ` [PATCH v1 1/2] ASoC: qcom: sc8280xp: Add support for lemans-draco-evk Karthik S
2026-11-24  8:23   ` Mohammad Rafi Shaik [this message]
2026-11-23  7:25 ` [PATCH v1 2/2] ASoC: dt-bindings: qcom,sm8250: Add lemans-draco sound card Karthik S

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=808bb7ca-ecb0-4594-900e-3114fd26eb97@oss.qualcomm.com \
    --to=mohammad.rafi.shaik@oss.qualcomm.com \
    --cc=broonie@kernel.org \
    --cc=conor+dt@kernel.org \
    --cc=devicetree@vger.kernel.org \
    --cc=karthik.s@oss.qualcomm.com \
    --cc=krzk+dt@kernel.org \
    --cc=lgirdwood@gmail.com \
    --cc=linux-arm-msm@vger.kernel.org \
    --cc=linux-sound@vger.kernel.org \
    --cc=perex@perex.cz \
    --cc=robh@kernel.org \
    --cc=srini@kernel.org \
    --cc=tiwai@suse.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox