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>
This commit is contained in:
David Ward 2019-12-21 00:32:01 -05:00 committed by Takashi Iwai
parent 10db898d9b
commit 11e083d81c

View file

@ -455,7 +455,9 @@ fi
cat /proc/asound/modules 2>/dev/null | awk '{ print $2 }' > $TEMPDIR/alsamodules.tmp cat /proc/asound/modules 2>/dev/null | awk '{ print $2 }' > $TEMPDIR/alsamodules.tmp
cat /proc/asound/cards > $TEMPDIR/alsacards.tmp cat /proc/asound/cards > $TEMPDIR/alsacards.tmp
if [[ ! -z "$LSPCI" ]]; then 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 fi
#Check for HDA-Intel cards codec#* #Check for HDA-Intel cards codec#*
@ -585,12 +587,6 @@ echo "" >> $FILE
cat $TEMPDIR/lspci.tmp >> $FILE cat $TEMPDIR/lspci.tmp >> $FILE
echo "" >> $FILE echo "" >> $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 fi
if [ "$SNDOPTIONS" ] if [ "$SNDOPTIONS" ]