mirror of
https://github.com/alsa-project/alsa-utils
synced 2025-01-09 00:16:42 +01:00
alsa-info.sh: add sysfs card info section
It may be useful to dump the sysfs tree to gather more runtime information. Signed-off-by: Jaroslav Kysela <perex@perex.cz>
This commit is contained in:
parent
c990f9a8ad
commit
c1f8cc2f07
1 changed files with 13 additions and 2 deletions
|
@ -611,8 +611,7 @@ echo "" >> $FILE
|
||||||
echo "" >> $FILE
|
echo "" >> $FILE
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if [ "$SNDOPTIONS" ]
|
if [ "$SNDOPTIONS" ]; then
|
||||||
then
|
|
||||||
echo "!!Modprobe options (Sound related)" >> $FILE
|
echo "!!Modprobe options (Sound related)" >> $FILE
|
||||||
echo "!!--------------------------------" >> $FILE
|
echo "!!--------------------------------" >> $FILE
|
||||||
echo "" >> $FILE
|
echo "" >> $FILE
|
||||||
|
@ -635,6 +634,18 @@ if [ -d "$SYSFS" ]; then
|
||||||
echo "" >> $FILE
|
echo "" >> $FILE
|
||||||
done
|
done
|
||||||
echo "" >> $FILE
|
echo "" >> $FILE
|
||||||
|
echo "!!Sysfs card info" >> $FILE
|
||||||
|
echo "!!---------------" >> $FILE
|
||||||
|
echo "" >> $FILE
|
||||||
|
for cdir in $(echo $SYSFS/class/sound/card*); do
|
||||||
|
echo "!!Card: $cdir" >> $FILE
|
||||||
|
driver=$(readlink -f "$cdir/device/driver")
|
||||||
|
echo "Driver: $driver" >> $FILE
|
||||||
|
echo "Tree:" >> $FILE
|
||||||
|
tree --noreport $cdir -L 2 | sed -e 's/^/\t/g' >> $FILE
|
||||||
|
echo "" >> $FILE
|
||||||
|
done
|
||||||
|
echo "" >> $FILE
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if [ -s "$TEMPDIR/alsa-hda-intel.tmp" ]; then
|
if [ -s "$TEMPDIR/alsa-hda-intel.tmp" ]; then
|
||||||
|
|
Loading…
Reference in a new issue