[alsa-devel] multiple identical controls
My hardware has four channels, each with seven identical biquads. I'm making a custom control to handle them.
Don't I want to give then an index from 0 to 6? Why is snd_soc_cnew() setting index to zero?
struct snd_kcontrol *snd_soc_cnew(const struct snd_kcontrol_new *_template, void *data, char *long_name) { struct snd_kcontrol_new template;
memcpy(&template, _template, sizeof(template)); if (long_name) template.name = long_name; template.index = 0;
return snd_ctl_new1(&template, data); } EXPORT_SYMBOL_GPL(snd_soc_cnew);
On Tue, Jul 29, 2008 at 07:36:13PM -0400, Jon Smirl wrote:
Why is snd_soc_cnew() setting index to zero?
No great reason - previous users haven't needed to set index. Looking at the code the assignment in there should probably just be removed, the source template is usually static anyway.
participants (2)
-
Jon Smirl
-
Mark Brown