mirror of
https://github.com/archr-linux/Arch-R.git
synced 2026-03-31 14:41:55 -07:00
audio alsa primary card fixes
This commit is contained in:
@@ -4,7 +4,7 @@
|
||||
|
||||
cat <<EOF >/storage/.config/profile.d/002-audio_path
|
||||
ALSA_PRIMARY_CARD=1
|
||||
DEVICE_PLAYBACK_PATH_SPK="SPK"
|
||||
DEVICE_PLAYBACK_PATH_SPK="HP"
|
||||
DEVICE_PLAYBACK_PATH_HP="HP"
|
||||
DEVICE_PLAYBACK_PATH="Playback Mux"
|
||||
EOF
|
||||
|
||||
@@ -26,7 +26,7 @@ then
|
||||
then
|
||||
export DEVICE_PLAYBACK_PATH="Playback Path"
|
||||
fi
|
||||
amixer -c 0 cset name="${DEVICE_PLAYBACK_PATH}" ${DEVICE_PLAYBACK_PATH_SPK} 2>/dev/null
|
||||
amixer -c ${ALSA_PRIMARY_CARD:-0} cset name="${DEVICE_PLAYBACK_PATH}" ${DEVICE_PLAYBACK_PATH_SPK} 2>/dev/null
|
||||
fi
|
||||
|
||||
VOLUME=$(get_setting audio.volume)
|
||||
@@ -40,12 +40,8 @@ fi
|
||||
|
||||
### Set the primary card volume to 100%
|
||||
### to eliminate low audio on some devices.
|
||||
if [ -n "${ALSA_PRIMARY_CARD}" ]
|
||||
then
|
||||
amixer -c ${ALSA_PRIMARY_CARD} -q sset "Master" 100%
|
||||
else
|
||||
amixer -c 0 -q sset "Master" 100%
|
||||
fi
|
||||
amixer -c ${ALSA_PRIMARY_CARD:-0} -q sset "Master" 100%
|
||||
|
||||
### Now set the pipewire mixer volume
|
||||
/usr/bin/volume ${VOLUME}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user