]> 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)
commitd27c4eae088ae7b5db66bd30a693b9d743a0a4d9
treeb767f3e6ef1a3142d1f82716e6e5d883273d576c
parentb814dd65523df84e5ceccca3936240029456a122
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