From: Karthik S <karthik.s@oss.qualcomm.com>
To: 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>,
Bjorn Andersson <andersson@kernel.org>,
Konrad Dybcio <konradybcio@kernel.org>,
Jaroslav Kysela <perex@perex.cz>, Takashi Iwai <tiwai@suse.com>
Cc: Abel Vesa <abelvesa@kernel.org>,
linux-sound@vger.kernel.org, linux-arm-msm@vger.kernel.org,
devicetree@vger.kernel.org, linux-kernel@vger.kernel.org,
Karthik S <karthik.s@oss.qualcomm.com>
Subject: [PATCH v1 2/3] ASoC: qcom: sc8280xp: enable support for talos-lyra
Date: Tue, 17 Nov 2026 16:13:02 +0530 [thread overview]
Message-ID: <20261117104303.435294-3-karthik.s@oss.qualcomm.com> (raw)
In-Reply-To: <20261117104303.435294-1-karthik.s@oss.qualcomm.com>
Add the necessary board widgets, kcontrols and DAPM routes
for max98091 codec support. Enable required DAI format, sysclk
and other required configs.
Signed-off-by: Karthik S <karthik.s@oss.qualcomm.com>
---
sound/soc/qcom/sc8280xp.c | 32 +++++++++++++++++++++++++++++++-
1 file changed, 31 insertions(+), 1 deletion(-)
diff --git a/sound/soc/qcom/sc8280xp.c b/sound/soc/qcom/sc8280xp.c
index e136407c56bf..dd503dddc230 100644
--- a/sound/soc/qcom/sc8280xp.c
+++ b/sound/soc/qcom/sc8280xp.c
@@ -44,8 +44,9 @@ 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"),
@@ -56,12 +57,28 @@ static const struct snd_soc_dapm_widget max98090_dapm_widgets[] = {
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),
SND_SOC_DAPM_SPK("Speaker", NULL),
};
+static const struct snd_soc_dapm_route talos_lyra_dapm_routes[] = {
+ {"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"},
+};
+
enum sc8280xp_jack_setup {
SC8280XP_JACK_SETUP_NONE,
SC8280XP_JACK_SETUP_CODEC,
@@ -624,6 +641,18 @@ static const struct qcom_snd_soc_common qcs615_priv_data = {
.codec_sysclk_set = true,
};
+static const struct qcom_snd_soc_common talos_lyra_priv_data = {
+ .driver_name = "qcs615",
+ .dapm_widgets = max98090_dapm_widgets,
+ .num_dapm_widgets = ARRAY_SIZE(max98090_dapm_widgets),
+ .dapm_routes = talos_lyra_dapm_routes,
+ .num_dapm_routes = ARRAY_SIZE(talos_lyra_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 qcm6490_priv_data = {
.driver_name = "qcm6490",
.dapm_widgets = sc8280xp_dapm_widgets,
@@ -750,6 +779,7 @@ static const struct of_device_id snd_sc8280xp_dt_match[] = {
{ .compatible = "qcom,sm8550-sndcard", .data = &sm8550_priv_data },
{ .compatible = "qcom,sm8650-sndcard", .data = &sm8650_priv_data },
{ .compatible = "qcom,sm8750-sndcard", .data = &sm8750_priv_data },
+ { .compatible = "qcom,talos-lyra-sndcard", .data = &talos_lyra_priv_data },
{}
};
--
2.34.1
next prev parent reply other threads:[~2026-11-17 10:43 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-11-17 10:43 [PATCH v1 0/3] ASoC: qcom: Add talos-lyra-evk audio support Karthik S
2026-11-17 10:43 ` [PATCH v1 1/3] arm64: dts: qcom: talos-lyra-evk: enable " Karthik S
2026-11-17 10:50 ` Krzysztof Kozlowski
2026-11-17 11:01 ` Karthik S
2026-11-17 10:43 ` Karthik S [this message]
2026-11-17 10:43 ` [PATCH v1 3/3] dt-bindings: sound: qcom,sm8250: add talos-lyra-sndcard compatible Karthik S
2026-11-17 10:50 ` [PATCH v1 0/3] ASoC: qcom: Add talos-lyra-evk audio support Krzysztof Kozlowski
2026-11-17 11:08 Karthik S
2026-11-17 11:08 ` [PATCH v1 2/3] ASoC: qcom: sc8280xp: enable support for talos-lyra 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=20261117104303.435294-3-karthik.s@oss.qualcomm.com \
--to=karthik.s@oss.qualcomm.com \
--cc=abelvesa@kernel.org \
--cc=andersson@kernel.org \
--cc=broonie@kernel.org \
--cc=conor+dt@kernel.org \
--cc=devicetree@vger.kernel.org \
--cc=konradybcio@kernel.org \
--cc=krzk+dt@kernel.org \
--cc=lgirdwood@gmail.com \
--cc=linux-arm-msm@vger.kernel.org \
--cc=linux-kernel@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
all inboxes | Powered by JetHome®