]> www.infradead.org Git - users/jedix/linux-maple.git/commit
HID: playstation: add microphone mute support for DualSense.
authorRoderick Colenbrander <roderick.colenbrander@sony.com>
Sun, 7 Feb 2021 21:49:05 +0000 (13:49 -0800)
committerBenjamin Tissoires <benjamin.tissoires@redhat.com>
Thu, 11 Feb 2021 15:57:34 +0000 (16:57 +0100)
commitd5f7af85a5376c3dfc478e054c52d928698fa9ba
tree8383f8087fb16dcdd8d293a5746c40125d141d1a
parentebbe998a4a522849cce1f8883f2fb1e1ea20aa9f
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/Kconfig
drivers/hid/hid-playstation.c