diff options
-rw-r--r-- | rules.d/78-sound-card.rules | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/rules.d/78-sound-card.rules b/rules.d/78-sound-card.rules index 2e05ef0..82ed045 100644 --- a/rules.d/78-sound-card.rules +++ b/rules.d/78-sound-card.rules @@ -11,12 +11,18 @@ SUBSYSTEMS=="usb", GOTO="skip_pci" SUBSYSTEMS=="pci", ENV{ID_MODEL_FROM_DATABASE}=="", IMPORT{program}="pci-db %p" SUBSYSTEMS=="pci", DEVPATH=="*/0000:00:??.?/sound/*", ENV{SOUND_ONBOARD}="1" +SUBSYSTEMS=="pci", ENV{ID_BUS}="pci" + LABEL="skip_pci" # Hmm, do we really want this database here? SUBSYSTEMS=="usb", ATTRS{idVendor}=="0471", ATTRS{idProduct}=="0311", ENV{SOUND_FORM_FACTOR_WEBCAM}="1", GOTO="sound_end" +# Devices that also support Image/Video interfaces are most likely webcams + +SUBSYSTEMS=="usb", ENV{ID_USB_INTERFACES}=="*:0e????:*", ENV{SOUND_FORM_FACTOR_WEBCAM}="1", GOTO="sound_end" + # Yepp, this is ugly: ENV{ID_MODEL}=="*[Ss]peaker*", ENV{SOUND_FORM_FACTOR_SPEAKER}="1", GOTO="sound_end" |