News: 0001549043

  ARM Give a man a fire and he's warm for a day, but set fire to him and he's warm for the rest of his life (Terry Pratchett, Jingo)

New Linux Patches Properly Handle The Audio Jack On Sony's PS5 DualSense Controller

([Linux Gaming] 21 Minutes Ago DualSense Controller Audio Jack)


While there has been the [1]Sony PlayStation 5 DualSense controller support for Linux going back several years and has been [2]improved upon with more recent versions of the Linux kernel, there's been some shortcomings around the audio jack handling with the DualSense controller. A new patch series out today aims to enhance that capability.

Sent to the Linux kernel mailing list today were a set of 11 patches by Cristian Ciocaltea with Collabora for enhancing the audio jack handling on the Sony PS5 DualSense controller.

Ciocaltea explains the current situation and improvements with the patch series:

"The Sony DualSense wireless controller (PS5) provides an internal mono speaker, in addition to the 3.5mm jack socket for headphone output and headset microphone input. However, the default audio output path is set to headphones, regardless of whether they are actually inserted or not.

This patch series aims to improve the audio support by implementing the following changes:

* Detect when the plugged state of the 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.

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

* Register a dedicated input device for the audio jack and use it to report all headphone and headset mic insert events.

It's worth noting the latter is necessary since the controller complies with v1.0 of the USB Audio Class spec (UAC1) and, therefore, cannot advertise any jack detection capability. However, this feature can be implemented in the generic USB audio driver via quirks, i.e. by configuring an input handler to receive hotplug events from the HID driver."

[3]This patch series provides those DualSense controller audio jack improvements for the "playstation" HID Linux driver.



[1] https://www.phoronix.com/news/Sony-PS5-DualSense-Linux-5.12

[2] https://www.phoronix.com/news/Linux-6.15-Ensures-PS5-Driver

[3] https://lore.kernel.org/lkml/20250526-dualsense-hid-jack-v1-0-a65fee4a60cc@collabora.com/



phoronix

The English instinctively admire any man who has no talent and is modest
about it.
-- James Agate, British film and drama critic