alsa-devel.alsa-project.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] ASoC: core: allow control index different from 0
@ 2016-10-04 15:36 Arnaud Pouliquen
  2016-10-05  6:59 ` Takashi Sakamoto
  0 siblings, 1 reply; 11+ messages in thread
From: Arnaud Pouliquen @ 2016-10-04 15:36 UTC (permalink / raw)
  To: alsa-devel
  Cc: kernel, Takashi Iwai, arnaud.pouliquen, lgirdwood, broonie,
	Moise Gergaud

To differentiate control with same name only device field can be used.
But some applications like iecset use control index to differentiate
controls linked to several PCM devices or DAIs.
This patch suppress index overwriting to allow to use control index field.

Signed-off-by: Arnaud Pouliquen <arnaud.pouliquen@st.com>
---
 sound/soc/soc-core.c | 1 -
 1 file changed, 1 deletion(-)

diff --git a/sound/soc/soc-core.c b/sound/soc/soc-core.c
index 4afa8db..39bc1a9 100644
--- a/sound/soc/soc-core.c
+++ b/sound/soc/soc-core.c
@@ -2175,7 +2175,6 @@ struct snd_kcontrol *snd_soc_cnew(const struct snd_kcontrol_new *_template,
 	char *name = NULL;
 
 	memcpy(&template, _template, sizeof(template));
-	template.index = 0;
 
 	if (!long_name)
 		long_name = template.name;
-- 
1.9.1

^ permalink raw reply related	[flat|nested] 11+ messages in thread

end of thread, other threads:[~2016-10-11 13:58 UTC | newest]

Thread overview: 11+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-10-04 15:36 [PATCH] ASoC: core: allow control index different from 0 Arnaud Pouliquen
2016-10-05  6:59 ` Takashi Sakamoto
2016-10-05  8:41   ` Arnaud Pouliquen
2016-10-06 14:01     ` Takashi Sakamoto
2016-10-07 16:41       ` Arnaud Pouliquen
2016-10-09  3:05         ` Takashi Sakamoto
2016-10-10  9:26           ` Arnaud Pouliquen
2016-10-10 13:03             ` Takashi Sakamoto
2016-10-10 14:38               ` Arnaud Pouliquen
2016-10-11  8:30             ` Charles Keepax
2016-10-11 13:58               ` Arnaud Pouliquen

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).