Fixed the detection of audio class.

Now class 040? is detected, not only 0401 (Intel HD has 0402).
This commit is contained in:
Takashi Iwai 2004-08-27 16:25:37 +00:00
parent acdd3317f9
commit 63909d1cf7

View 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"'"
}