Here is a patch that adds usb sound card support:
* /usr/local/bin/inxi 2008-12-16 22:16:30.000000000 -0600 --- inxi 2008-12-16 22:57:02.825496050 -0600
* 2242,2247 ** --- 2242,2267 ---- print_screen_output "$audio_data" fi done + + # alsa usb hack + # for every sound card, look for a corresponding usb file + for arg in $(asoundconf list); do + + # if the file exists, go ahead and print the information + if [ -a /proc/asound/$arg/usbid ]; then + + # indent if there is a sound card found in lspci + if [[ -n $audio_data ]]; then + create_print_line + fi + + # send error messages of lsusb to /dev/null as it will display a bunch if not a super user + # also, find the contents of usbid in lsusb and print everything after the 7th word on the corresponding line + print_screen_output "${C1}Card ${C2}$(lsusb -v 2>/dev/null | grep $(cat /proc/asound/$arg/usbid) |\ + awk '{ for( i=7; i<NF; i++) { printf($i " ") } printf "\n" }')${C1} driver ${C2} usb" + fi + done + # alsa driver data only prints out if sound card data is found if [[ -n $alsa_data ]];then audio_data="${C1}Sound: ${C2}$alsa_data"
Comment #1
Posted on Dec 17, 2008 by Happy Bear(No comment was entered for this change.)
Status: Duplicate
Labels:
Type-Defect
Priority-Medium