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)
commitc26e48b150fccb07c4b7f0f419f2b0a2c42e57d2
tree5617456e80b9406d38ec6cbd0a112c874dc4ad5c
parent8e5198a12d6416f0a1e9393bdb3a533854ed577b
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