diff options
author | Tanu Kaskinen <tanuk@iki.fi> | 2020-08-04 11:38:41 +0300 |
---|---|---|
committer | Arun Raghavan <arun@arunraghavan.net> | 2020-08-04 12:40:22 +0000 |
commit | 9636c2940b3c76714922932d1d30ce226eb8f037 (patch) | |
tree | 7aeec7f29177a4cf15116b67760820762ebb39ed | |
parent | 7742c9aa50f5435873dda0118c5ce90398633082 (diff) | |
download | pulseaudio-9636c2940b3c76714922932d1d30ce226eb8f037.tar.gz |
udev: fix too long card name with HyperX Cloud Orbit S
Fixes: https://gitlab.freedesktop.org/pulseaudio/pulseaudio/-/issues/820
-rw-r--r-- | src/modules/alsa/90-pulseaudio.rules | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/src/modules/alsa/90-pulseaudio.rules b/src/modules/alsa/90-pulseaudio.rules index eff3ea66d..1614a1685 100644 --- a/src/modules/alsa/90-pulseaudio.rules +++ b/src/modules/alsa/90-pulseaudio.rules @@ -131,6 +131,16 @@ ATTRS{idVendor}=="1038", ATTRS{idProduct}=="1252", ENV{PULSE_PROFILE_SET}="steel ATTRS{idVendor}=="147a", ATTRS{idProduct}=="e055", ENV{PULSE_PROFILE_SET}="cmedia-high-speed-true-hdaudio.conf" +# HyperX Cloud Orbit S has three modes. Each mode has a separate product ID. +# ID_SERIAL for this device is the device name + mode repeated three times. +# ID_SERIAL is used for the ID_ID property, and the ID_ID property is used in +# the card name in PulseAudio. The resulting card name is too long for the name +# length limit, so we set a more sensible ID_ID here (the same as the default +# ID_ID, but without repetition in the serial part). +ATTRS{idVendor}=="0951", ATTRS{idProduct}=="16ff", ENV{ID_ID}="usb-HyperX_Cloud_Orbit_S_2Ch-$env{ID_USB_INTERFACE_NUM}" +ATTRS{idVendor}=="0951", ATTRS{idProduct}=="1702", ENV{ID_ID}="usb-HyperX_Cloud_Orbit_S_Hi-Res_2Ch-$env{ID_USB_INTERFACE_NUM}" +ATTRS{idVendor}=="0951", ATTRS{idProduct}=="1703", ENV{ID_ID}="usb-HyperX_Cloud_Orbit_S_3D_8Ch-$env{ID_USB_INTERFACE_NUM}" + GOTO="pulseaudio_end" LABEL="pulseaudio_firewire_quirk" |