Input: cm109 - fix handling of volume and mute buttons
commitc90a0f08fedc57e2b8ff871cc036cdbdde683de4
authorFlorian Euchner <florian.euchner@gmail.com>
Wed, 4 May 2016 22:59:18 +0000 (4 15:59 -0700)
committerDmitry Torokhov <dmitry.torokhov@gmail.com>
Wed, 4 May 2016 23:00:54 +0000 (4 16:00 -0700)
treeb767f3e6ef1a3142d1f82716e6e5d883273d576c
parent5ad629a82de37cbcaffc17861e07b5ec68ab75f4
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