All of lore.kernel.org
 help / color / mirror / Atom feed
From: Mark Brown <broonie@kernel.org>
To: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com>
Cc: Linux-ALSA <alsa-devel@alsa-project.org>,
	Mark Brown <broonie@kernel.org>,
	Pierre-Louis Bossart <pierre-louis.bossart@linux.intel.com>
Subject: [alsa-devel] Applied "ASoC: soc-core: remove snd_soc_get_dai_substream()" to the asoc tree
Date: Tue, 10 Dec 2019 13:23:02 +0000	[thread overview]
Message-ID: <applied-87d0cxyq6k.wl-kuninori.morimoto.gx@renesas.com> (raw)
In-Reply-To: <87d0cxyq6k.wl-kuninori.morimoto.gx@renesas.com>

The patch

   ASoC: soc-core: remove snd_soc_get_dai_substream()

has been applied to the asoc tree at

   https://git.kernel.org/pub/scm/linux/kernel/git/broonie/sound.git for-5.6

All being well this means that it will be integrated into the linux-next
tree (usually sometime in the next 24 hours) and sent to Linus during
the next merge window (or sooner if it is a bug fix), however if
problems are discovered then the patch may be dropped or reverted.  

You may get further e-mails resulting from automated or manual testing
and review of the tree, please engage with people reporting problems and
send followup patches addressing any issues that are reported if needed.

If any updates are required or you are submitting further changes they
should be sent as incremental updates against current git, existing
patches will not be replaced.

Please add any relevant lists and maintainers to the CCs when replying
to this mail.

Thanks,
Mark

From 8babfb7030573f7338b141d038c2094b7bb95034 Mon Sep 17 00:00:00 2001
From: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com>
Date: Tue, 10 Dec 2019 09:33:55 +0900
Subject: [PATCH] ASoC: soc-core: remove snd_soc_get_dai_substream()

No driver is using snd_soc_get_dai_substream(),
and snd_soc_get_pcm_runtime() is enough for such purpose.
We can revival it if it was needed in the future.
Let's remove unused function.

Signed-off-by: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com>
Reviewed-by: Ranjani Sridharan <ranjani.sridharan@linux.intel.com>
Reviewed-by: Pierre-Louis Bossart <pierre-louis.bossart@linux.intel.com>
Link: https://lore.kernel.org/r/87d0cxyq6k.wl-kuninori.morimoto.gx@renesas.com
Signed-off-by: Mark Brown <broonie@kernel.org>
---
 include/sound/soc.h  |  2 --
 sound/soc/soc-core.c | 15 ---------------
 2 files changed, 17 deletions(-)

diff --git a/include/sound/soc.h b/include/sound/soc.h
index b7ba3b91d080..68ec5a051afe 100644
--- a/include/sound/soc.h
+++ b/include/sound/soc.h
@@ -464,8 +464,6 @@ static inline int snd_soc_new_compress(struct snd_soc_pcm_runtime *rtd, int num)
 
 void snd_soc_disconnect_sync(struct device *dev);
 
-struct snd_pcm_substream *snd_soc_get_dai_substream(struct snd_soc_card *card,
-		const char *dai_link, int stream);
 struct snd_soc_pcm_runtime *snd_soc_get_pcm_runtime(struct snd_soc_card *card,
 		const char *dai_link);
 
diff --git a/sound/soc/soc-core.c b/sound/soc/soc-core.c
index 0d436a2560e4..16265d0e48de 100644
--- a/sound/soc/soc-core.c
+++ b/sound/soc/soc-core.c
@@ -389,21 +389,6 @@ struct snd_soc_component *snd_soc_lookup_component(struct device *dev,
 }
 EXPORT_SYMBOL_GPL(snd_soc_lookup_component);
 
-struct snd_pcm_substream *snd_soc_get_dai_substream(struct snd_soc_card *card,
-		const char *dai_link, int stream)
-{
-	struct snd_soc_pcm_runtime *rtd;
-
-	for_each_card_rtds(card, rtd) {
-		if (rtd->dai_link->no_pcm &&
-			!strcmp(rtd->dai_link->name, dai_link))
-			return rtd->pcm->streams[stream].substream;
-	}
-	dev_dbg(card->dev, "ASoC: failed to find dai link %s\n", dai_link);
-	return NULL;
-}
-EXPORT_SYMBOL_GPL(snd_soc_get_dai_substream);
-
 static const struct snd_soc_ops null_snd_soc_ops;
 
 static void soc_release_rtd_dev(struct device *dev)
-- 
2.20.1

_______________________________________________
Alsa-devel mailing list
Alsa-devel@alsa-project.org
https://mailman.alsa-project.org/mailman/listinfo/alsa-devel

  reply	other threads:[~2019-12-10 13:32 UTC|newest]

Thread overview: 31+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2019-12-10  0:30 [alsa-devel] [PATCH v2 00/15][resend] ASoC: soc-core cleanup step6 Kuninori Morimoto
2019-12-10  0:33 ` [alsa-devel] [PATCH 01/15][resend] ASoC: soc-core: remove dai_link_list Kuninori Morimoto
2019-12-10 13:23   ` [alsa-devel] Applied "ASoC: soc-core: remove dai_link_list" to the asoc tree Mark Brown
2019-12-10  0:33 ` [alsa-devel] [PATCH 02/15][resend] ASoC: soc-core: remove snd_soc_disconnect_sync() Kuninori Morimoto
2019-12-10 13:23   ` [alsa-devel] Applied "ASoC: soc-core: remove snd_soc_disconnect_sync()" to the asoc tree Mark Brown
2019-12-10  0:33 ` [alsa-devel] [PATCH 03/15][resend] ASoC: soc-core: remove snd_soc_get_dai_substream() Kuninori Morimoto
2019-12-10 13:23   ` Mark Brown [this message]
2019-12-10  0:34 ` [alsa-devel] [PATCH 04/15][resend] ASoC: soc-core: move snd_soc_get_pcm_runtime() Kuninori Morimoto
2019-12-10 13:23   ` [alsa-devel] Applied "ASoC: soc-core: move snd_soc_get_pcm_runtime()" to the asoc tree Mark Brown
2019-12-10  0:34 ` [alsa-devel] [PATCH 05/15][resend] ASoC: soc-core: find rtd via dai_link pointer at snd_soc_get_pcm_runtime() Kuninori Morimoto
2019-12-10 13:22   ` [alsa-devel] Applied "ASoC: soc-core: find rtd via dai_link pointer at snd_soc_get_pcm_runtime()" to the asoc tree Mark Brown
2019-12-10  0:34 ` [alsa-devel] [PATCH 06/15][resend] ASoC: soc-core: move snd_soc_find_dai_link() Kuninori Morimoto
2019-12-10 13:22   ` [alsa-devel] Applied "ASoC: soc-core: move snd_soc_find_dai_link()" to the asoc tree Mark Brown
2019-12-10  0:34 ` [alsa-devel] [PATCH 07/15][resend] ASoC: soc-core: rename snd_soc_add_dai_link() to snd_soc_add_pcm_runtime() Kuninori Morimoto
2019-12-10 13:22   ` [alsa-devel] Applied "ASoC: soc-core: rename snd_soc_add_dai_link() to snd_soc_add_pcm_runtime()" to the asoc tree Mark Brown
2019-12-10  0:34 ` [alsa-devel] [PATCH 08/15][resend] ASoC: soc-core: rename snd_soc_remove_dai_link() to snd_soc_remove_pcm_runtime() Kuninori Morimoto
2019-12-10 13:22   ` [alsa-devel] Applied "ASoC: soc-core: rename snd_soc_remove_dai_link() to snd_soc_remove_pcm_runtime()" to the asoc tree Mark Brown
2019-12-10  0:34 ` [alsa-devel] [PATCH 09/15][resend] ASoC: soc-core: move soc_link_dai_pcm_new() Kuninori Morimoto
2019-12-10 13:22   ` [alsa-devel] Applied "ASoC: soc-core: move soc_link_dai_pcm_new()" to the asoc tree Mark Brown
2019-12-10  0:34 ` [alsa-devel] [PATCH 10/15][resend] ASoC: soc-core: rename soc_link_dai_pcm_new() to soc_dai_pcm_new() Kuninori Morimoto
2019-12-10 13:22   ` [alsa-devel] Applied "ASoC: soc-core: rename soc_link_dai_pcm_new() to soc_dai_pcm_new()" to the asoc tree Mark Brown
2019-12-10  0:34 ` [alsa-devel] [PATCH 11/15][resend] ASoC: soc-core: move soc_link_init() Kuninori Morimoto
2019-12-10 13:22   ` [alsa-devel] Applied "ASoC: soc-core: move soc_link_init()" to the asoc tree Mark Brown
2019-12-10  0:34 ` [alsa-devel] [PATCH 12/15][resend] ASoC: soc-core: add missing return value check for soc_link_init() Kuninori Morimoto
2019-12-10 13:22   ` [alsa-devel] Applied "ASoC: soc-core: add missing return value check for soc_link_init()" to the asoc tree Mark Brown
2019-12-10  0:34 ` [alsa-devel] [PATCH 13/15][resend] ASoC: soc-core: rename soc_link_init() to soc_init_pcm_runtime() Kuninori Morimoto
2019-12-10 13:22   ` [alsa-devel] Applied "ASoC: soc-core: rename soc_link_init() to soc_init_pcm_runtime()" to the asoc tree Mark Brown
2019-12-10  0:34 ` [alsa-devel] [PATCH 14/15][resend] ASoC: soc-core: soc_set_name_prefix(): tidyup loop condition Kuninori Morimoto
2019-12-10 13:22   ` [alsa-devel] Applied "ASoC: soc-core: soc_set_name_prefix(): tidyup loop condition" to the asoc tree Mark Brown
2019-12-10  0:34 ` [alsa-devel] [PATCH 15/15][resend] ASoC: soc-core: soc_set_name_prefix(): get component device_node at out of loop Kuninori Morimoto
2019-12-10 13:22   ` [alsa-devel] Applied "ASoC: soc-core: soc_set_name_prefix(): get component device_node at out of loop" to the asoc tree 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=applied-87d0cxyq6k.wl-kuninori.morimoto.gx@renesas.com \
    --to=broonie@kernel.org \
    --cc=alsa-devel@alsa-project.org \
    --cc=kuninori.morimoto.gx@renesas.com \
    --cc=pierre-louis.bossart@linux.intel.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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.