18 Oct
2011
18 Oct
'11
5:11 p.m.
Anders Gnistrup wrote:
The code works just as expected when using the: snd_ctl_elem_id_set_name(id, "PCM Playback Volume"); But when I use the snd_ctl_elem_id_set_numid(id, numid); (with numid=23) it fails. ... snd_ctl_elem_id_set_interface(id, SND_CTL_ELEM_IFACE_MIXER);
//snd_ctl_elem_id_set_numid(id, numid); snd_ctl_elem_id_set_name(id, "PCM Playback Volume");
When using the numid to access elements, it must be the only field that is set in the elem id.
Regards, Clemens