]> git.baikalelectronics.ru Git - kernel.git/commit
HID: playstation: add microphone mute support for DualSense.
authorRoderick Colenbrander <roderick.colenbrander@sony.com>
Wed, 17 Feb 2021 00:50:07 +0000 (16:50 -0800)
committerBenjamin Tissoires <benjamin.tissoires@redhat.com>
Thu, 18 Feb 2021 16:41:51 +0000 (17:41 +0100)
commit2adaf8732d5c4e709590778df121ff31c3175db9
tree5617456e80b9406d38ec6cbd0a112c874dc4ad5c
parentcf34a684abe7ef62d38494244e84d56a6ee6598f
HID: playstation: add microphone mute support for DualSense.

The DualSense controller has a built-in microphone exposed as an
audio device over USB (or HID using Bluetooth). A dedicated
button on the controller handles mute, but software has to configure
the device to mute the audio stream.

This patch captures the mute button and schedules an output report
to mute/unmute the audio stream as well as toggle the mute LED.

Signed-off-by: Roderick Colenbrander <roderick.colenbrander@sony.com>
Reviewed-by: Barnabás Pőcze <pobrn@protonmail.com>
Signed-off-by: Benjamin Tissoires <benjamin.tissoires@redhat.com>
drivers/hid/hid-playstation.c