diff --git a/inxi b/inxi index bc7929f..22af859 100755 --- a/inxi +++ b/inxi @@ -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"