summaryrefslogtreecommitdiff
path: root/rust/helpers/signal.c
diff options
context:
space:
mode:
authorCristian Ciocaltea <cristian.ciocaltea@collabora.com>2025-06-25 00:56:54 +0300
committerJiri Kosina <jkosina@suse.com>2025-09-17 11:33:49 +0200
commitb1b4806c0c528e51c648dbaf8cd9f7027c1c11b7 (patch)
tree8854147aa4e76625d9ef641782a43fa50905345e /rust/helpers/signal.c
parentd7b744fa977b4c402c25ba723b4981a8420ad15a (diff)
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>
Diffstat (limited to 'rust/helpers/signal.c')
0 files changed, 0 insertions, 0 deletions