[alsa-devel] [PATCH] ALSA: control: confirm to return all identical information in 'activate' event data
Takashi Sakamoto
o-takashi at sakamocchi.jp
Mon Feb 9 16:02:06 CET 2015
When event originator doesn't set numerical ID in identical information,
the event data includes no numerical ID, thus userspace applications
cannot identify the control just by unique ID in event data.
This commit fix this bug so as the event data includes all of identical
information.
Signed-off-by: Takashi Sakamoto <o-takashi at sakamocchi.jp>
---
sound/core/control.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/sound/core/control.c b/sound/core/control.c
index 6a72b3e..884fddd 100644
--- a/sound/core/control.c
+++ b/sound/core/control.c
@@ -587,6 +587,7 @@ int snd_ctl_activate_id(struct snd_card *card, struct snd_ctl_elem_id *id,
}
ret = 1;
unlock:
+ *id = kctl->id;
up_write(&card->controls_rwsem);
if (ret > 0)
snd_ctl_notify(card, SNDRV_CTL_EVENT_MASK_INFO, id);
--
2.1.0
More information about the Alsa-devel
mailing list