trying this first

This commit is contained in:
inxi-svn 2009-02-18 05:42:56 +00:00
parent f994e2ebb7
commit 33736cc4f1

6
inxi
View file

@ -1374,7 +1374,7 @@ get_audio_data()
}
}' $DIR_ASOUND_DEVICE ) )
fi
IFS="$ORIGINAL_IFS"
# alsa usb
@ -1394,7 +1394,7 @@ get_audio_data()
for( i=7; i<NF; i++) {
printf($i " ")
}
printf "\n"
#printf "\n"
}' <<< "$usb_data" )
# usb_data=$( lsusb -v 2>/dev/null |\
# grep $( cat $usb_proc_file/usbid ) |\
@ -1402,7 +1402,7 @@ get_audio_data()
A_AUDIO_DATA=( "${A_AUDIO_DATA[@]}" "$usb_data,snd-usb-audio" )
fi
done
IFS="$ORIGINAL_IFS"
# handle cases where card detection fails, like in PS3, where lspci gives no output, or headless boxes..
if [[ ${#A_AUDIO_DATA[@]} -eq 0 ]];then
A_AUDIO_DATA[0]='Failed to Detect Sound Card!'