[alsa-devel] multiple identical controls
Jon Smirl
jonsmirl at gmail.com
Wed Jul 30 01:36:13 CEST 2008
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);
--
Jon Smirl
jonsmirl at gmail.com
More information about the Alsa-devel
mailing list