commit | 8fdc19486f4d3b0fc5f1c7ce69fe5f7b1c653e62 | [log] [tgz] |
---|---|---|
author | Dmitry Torokhov <dtor_core@ameritech.net> | Sat Apr 29 01:13:48 2006 -0400 |
committer | Dmitry Torokhov <dtor_core@ameritech.net> | Sat Apr 29 01:13:48 2006 -0400 |
tree | 76b12c40bf4724e0d8ac52990bc043f03cc0e5cb | |
parent | 08791e5cf62b6952ca32106aebb79b6066005de4 [diff] [blame] |
Input: make EVIOCGSND return meaningful data Signed-off-by: Dmitry Torokhov <dtor@mail.ru>
diff --git a/drivers/input/input.c b/drivers/input/input.c index 591c70d..3038c26 100644 --- a/drivers/input/input.c +++ b/drivers/input/input.c
@@ -155,6 +155,9 @@ 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;