Re: [PATCH 01/15] ASoC: soc-core: support snd_soc_dai_link_component for codec_conf

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 





On 12/11/19 7:07 PM, Kuninori Morimoto wrote:
From: Kuninori Morimoto <kuninori.morimoto.gx@xxxxxxxxxxx>

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@xxxxxxxxxxx>

Thanks Morimoto-san, this looks good to me, but I couldn't resist a small nit-pick below.

---
  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 82e6523..dab1212 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_CNF(_name)		{ .name = _name }

COMP_CODEC_CONF() ?

CNF is not an acronym/concept we use anywhere else, whereas codec_conf is pretty much the default for variable naming.

-	codec_conf->of_node	= of_node;
+	codec_conf->dlc.of_node	= of_node;
  	codec_conf->name_prefix	= str;
_______________________________________________
Alsa-devel mailing list
Alsa-devel@xxxxxxxxxxxxxxxx
https://mailman.alsa-project.org/mailman/listinfo/alsa-devel



[Index of Archives]     [ALSA User]     [Linux Audio Users]     [Pulse Audio]     [Kernel Archive]     [Asterisk PBX]     [Photo Sharing]     [Linux Sound]     [Video 4 Linux]     [Gimp]     [Yosemite News]

  Powered by Linux