mirror of
https://github.com/alsa-project/alsa-utils
synced 2024-12-22 22:56:31 +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
|
||||
fi
|
||||
|
||||
if [ "$SNDOPTIONS" ]
|
||||
then
|
||||
if [ "$SNDOPTIONS" ]; then
|
||||
echo "!!Modprobe options (Sound related)" >> $FILE
|
||||
echo "!!--------------------------------" >> $FILE
|
||||
echo "" >> $FILE
|
||||
|
@ -635,6 +634,18 @@ if [ -d "$SYSFS" ]; then
|
|||
echo "" >> $FILE
|
||||
done
|
||||
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
|
||||
|
||||
if [ -s "$TEMPDIR/alsa-hda-intel.tmp" ]; then
|
||||
|
|
Loading…
Reference in a new issue