distribution/packages/hardware/quirks/devices/Orange Pi 5/002-audio
2023-04-01 23:01:06 +00: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