make alsaconf parse lspci output correctly

Fix for systems like debian which has different lspci output.

Signed-off-by: Thomas Hood <jdthood@yahoo.co.uk>
This commit is contained in:
Thomas Hood 2004-09-24 11:29:02 +00:00 committed by Takashi Iwai
parent 24f54a9ea6
commit 33b47cd2d4

View file

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