This commit is contained in:
inxi-svn 2012-10-19 05:33:30 +00:00
parent 194ee57cbc
commit 5c3b8443c6

13
inxi
View file

@ -4991,7 +4991,7 @@ get_networking_usb_data()
}
if ( $2 != "" ){
sub(/:/, "", $4 )
print string ",,,,usb-" $2 "-" $4 "," $6
print string ",,,,usb-" $2 "-" $4 "," $6
}
}' <<< "$lsusb_data"
) )
@ -6846,6 +6846,8 @@ print_audio_data()
pci_bus_id=''
bus_usb_text=''
bus_usb_id=''
vendor_product=''
if [[ ${#A_AUDIO_DATA[@]} -gt 1 ]];then
card_id="-$(( $i + 1 ))"
fi
@ -6867,11 +6869,20 @@ print_audio_data()
if [[ -n ${a_audio_working[4]} && $B_EXTRA_DATA == 'true' ]];then
if [[ ${a_audio_working[1]} != 'USB Audio' ]];then
bus_usb_text='bus-ID'
if [[ $B_EXTRA_EXTRA_DATA == 'true' ]];then
vendor_product=$( get_lspci_vendor_product "${a_audio_working[4]}" )
fi
else
bus_usb_text='usb-ID'
if [[ $B_EXTRA_EXTRA_DATA == 'true' ]];then
vendor_product=${a_audio_working[5]}
fi
fi
bus_usb_id=${a_audio_working[4]}
pci_bus_id=" ${C1}$bus_usb_text$SEP3${C2} $bus_usb_id"
if [[ -n $vendor_product ]];then
vendor_product=" ${C1}chip-ID$SEP3${C2} $vendor_product"
fi
fi
if [[ -n ${a_audio_working[0]} ]];then
audio_data="${C1}Card$card_id:${C2} ${a_audio_working[0]}$alsa_driver$port_data$pci_bus_id"