alsa-udev: Fix unexpected non-usb udev dectection 56/268656/5
authorSeungbae Shin <seungbae.shin@samsung.com>
Wed, 29 Dec 2021 04:03:23 +0000 (13:03 +0900)
committerSeungbae Shin <seungbae.shin@samsung.com>
Mon, 24 Jan 2022 03:32:50 +0000 (03:32 +0000)
Change-Id: I55f2f08456cf905771645b115a46b647d8c39064

src/modules/alsa/90-pulseaudio.rules

index 8a8e8de..984a29d 100644 (file)
@@ -19,12 +19,12 @@ SUBSYSTEM!="sound", GOTO="pulseaudio_end"
 ACTION!="change", GOTO="pulseaudio_end"
 KERNEL!="card*", GOTO="pulseaudio_end"
 SUBSYSTEMS=="usb", GOTO="pulseaudio_check_usb"
+# For tizen platform, we only allow usb devices from udev
+SUBSYSTEMS!="usb", ENV{PULSE_IGNORE}="1", GOTO="pulseaudio_end"
 SUBSYSTEMS=="pci", GOTO="pulseaudio_check_pci"
 SUBSYSTEMS=="firewire", GOTO="pulseaudio_firewire_quirk"
 
 SUBSYSTEMS=="platform", DRIVERS=="thinkpad_acpi", ENV{PULSE_IGNORE}="1"
-# For tizen platform, we only allow usb devices from udev
-SUBSYSTEMS!="usb", ENV{PULSE_IGNORE}="1", GOTO="pulseaudio_end"
 
 # Force enable speaker and internal mic for some laptops
 # This should only be necessary for kernels 3.3, 3.4 and 3.5 (as they are lacking the phantom jack kctls).