distribution/packages/sysutils/autostart/sources/quirks/Orange Pi 5/002-audio
fewtarius ed8438a7fc
* Update set-audio to configure alsa for bluetooth.
* 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).
2023-01-26 17:51:43 -05:00

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