diff --git a/inxi b/inxi index ad9d9c9..7785d6e 100755 --- a/inxi +++ b/inxi @@ -1264,7 +1264,8 @@ get_cmdline() ## create array of sound cards installed on system, and if found, use asound data as well get_audio_data() { - local i='' alsa_data='' alsa_driver='' device_count='' usb_proc_file='' + local i='' alsa_data='' alsa_driver='' device_count='' + local usb_proc_file='' array_count='' usb_id='' usb_data='' IFS=$'\n' # this first step handles the drivers for cases where the second step fails to find one @@ -1375,9 +1376,7 @@ get_audio_data() }' $DIR_ASOUND_DEVICE ) ) fi - - - # alsa usb + # alsa usb detection by damentz # for every sound card symlink in /proc/asound - display information about it for usb_proc_file in /proc/asound/* do @@ -1396,10 +1395,9 @@ get_audio_data() } #printf "\n" }' <<< "$usb_data" ) -# usb_data=$( lsusb -v 2>/dev/null |\ -# grep $( cat $usb_proc_file/usbid ) |\ -# gawk '{ gsub(/,/, " ", $0);for( i=7; i