2023-10-15 19:33:21 +00:00
|
|
|
#!/bin/sh
|
|
|
|
# SPDX-License-Identifier: Apache-2.0
|
|
|
|
# Copyright (C) 2021-present Fewtarius (https://github.com/fewtarius)
|
|
|
|
|
|
|
|
cat <<EOF >/storage/.config/profile.d/002-audio_path
|
|
|
|
DEVICE_PLAYBACK_PATH_SPK="SPK"
|
|
|
|
DEVICE_PLAYBACK_PATH_HP="HP"
|
|
|
|
DEVICE_PLAYBACK_PATH="Playback Mux"
|
|
|
|
DEVICE_PIPEWIRE_PROFILE="pro-audio"
|
|
|
|
EOF
|
|
|
|
|
|
|
|
amixer -c 0 -q sset 'FRDDR_A SINK 1 SEL' 'OUT 1'
|
|
|
|
amixer -c 0 -q sset 'FRDDR_A SRC 1 EN' 'on'
|
|
|
|
amixer -c 0 -q sset 'TDMOUT_B SRC SEL' 'IN 0'
|
|
|
|
amixer -c 0 -q sset 'TOHDMITX I2S SRC' 'I2S B'
|
|
|
|
amixer -c 0 -q sset 'TOHDMITX' 'on'
|
|
|
|
amixer -c 0 -q sset 'FRDDR_B SINK 1 SEL' 'OUT 2'
|
|
|
|
amixer -c 0 -q sset 'FRDDR_B SRC 1 EN' 'on'
|
|
|
|
amixer -c 0 -q sset 'TDMOUT_C SRC SEL' 'IN 1'
|
2023-10-21 11:44:46 +00:00
|
|
|
amixer -c 0 -q sset 'TOACODEC SRC' 'I2S B'
|
2023-10-15 19:33:21 +00:00
|
|
|
amixer -c 0 -q sset 'TOACODEC OUT EN' 'on'
|
|
|
|
amixer -c 0 -q sset 'TOACODEC Lane Select' '0'
|
|
|
|
amixer -c 0 -q sset 'ACODEC' '255'
|
|
|
|
amixer -c 0 -q sset 'FRDDR_C SINK 1 SEL' 'OUT 3'
|
|
|
|
amixer -c 0 -q sset 'FRDDR_C SRC 1 EN' 'on'
|