]> git.ipfire.org Git - thirdparty/linux.git/commit
ALSA: usb-audio: Add mixer quirk for Sony DualSense PS5
authorCristian Ciocaltea <cristian.ciocaltea@collabora.com>
Mon, 26 May 2025 14:07:48 +0000 (17:07 +0300)
committerTakashi Iwai <tiwai@suse.de>
Mon, 9 Jun 2025 07:48:51 +0000 (09:48 +0200)
commit79d561c4ec0497669f19a9550cfb74812f60938b
tree059bca3b7d7f705a62e56d7623d83937100cd9ea
parent9cea7425595697802e8d55a322a251999554b8b1
ALSA: usb-audio: Add mixer quirk for Sony DualSense PS5

The Sony DualSense wireless controller (PS5) features an internal mono
speaker, but it also provides a 3.5mm jack socket for headphone output
and headset microphone input.

Since this is a UAC1 device, it doesn't advertise any jack detection
capability.  However, the controller is able to report HP & MIC insert
events via HID, i.e. through a dedicated input device managed by the
hid-playstation driver.

Add a quirk to create the jack controls for headphone and headset mic,
respectively, and setup an input handler for each of them in order to
intercept the related hotplug events.

Signed-off-by: Cristian Ciocaltea <cristian.ciocaltea@collabora.com>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
Link: https://patch.msgid.link/20250526-dualsense-alsa-jack-v1-9-1a821463b632@collabora.com
sound/usb/mixer_quirks.c