Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

Input: make EVIOCGSND return meaningful data

Signed-off-by: Dmitry Torokhov <dtor@mail.ru>

+3
+3
drivers/input/input.c
··· 155 155 if (code > SND_MAX || !test_bit(code, dev->sndbit)) 156 156 return; 157 157 158 + if (!!test_bit(code, dev->snd) != !!value) 159 + change_bit(code, dev->snd); 160 + 158 161 if (dev->event) dev->event(dev, type, code, value); 159 162 160 163 break;