diff options
author | Cristian Ciocaltea <cristian.ciocaltea@collabora.com> | 2025-06-25 00:56:54 +0300 |
---|---|---|
committer | Jiri Kosina <jkosina@suse.com> | 2025-09-17 11:33:49 +0200 |
commit | b1b4806c0c528e51c648dbaf8cd9f7027c1c11b7 (patch) | |
tree | 8854147aa4e76625d9ef641782a43fa50905345e /rust/helpers/security.c | |
parent | d7b744fa977b4c402c25ba723b4981a8420ad15a (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/security.c')
0 files changed, 0 insertions, 0 deletions