From: Srinivas Kandagatla <srinivas.kandagatla@oss.qualcomm.com>
To: srini@kernel.org, broonie@kernel.org, robh@kernel.org,
krzk+dt@kernel.org
Cc: conor+dt@kernel.org, perex@perex.cz, tiwai@suse.com,
linux-arm-msm@vger.kernel.org, linux-sound@vger.kernel.org,
devicetree@vger.kernel.org, linux-kernel@vger.kernel.org,
Srinivas Kandagatla <srinivas.kandagatla@oss.qualcomm.com>
Subject: [PATCH 1/6] ASoC: qcom: x1e80100: set card driver name from match data
Date: Tue, 2 Sep 2025 15:00:39 +0100 [thread overview]
Message-ID: <20250902140044.54508-2-srinivas.kandagatla@oss.qualcomm.com> (raw)
In-Reply-To: <20250902140044.54508-1-srinivas.kandagatla@oss.qualcomm.com>
Sound machine drivers for Qualcomm SoCs can be reused across multiple
SoCs. But user space ALSA UCM files depend on the card driver name which
should be set per board/SoC.
Allow such customization by using driver match data as sound card driver
name.
Signed-off-by: Srinivas Kandagatla <srinivas.kandagatla@oss.qualcomm.com>
---
sound/soc/qcom/x1e80100.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/sound/soc/qcom/x1e80100.c b/sound/soc/qcom/x1e80100.c
index 8eb57fc12f0d..322010d54af6 100644
--- a/sound/soc/qcom/x1e80100.c
+++ b/sound/soc/qcom/x1e80100.c
@@ -210,14 +210,14 @@ static int x1e80100_platform_probe(struct platform_device *pdev)
if (ret)
return ret;
- card->driver_name = "x1e80100";
+ card->driver_name = of_device_get_match_data(dev);
x1e80100_add_be_ops(card);
return devm_snd_soc_register_card(dev, card);
}
static const struct of_device_id snd_x1e80100_dt_match[] = {
- { .compatible = "qcom,x1e80100-sndcard", },
+ { .compatible = "qcom,x1e80100-sndcard", .data = "x1e80100" },
{}
};
MODULE_DEVICE_TABLE(of, snd_x1e80100_dt_match);
--
2.50.0
next prev parent reply other threads:[~2025-09-02 14:01 UTC|newest]
Thread overview: 13+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-09-02 14:00 [PATCH 0/6] ASoC: qcom: add support for Glymur Srinivas Kandagatla
2025-09-02 14:00 ` Srinivas Kandagatla [this message]
2025-09-02 14:00 ` [PATCH 2/6] ASoC: dt-bindings: qcom,sm8250: Add glymur sound card Srinivas Kandagatla
2025-09-03 7:55 ` Krzysztof Kozlowski
2025-09-02 14:00 ` [PATCH 3/6] ASoC: qcom: x1e80100: add compatible for glymur SoC Srinivas Kandagatla
2025-09-02 14:00 ` [PATCH 4/6] ASoC: dt-bindings: qcom: Add Glymur LPASS wsa and va macro codecs Srinivas Kandagatla
2025-09-03 7:57 ` Krzysztof Kozlowski
2025-09-03 9:00 ` Srinivas Kandagatla
2025-09-02 14:00 ` [PATCH 5/6] ASoC: codecs: lpass-macro: add Codec version 2.9 Srinivas Kandagatla
2025-09-03 7:57 ` Krzysztof Kozlowski
2025-09-02 14:00 ` [PATCH 6/6] ASoC: codecs: lpass-wsa-macro: add Codev " Srinivas Kandagatla
2025-09-03 7:58 ` Krzysztof Kozlowski
2025-09-03 17:37 ` [PATCH 0/6] ASoC: qcom: add support for Glymur Mark Brown
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=20250902140044.54508-2-srinivas.kandagatla@oss.qualcomm.com \
--to=srinivas.kandagatla@oss.qualcomm.com \
--cc=broonie@kernel.org \
--cc=conor+dt@kernel.org \
--cc=devicetree@vger.kernel.org \
--cc=krzk+dt@kernel.org \
--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®