Daemon to handle Jabra speakerphone HID volume workaround
On the Jabra speakerphone USB device, we need to do a volume change
every time we are receiving a volume key press else we are not sure we
will receive the next key press.
Implement a daemon to handle the volume poke through ALSA everytime the
device sent a volume key event on its HID interface.
The state of the call still needs to be handled by the webapp, so the
daemon is not opening directly the HID interface but snooping the
incoming request from the device interrupt endpoint using the Linux
kernel usbmon interface.
The daemon is started by a UDEV rule detecting the USB device insertion
and sending a signal to the upstart script.
It also injects "fake" volume volume key press/release on the keyboard
input in order to notify the UI of the volume change.
Intercept volume keys release using usbmon
Signed-off-by: Vincent Palatin <email@example.com>
TEST=on Stumpy, connect Jabra speakerphone and test all the buttons
see volume going up and down and muting properly
Reviewed-by: Dylan Reid <firstname.lastname@example.org>
Tested-by: Vincent Palatin <email@example.com>
Commit-Queue: Vincent Palatin <firstname.lastname@example.org>
6 files changed