]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
hwdb: Add override for headset form-factors
authorBastien Nocera <hadess@hadess.net>
Sun, 2 Jul 2023 09:44:57 +0000 (11:44 +0200)
committerLuca Boccassi <luca.boccassi@gmail.com>
Sun, 2 Jul 2023 14:55:24 +0000 (15:55 +0100)
Correct the SOUND_FORM_FACTOR property for Steelseries Arctis headsets.
The USB IDs were all gathered from HeadsetControl[1].

[1]: https://github.com/Sapd/HeadsetControl

hwdb.d/70-sound-card.hwdb [new file with mode: 0644]
hwdb.d/meson.build
hwdb.d/parse_hwdb.py

diff --git a/hwdb.d/70-sound-card.hwdb b/hwdb.d/70-sound-card.hwdb
new file mode 100644 (file)
index 0000000..51b235d
--- /dev/null
@@ -0,0 +1,31 @@
+# This file is part of systemd.
+#
+# Database of sound hardware that gets misdetected
+#
+# To add local entries, copy this file to
+#   /etc/udev/hwdb.d/
+# and add your rules there. To load the new rules execute (as root):
+#   systemd-hwdb update
+#   udevadm trigger
+
+###########################################################
+# Steelseries
+###########################################################
+# Arctis Headsets
+usb:v1038p12B3*
+usb:v1038p12B6*
+usb:v1038p12D7*
+usb:v1038p1260*
+usb:v1038p12AD*
+usb:v1038p1252*
+usb:v1038p1280*
+usb:v1038p220E*
+usb:v1038p2212*
+usb:v1038p2216*
+usb:v1038p2236*
+usb:v1038p12C2*
+usb:v1038p2202*
+usb:v1038p2206*
+usb:v1038p220A*
+usb:v1038p1290*
+ SOUND_FORM_FACTOR=headset
index f1bf073949d9362c43c6788b90fc360d776f87db..4c5df6ad7099d5014ca617f52a0188420492cb6f 100644 (file)
@@ -33,6 +33,7 @@ hwdb_files_test = files(
         '70-mouse.hwdb',
         '70-pda.hwdb',
         '70-pointingstick.hwdb',
+        '70-sound-card.hwdb',
         '70-touchpad.hwdb',
         '80-ieee1394-unit-function.hwdb')
 
index 5a1ae5a6a049d35f87beb9f1f968f55fbb149689..ee3474a6f5e9ebed54d41037dd9509bc641ffc54 100755 (executable)
@@ -193,6 +193,7 @@ def property_grammar():
              ('ID_TAG_MASTER_OF_SEAT', Literal('1')),
              ('ID_INFRARED_CAMERA', Or((Literal('0'), Literal('1')))),
              ('ID_CAMERA_DIRECTION', Or(('front', 'rear'))),
+             ('SOUND_FORM_FACTOR', Or(('internal', 'webcam', 'speaker', 'headphone', 'headset', 'handset', 'microphone'))),
             )
     fixed_props = [Literal(name)('NAME') - Suppress('=') - val('VALUE')
                    for name, val in props]