mirror of
https://github.com/smxi/inxi.git
synced 2024-11-17 00:31:19 +00:00
tweaks
This commit is contained in:
parent
892572ec7f
commit
a295ba44ba
8
inxi
8
inxi
|
@ -1040,7 +1040,9 @@ get_audio_data()
|
||||||
cards[audioCard]++
|
cards[audioCard]++
|
||||||
while (getline && !/^$/) {
|
while (getline && !/^$/) {
|
||||||
if (/driver in use/) {
|
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/) {
|
if (/I\/O/) {
|
||||||
portsTemp = gensub(/\tI\/O ports at (.*) \[.*\]/,"\\1","g",$0)
|
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
|
if [[ $( wc -w <<< ${a_audio_working[2]} ) -gt 1 ]];then
|
||||||
port_plural='s'
|
port_plural='s'
|
||||||
fi
|
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
|
fi
|
||||||
audio_data="${C1}$card_one${C2}${a_audio_working[0]}$alsa_driver$port_data"
|
audio_data="${C1}$card_one${C2}${a_audio_working[0]}$alsa_driver$port_data"
|
||||||
audio_data=$( create_print_line "Audio:" "$audio_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
|
if [[ $( wc -w <<< ${a_audio_working[2]} ) -gt 1 ]];then
|
||||||
port_plural='s'
|
port_plural='s'
|
||||||
fi
|
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
|
fi
|
||||||
if [[ -n ${a_audio_working[0]} ]];then
|
if [[ -n ${a_audio_working[0]} ]];then
|
||||||
audio_data="${C1}Card-$(( $i + 1 )) ${C2}${a_audio_working[0]}$alsa_driver$port_data"
|
audio_data="${C1}Card-$(( $i + 1 )) ${C2}${a_audio_working[0]}$alsa_driver$port_data"
|
||||||
|
|
Loading…
Reference in a new issue