12 Oct
2012
12 Oct
'12
8:03 a.m.
Ondrej Zary wrote:
I want to enable/disable some mixer controls based on state of another control (switching between limiter and AGC mode). So I (re)set the SNDRV_CTL_ELEM_ACCESS_INACTIVE flag in kctl->vd[0].access and then call snd_ctl_notify(card, SNDRV_CTL_EVENT_MASK_INFO, &kctl->id); Everyting from ctl_put() mixer callback.
When changing the control value in alsamixer, it crashes with: alsamixer: simple.c:948: snd_mixer_selem_get_enum_item: Assertion `(elem)->type == SND_MIXER_ELEM_SIMPLE' failed.
Looks like a bug in alsamixer.
Regards, Clemens