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

The DualSense controller complies with v1.0 of the USB Audio Class spec
(UAC1), hence it 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.

When operating in USB mode, register a dedicated input device for the
audio jack and use it to report all headphone and headset mic insert
events.

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