]> git.baikalelectronics.ru Git - kernel.git/commit
Input: cm109 - fix handling of volume and mute buttons
authorFlorian Euchner <florian.euchner@gmail.com>
Wed, 4 May 2016 22:59:18 +0000 (15:59 -0700)
committerDmitry Torokhov <dmitry.torokhov@gmail.com>
Wed, 4 May 2016 23:00:54 +0000 (16:00 -0700)
commitadd0a1b9e35588fb645cf35866ecf960c371f98d
treeb767f3e6ef1a3142d1f82716e6e5d883273d576c
parente2b913c95515716167e4afb6eb17dbb29bf60134
Input: cm109 - fix handling of volume and mute buttons

The CM109 driver reported key press events of volume up / down and
record / playback mute buttons, but no release events. Report those events
properly by handling volume and mute keys seperately. For the record and
playback mute buttons, only presses are registered by the CM109, therefore
simulate press-n-release. This fixes the volume control buttons of various
USB headsets.

Signed-off-by: Florian Euchner <florian.euchner@gmail.com>
Signed-off-by: Dmitry Torokhov <dmitry.torokhov@gmail.com>
drivers/input/misc/cm109.c