diff options
author | Jaroslav Kysela <perex@perex.cz> | 2021-02-22 10:53:12 +0100 |
---|---|---|
committer | Jaroslav Kysela <perex@perex.cz> | 2021-02-22 10:55:14 +0100 |
commit | c990f9a8ad2efebcf866045c219f194a8c67d064 (patch) | |
tree | 970d846d8ac360e937d857335bbea07b359c8361 /alsa-info | |
parent | 8cd781be74473a99c055a87548885e6349f71d1a (diff) | |
download | alsa-utils-c990f9a8ad2efebcf866045c219f194a8c67d064.tar.gz |
alsa-info.sh: add card number to the ALSA module list section
Previous output:
!!Loaded ALSA modules
!!-------------------
snd_hda_intel
snd_usb_audio
New output:
!!Loaded ALSA modules
!!-------------------
snd_hda_intel (card 0)
snd_usb_audio (card 1)
Signed-off-by: Jaroslav Kysela <perex@perex.cz>
Diffstat (limited to 'alsa-info')
-rwxr-xr-x | alsa-info/alsa-info.sh | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/alsa-info/alsa-info.sh b/alsa-info/alsa-info.sh index 2e5b901..252a607 100755 --- a/alsa-info/alsa-info.sh +++ b/alsa-info/alsa-info.sh @@ -1,6 +1,6 @@ #!/bin/bash -SCRIPT_VERSION=0.4.65 +SCRIPT_VERSION=0.4.66 CHANGELOG="http://www.alsa-project.org/alsa-info.sh.changelog" ################################################################################# @@ -461,7 +461,7 @@ if [ -d /sys/bus/acpi/devices ]; then done fi -cat /proc/asound/modules 2>/dev/null | awk '{ print $2 }' > $TEMPDIR/alsamodules.tmp +awk '{ print $2 " (card " $1 ")" }' < /proc/asound/modules > $TEMPDIR/alsamodules.tmp 2> /dev/null cat /proc/asound/cards > $TEMPDIR/alsacards.tmp if [[ ! -z "$LSPCI" ]]; then for class in 0401 0402 0403; do |