]> git.alsa-project.org Git - alsa-utils.git/commitdiff
Fixed the detection of audio class.
authorTakashi Iwai <tiwai@suse.de>
Fri, 27 Aug 2004 16:25:37 +0000 (16:25 +0000)
committerTakashi Iwai <tiwai@suse.de>
Fri, 27 Aug 2004 16:25:37 +0000 (16:25 +0000)
Now class 040? is detected, not only 0401 (Intel HD has 0402).

alsaconf/alsaconf.in

index 3a1dd87bf00493d696a1209bb2ae037733a92e18..a7ce4ad08473641bb38e89ae13fb12fcf2ff855a 100644 (file)
@@ -511,7 +511,7 @@ BEGIN {
 /^[<literal space><literal tab>]*PCI: /{
        gsub(/0x/, "");
        gsub(/=/, ":");
-       x = sprintf ("'$lspci' -n 2>/dev/null| grep '"'Class 0401'"' | grep %s", $2);
+       x = sprintf ("'$lspci' -n 2>/dev/null| grep '"'Class 040?'"' | grep %s", $2);
        if (system (x) == 0)
                printf "%s %s\n", $2, driver >>"'"$FOUND"'"
 }