Linux Sound subsystem development
 help / color / mirror / Atom feed
From: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com>
To: Mark Brown <broonie@kernel.org>,
	Alvin Sipraga <alvin.sipraga@analog.com>
Cc: linux-sound@vger.kernel.org
Subject: [PATCH v2 2/9] ASoC: soc-dai: add snd_soc_dai_id()
Date: Fri, 18 Sep 2026 01:41:53 +0000	[thread overview]
Message-ID: <87mrtfjpy6.wl-kuninori.morimoto.gx@renesas.com> (raw)
In-Reply-To: <87pkybjq02.wl-kuninori.morimoto.gx@renesas.com>

DAI parameter will be capsuled soon, will be not enable to access from
each drivers. Add snd_soc_dai_id() to get ID from DAI.

Signed-off-by: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com>
Reviewed-by: Alvin Šipraga <alvin.sipraga@analog.com>
---
 include/sound/soc-dai.h | 1 +
 sound/soc/soc-dai.c     | 6 ++++++
 2 files changed, 7 insertions(+)

diff --git a/include/sound/soc-dai.h b/include/sound/soc-dai.h
index 7e64e049d71d5..02b52fed97c9e 100644
--- a/include/sound/soc-dai.h
+++ b/include/sound/soc-dai.h
@@ -283,6 +283,7 @@ int snd_soc_dai_matches_args(const struct snd_soc_dai *dai,
 int snd_soc_dai_matches_dlc(struct snd_soc_dai *dai,
 			    const struct snd_soc_dai_link_component *dlc);
 const char *snd_soc_dai_name(const struct snd_soc_dai *dai);
+int snd_soc_dai_id(const struct snd_soc_dai *dai);
 
 struct snd_soc_dai_ops {
 	/* DAI driver callbacks */
diff --git a/sound/soc/soc-dai.c b/sound/soc/soc-dai.c
index 0cf70f0903dc8..71de29bfbbd0c 100644
--- a/sound/soc/soc-dai.c
+++ b/sound/soc/soc-dai.c
@@ -1073,6 +1073,12 @@ const char *snd_soc_dai_name(const struct snd_soc_dai *dai)
 }
 EXPORT_SYMBOL_GPL(snd_soc_dai_name);
 
+int snd_soc_dai_id(const struct snd_soc_dai *dai)
+{
+	return dai->id;
+}
+EXPORT_SYMBOL_GPL(snd_soc_dai_id);
+
 const struct snd_soc_pcm_stream *
 snd_soc_dai_pcm_stream_get_i(const struct snd_soc_dai *dai, int stream)
 {
-- 
2.53.0


  parent reply	other threads:[~2026-09-18  1:41 UTC|newest]

Thread overview: 15+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-09-18  1:40 [PATCH v2 0/9] ASoC: add new DAI functions Kuninori Morimoto
2026-09-18  1:41 ` [PATCH v2 1/9] ASoC: soc-dai: use snd_soc_dai_stream_active() Kuninori Morimoto
2026-09-24  9:34   ` Alvin Šipraga
2026-09-18  1:41 ` Kuninori Morimoto [this message]
2026-09-18  1:43 ` [PATCH v2 3/9] ASoC: soc-dai: add snd_soc_dai_to_component() Kuninori Morimoto
2026-09-18  1:43 ` [PATCH v2 4/9] ASoC: soc-dai: add snd_soc_dai_to_driver() Kuninori Morimoto
2026-09-18  1:43 ` [PATCH v2 5/9] ASoC: soc-dai: add snd_soc_dai_{to/from}_list() Kuninori Morimoto
2026-09-18  1:44 ` [PATCH v2 6/9] ASoC: soc-dai: add snd_soc_dai_get_symmetric_xxx() Kuninori Morimoto
2026-09-24  9:35   ` Alvin Šipraga
2026-09-18  1:45 ` [PATCH v2 7/9] ASoC: soc-dai: add snd_soc_dai_{set/to}_priv() Kuninori Morimoto
2026-09-18  1:45 ` [PATCH v2 8/9] ASoC: soc-dai: add snd_soc_dai_get_bclk[_ratio]() Kuninori Morimoto
2026-09-24  9:36   ` Alvin Šipraga
2026-09-18  1:46 ` [PATCH v2 9/9] ASoC: soc-dai: rename snd_soc_dai_action() to snd_soc_dai_active_update() Kuninori Morimoto
2026-09-24  9:33   ` Alvin Šipraga
2026-09-28 12:36 ` [PATCH v2 0/9] ASoC: add new DAI functions 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=87mrtfjpy6.wl-kuninori.morimoto.gx@renesas.com \
    --to=kuninori.morimoto.gx@renesas.com \
    --cc=alvin.sipraga@analog.com \
    --cc=broonie@kernel.org \
    --cc=linux-sound@vger.kernel.org \
    /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