Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 8fdc1948 authored by Dmitry Torokhov's avatar Dmitry Torokhov
Browse files

Input: make EVIOCGSND return meaningful data



Signed-off-by: default avatarDmitry Torokhov <dtor@mail.ru>
parent 08791e5c
Loading
Loading
Loading
Loading
+3 −0
Original line number Diff line number Diff line
@@ -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;