From: Dmitry Torokhov Date: Sat, 29 Apr 2006 05:13:48 +0000 (-0400) Subject: Input: make EVIOCGSND return meaningful data X-Git-Tag: v2.6.17-rc4~103^2 X-Git-Url: https://err.no/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=8fdc19486f4d3b0fc5f1c7ce69fe5f7b1c653e62;p=linux-2.6 Input: make EVIOCGSND return meaningful data Signed-off-by: Dmitry Torokhov --- diff --git a/drivers/input/input.c b/drivers/input/input.c index 591c70d80c..3038c26891 100644 --- a/drivers/input/input.c +++ b/drivers/input/input.c @@ -155,6 +155,9 @@ void input_event(struct input_dev *dev, unsigned int type, unsigned int code, in if (code > SND_MAX || !test_bit(code, dev->sndbit)) return; + if (!!test_bit(code, dev->snd) != !!value) + change_bit(code, dev->snd); + if (dev->event) dev->event(dev, type, code, value); break;