This commit is contained in:
inxi-svn 2008-11-21 01:36:50 +00:00
parent 892572ec7f
commit a295ba44ba

8
inxi
View file

@ -1040,7 +1040,9 @@ get_audio_data()
cards[audioCard]++
while (getline && !/^$/) {
if (/driver in use/) {
drivers[audioCard] = drivers[audioCard] gensub(/(.*): (.*)/,"\\2","g",$0) " "
gsub(/^ +| +$/, "", audioCard)
drivers[audioCard] = drivers[audioCard] gensub(/(.*): (.*)/,"\\2","g",$0) ""
}
if (/I\/O/) {
portsTemp = gensub(/\tI\/O ports at (.*) \[.*\]/,"\\1","g",$0)
@ -2204,7 +2206,7 @@ print_audio_data()
if [[ $( wc -w <<< ${a_audio_working[2]} ) -gt 1 ]];then
port_plural='s'
fi
port_data="${C1}at port$port_plural${C2} ${a_audio_working[2]}"
port_data=" ${C1}at port$port_plural${C2} ${a_audio_working[2]}"
fi
audio_data="${C1}$card_one${C2}${a_audio_working[0]}$alsa_driver$port_data"
audio_data=$( create_print_line "Audio:" "$audio_data" )
@ -2227,7 +2229,7 @@ print_audio_data()
if [[ $( wc -w <<< ${a_audio_working[2]} ) -gt 1 ]];then
port_plural='s'
fi
port_data="${C1}at port$port_plural${C2} ${a_audio_working[2]}"
port_data=" ${C1}at port$port_plural${C2} ${a_audio_working[2]}"
fi
if [[ -n ${a_audio_working[0]} ]];then
audio_data="${C1}Card-$(( $i + 1 )) ${C2}${a_audio_working[0]}$alsa_driver$port_data"