diff options
author | David Ward <david.ward@ll.mit.edu> | 2019-12-21 00:32:01 -0500 |
---|---|---|
committer | Takashi Iwai <tiwai@suse.de> | 2020-01-07 14:04:39 +0100 |
commit | 11e083d81c330539f0f170bb238a17b1c2e0cb4d (patch) | |
tree | 29c3db1bb0ec28dcf3302bf1bcab15a8f9a6b4f8 /alsa-info | |
parent | 10db898d9b97f0a8d3093405ad5b4aa4ed53801d (diff) | |
download | alsa-utils-11e083d81c330539f0f170bb238a17b1c2e0cb4d.tar.gz |
alsa-info.sh: Consolidate PCI device output
Include numeric IDs and subsystem info in the PCI device output,
without placing them in a separate section.
Signed-off-by: David Ward <david.ward@ll.mit.edu>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
Diffstat (limited to 'alsa-info')
-rwxr-xr-x | alsa-info/alsa-info.sh | 10 |
1 files changed, 3 insertions, 7 deletions
diff --git a/alsa-info/alsa-info.sh b/alsa-info/alsa-info.sh index cf7ad89..8fc6997 100755 --- a/alsa-info/alsa-info.sh +++ b/alsa-info/alsa-info.sh @@ -455,7 +455,9 @@ fi cat /proc/asound/modules 2>/dev/null | awk '{ print $2 }' > $TEMPDIR/alsamodules.tmp cat /proc/asound/cards > $TEMPDIR/alsacards.tmp if [[ ! -z "$LSPCI" ]]; then - lspci | grep -i "multi\|audio">$TEMPDIR/lspci.tmp + for class in 0401 0402 0403; do + lspci -vvnn -d "::$class" | sed -n '/^[^\t]/,+1p' + done > $TEMPDIR/lspci.tmp fi #Check for HDA-Intel cards codec#* @@ -585,12 +587,6 @@ echo "" >> $FILE cat $TEMPDIR/lspci.tmp >> $FILE echo "" >> $FILE echo "" >> $FILE -echo "!!Advanced information - PCI Vendor/Device/Subsystem ID's" >> $FILE -echo "!!-------------------------------------------------------" >> $FILE -echo "" >> $FILE -lspci -vvn |grep -A1 040[1-3] >> $FILE -echo "" >> $FILE -echo "" >> $FILE fi if [ "$SNDOPTIONS" ] |