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: support snd_soc_dai_link_component for codec_conf" to the asoc tree
Date: Mon, 16 Dec 2019 12:05:34 +0000	[thread overview]
Message-ID: <applied-87lfrh59kj.wl-kuninori.morimoto.gx@renesas.com> (raw)
In-Reply-To: <87lfrh59kj.wl-kuninori.morimoto.gx@renesas.com>

The patch

   ASoC: soc-core: support snd_soc_dai_link_component for codec_conf

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 c13493a2460b7ba8f6e75fe6e1a3b732cc294f8f Mon Sep 17 00:00:00 2001
From: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com>
Date: Fri, 13 Dec 2019 09:54:36 +0900
Subject: [PATCH] ASoC: soc-core: support snd_soc_dai_link_component for
 codec_conf

To find codec_conf component, it is using dev_name, of_node.
But, we already has this kind of finding component method by
snd_soc_dai_link_component, and snd_soc_is_matching_component().
We shouldn't have duplicate implementation to do same things.
This patch adds snd_soc_dai_link_component support to find
codec_conf component.

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

diff --git a/include/sound/soc.h b/include/sound/soc.h
index 82e65235c60d..a94e5d2fc2b2 100644
--- a/include/sound/soc.h
+++ b/include/sound/soc.h
@@ -949,6 +949,7 @@ struct snd_soc_dai_link {
 #define COMP_CODEC(_name, _dai)		{ .name = _name, .dai_name = _dai, }
 #define COMP_PLATFORM(_name)		{ .name = _name }
 #define COMP_AUX(_name)			{ .name = _name }
+#define COMP_CODEC_CONF(_name)		{ .name = _name }
 #define COMP_DUMMY()			{ .name = "snd-soc-dummy", .dai_name = "snd-soc-dummy-dai", }
 
 extern struct snd_soc_dai_link_component null_dailink_component[0];
@@ -962,6 +963,8 @@ struct snd_soc_codec_conf {
 	const char *dev_name;
 	struct device_node *of_node;
 
+	struct snd_soc_dai_link_component dlc;
+
 	/*
 	 * optional map of kcontrol, widget and path name prefixes that are
 	 * associated per device
diff --git a/sound/soc/soc-core.c b/sound/soc/soc-core.c
index ee77db253bcc..411b83ba2fc0 100644
--- a/sound/soc/soc-core.c
+++ b/sound/soc/soc-core.c
@@ -1185,12 +1185,16 @@ static void soc_set_name_prefix(struct snd_soc_card *card,
 	for (i = 0; i < card->num_configs; i++) {
 		struct snd_soc_codec_conf *map = &card->codec_conf[i];
 
-		if (map->of_node && of_node != map->of_node)
-			continue;
-		if (map->dev_name && strcmp(component->name, map->dev_name))
-			continue;
-		component->name_prefix = map->name_prefix;
-		return;
+		/* fixme */
+		if (map->dev_name)
+			map->dlc.name = map->dev_name;
+		if (map->of_node)
+			map->dlc.of_node = map->of_node;
+
+		if (snd_soc_is_matching_component(&map->dlc, component)) {
+			component->name_prefix = map->name_prefix;
+			return;
+		}
 	}
 
 	/*
@@ -2915,7 +2919,7 @@ void snd_soc_of_parse_node_prefix(struct device_node *np,
 		return;
 	}
 
-	codec_conf->of_node	= of_node;
+	codec_conf->dlc.of_node	= of_node;
 	codec_conf->name_prefix	= str;
 }
 EXPORT_SYMBOL_GPL(snd_soc_of_parse_node_prefix);
-- 
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-16 12:15 UTC|newest]

Thread overview: 33+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2019-12-13  0:54 [alsa-devel] [PATCH v2 00/15] ASoC: soc-core cleanup step7 Kuninori Morimoto
2019-12-13  0:54 ` [alsa-devel] [PATCH v2 01/15] ASoC: soc-core: support snd_soc_dai_link_component for codec_conf Kuninori Morimoto
2019-12-16 12:05   ` Mark Brown [this message]
2019-12-13  0:54 ` [alsa-devel] [PATCH v2 02/15] ASoC: fsl: imx-audmix: use " Kuninori Morimoto
2019-12-16 12:05   ` [alsa-devel] Applied "ASoC: fsl: imx-audmix: use snd_soc_dai_link_component for codec_conf" to the asoc tree Mark Brown
2019-12-13  0:54 ` [alsa-devel] [PATCH v2 03/15] ASoC: intel: kbl_da7219_max98927: use snd_soc_dai_link_component for codec_conf Kuninori Morimoto
2019-12-16 12:05   ` [alsa-devel] Applied "ASoC: intel: kbl_da7219_max98927: use snd_soc_dai_link_component for codec_conf" to the asoc tree Mark Brown
2019-12-13  0:54 ` [alsa-devel] [PATCH v2 04/15] ASoC: intel: kbl_rt5663_max98927: use snd_soc_dai_link_component for codec_conf Kuninori Morimoto
2019-12-16 12:05   ` [alsa-devel] Applied "ASoC: intel: kbl_rt5663_max98927: use snd_soc_dai_link_component for codec_conf" to the asoc tree Mark Brown
2019-12-13  0:55 ` [alsa-devel] [PATCH v2 05/15] ASoC: intel: kbl_rt5663_rt5514_max98927: use snd_soc_dai_link_component for codec_conf Kuninori Morimoto
2019-12-16 12:05   ` [alsa-devel] Applied "ASoC: intel: kbl_rt5663_rt5514_max98927: use snd_soc_dai_link_component for codec_conf" to the asoc tree Mark Brown
2019-12-13  0:55 ` [alsa-devel] [PATCH v2 06/15] ASoC: intel: skl_nau88l25_ssm4567: use snd_soc_dai_link_component for codec_conf Kuninori Morimoto
2019-12-16 12:05   ` [alsa-devel] Applied "ASoC: intel: skl_nau88l25_ssm4567: use snd_soc_dai_link_component for codec_conf" to the asoc tree Mark Brown
2019-12-13  0:55 ` [alsa-devel] [PATCH v2 07/15] ASoC: mediatek: mt8173-rt5650-rt5514: use snd_soc_dai_link_component for codec_conf Kuninori Morimoto
2019-12-16 12:05   ` [alsa-devel] Applied "ASoC: mediatek: mt8173-rt5650-rt5514: use snd_soc_dai_link_component for codec_conf" to the asoc tree Mark Brown
2019-12-13  0:55 ` [alsa-devel] [PATCH v2 08/15] ASoC: mediatek: mt8173-rt5650-rt5676: use snd_soc_dai_link_component for codec_conf Kuninori Morimoto
2019-12-16 12:05   ` [alsa-devel] Applied "ASoC: mediatek: mt8173-rt5650-rt5676: use snd_soc_dai_link_component for codec_conf" to the asoc tree Mark Brown
2019-12-13  0:55 ` [alsa-devel] [PATCH v2 09/15] ASoC: mediatek: mt8183-da7219-max98357: use snd_soc_dai_link_component for codec_conf Kuninori Morimoto
2019-12-16 12:05   ` [alsa-devel] Applied "ASoC: mediatek: mt8183-da7219-max98357: use snd_soc_dai_link_component for codec_conf" to the asoc tree Mark Brown
2019-12-13  0:55 ` [alsa-devel] [PATCH v2 10/15] ASoC: samsung: bells: use snd_soc_dai_link_component for codec_conf Kuninori Morimoto
2019-12-16 12:05   ` [alsa-devel] Applied "ASoC: samsung: bells: use snd_soc_dai_link_component for codec_conf" to the asoc tree Mark Brown
2019-12-13  0:55 ` [alsa-devel] [PATCH v2 11/15] ASoC: samsung: lowland: use snd_soc_dai_link_component for codec_conf Kuninori Morimoto
2019-12-16 12:05   ` [alsa-devel] Applied "ASoC: samsung: lowland: use snd_soc_dai_link_component for codec_conf" to the asoc tree Mark Brown
2019-12-13  0:55 ` [alsa-devel] [PATCH v2 12/15] ASoC: samsung: neo1973_wm8753: use snd_soc_dai_link_component for codec_conf Kuninori Morimoto
2019-12-16 12:05   ` [alsa-devel] Applied "ASoC: samsung: neo1973_wm8753: use snd_soc_dai_link_component for codec_conf" to the asoc tree Mark Brown
2019-12-13  0:55 ` [alsa-devel] [PATCH v2 13/15] ASoC: samsung: speyside: use snd_soc_dai_link_component for codec_conf Kuninori Morimoto
2019-12-16 12:05   ` [alsa-devel] Applied "ASoC: samsung: speyside: use snd_soc_dai_link_component for codec_conf" to the asoc tree Mark Brown
2019-12-13  0:55 ` [alsa-devel] [PATCH v2 14/15] ASoC: ti: rx51: use snd_soc_dai_link_component for codec_conf Kuninori Morimoto
2019-12-16 12:05   ` [alsa-devel] Applied "ASoC: ti: rx51: use snd_soc_dai_link_component for codec_conf" to the asoc tree Mark Brown
2019-12-13  0:55 ` [alsa-devel] [PATCH v2 15/15] ASoC: soc-core: remove legacy style of codec_conf Kuninori Morimoto
2019-12-16 12:04   ` [alsa-devel] Applied "ASoC: soc-core: remove legacy style of codec_conf" to the asoc tree Mark Brown
2019-12-13  3:49 ` [alsa-devel] [PATCH v2 00/15] ASoC: soc-core cleanup step7 Pierre-Louis Bossart
2019-12-13 17:22 ` Sridharan, Ranjani

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-87lfrh59kj.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.