30 Jul
2008
30 Jul
'08
1:36 a.m.
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@gmail.com