mirror of
https://github.com/smxi/inxi.git
synced 2024-11-17 00:31:19 +00:00
trying this first
This commit is contained in:
parent
f994e2ebb7
commit
33736cc4f1
6
inxi
6
inxi
|
@ -1374,7 +1374,7 @@ get_audio_data()
|
||||||
}
|
}
|
||||||
}' $DIR_ASOUND_DEVICE ) )
|
}' $DIR_ASOUND_DEVICE ) )
|
||||||
fi
|
fi
|
||||||
IFS="$ORIGINAL_IFS"
|
|
||||||
|
|
||||||
|
|
||||||
# alsa usb
|
# alsa usb
|
||||||
|
@ -1394,7 +1394,7 @@ get_audio_data()
|
||||||
for( i=7; i<NF; i++) {
|
for( i=7; i<NF; i++) {
|
||||||
printf($i " ")
|
printf($i " ")
|
||||||
}
|
}
|
||||||
printf "\n"
|
#printf "\n"
|
||||||
}' <<< "$usb_data" )
|
}' <<< "$usb_data" )
|
||||||
# usb_data=$( lsusb -v 2>/dev/null |\
|
# usb_data=$( lsusb -v 2>/dev/null |\
|
||||||
# grep $( cat $usb_proc_file/usbid ) |\
|
# grep $( cat $usb_proc_file/usbid ) |\
|
||||||
|
@ -1402,7 +1402,7 @@ get_audio_data()
|
||||||
A_AUDIO_DATA=( "${A_AUDIO_DATA[@]}" "$usb_data,snd-usb-audio" )
|
A_AUDIO_DATA=( "${A_AUDIO_DATA[@]}" "$usb_data,snd-usb-audio" )
|
||||||
fi
|
fi
|
||||||
done
|
done
|
||||||
|
IFS="$ORIGINAL_IFS"
|
||||||
# handle cases where card detection fails, like in PS3, where lspci gives no output, or headless boxes..
|
# handle cases where card detection fails, like in PS3, where lspci gives no output, or headless boxes..
|
||||||
if [[ ${#A_AUDIO_DATA[@]} -eq 0 ]];then
|
if [[ ${#A_AUDIO_DATA[@]} -eq 0 ]];then
|
||||||
A_AUDIO_DATA[0]='Failed to Detect Sound Card!'
|
A_AUDIO_DATA[0]='Failed to Detect Sound Card!'
|
||||||
|
|
Loading…
Reference in a new issue