ed8438a7fc
* Updaet set-audio to automatically populate the ES audio path with a best guess (first control). * Enable pulseaudio bluetooth support. * Don't reset audio devices and paths if they've already been set once. * Configure CEMU to look for and use a bluetooth device if it's paired and connected (needs further optimization).
20 lines
431 B
Text
20 lines
431 B
Text
|
|
#!/bin/bash
|
|
# SPDX-License-Identifier: Apache-2.0
|
|
# Copyright (C) 2023-present Brooksytech (https://github.com/brooksytech)
|
|
|
|
. /etc/profile
|
|
|
|
if [ ! -d "/storage/.config/modprobe.d/" ]
|
|
then
|
|
mkdir -p /storage/.config/modprobe.d
|
|
fi
|
|
|
|
MYDEVICE=$(get_setting system.audiodevice)
|
|
if [ -z "${MYDEVICE}" ]
|
|
then
|
|
touch /storage/.config/modprobe.d/alsa-base.conf
|
|
set-audio set "ROCKCHIP-HDMI0 (1:0)"
|
|
set-audio esset "PCM"
|
|
reboot
|
|
fi
|