]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
HID: playstation: Support DualSense audio jack hotplug detection
authorCristian Ciocaltea <cristian.ciocaltea@collabora.com>
Tue, 24 Jun 2025 21:56:54 +0000 (00:56 +0300)
committerJiri Kosina <jkosina@suse.com>
Wed, 17 Sep 2025 09:33:49 +0000 (11:33 +0200)
commitb1b4806c0c528e51c648dbaf8cd9f7027c1c11b7
tree8854147aa4e76625d9ef641782a43fa50905345e
parentd7b744fa977b4c402c25ba723b4981a8420ad15a
HID: playstation: Support DualSense audio jack hotplug detection

The default audio output path on DualSense controller hardware is set to
headphones, regardless of whether they are actually inserted or not.

Detect when the plugged state of the 3.5mm audio jack changes and toggle
audio output between headphones and internal speaker, as required.  The
latter is achieved by essentially routing the right channel of the audio
source to the mono speaker.

Additionally, adjust the speaker volume since its default level is too
low and, therefore, cannot generate any audible sound.

It's worth noting the audio functionality is currently not supported for
Bluetooth, hence it's limited to USB connectivity.

Signed-off-by: Cristian Ciocaltea <cristian.ciocaltea@collabora.com>
Tested-by: Benjamin Tissoires <bentiss@kernel.org>
Signed-off-by: Jiri Kosina <jkosina@suse.com>
drivers/hid/hid-playstation.c