提交 8fdc1948 编写于 作者: D Dmitry Torokhov

Input: make EVIOCGSND return meaningful data

Signed-off-by: NDmitry Torokhov <dtor@mail.ru>
上级 08791e5c
......@@ -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;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册