[PATCH] ASoC: core: allow control index different from 0

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

 



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

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



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

  Powered by Linux