Remove generic bluetooth entry

This commit is contained in:
Wansti 2022-11-15 02:42:38 +00:00
parent a3655568bd
commit 64618e988e

View file

@ -8,7 +8,6 @@ function list_audio_devices() {
echo "DEFAULT (SYSTEM PROVIDED)"
echo "DEFAULT HDMI"
echo "CUSTOM (UNMANAGED)"
echo "BLUETOOTH"
for SDEVICE in $(find /proc/asound/card*/pcm*/info)
do
TYPE=$(awk '/^stream:/ {print $2}' ${SDEVICE})
@ -53,13 +52,6 @@ function set_audio_device() {
elif [ "${SELECTION}" == "CUSTOM (UNMANAGED)" ]
then
exit 0
elif [ "${SELECTION}" == "BLUETOOTH" ]
then
if [ -e "/usr/config/asound.conf.bluealsa" ]
then
cp /usr/config/asound.conf.bluealsa /storage/.config/asound.conf
exit 0
fi
elif [[ "${SELECTION}" =~ ^Device.* ]]
then
MAC=$(echo "${SELECTION}" | awk '/^Device/ {print $2}')
@ -67,7 +59,6 @@ function set_audio_device() {
bluetoothctl disconnect ${MAC}
if bluetoothctl connect ${MAC}
then
set_setting system.audiodevice "BLUETOOTH"
cp /usr/config/asound.conf.bluealsa /storage/.config/asound.conf
fi
exit 0