Skip to content

Commit

Permalink
add audio naming udev rule for the Turing RK1
Browse files Browse the repository at this point in the history
  • Loading branch information
Joshua-Riek committed Oct 21, 2023
1 parent 45c9875 commit 45e14d8
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion scripts/config-image.sh
Original file line number Diff line number Diff line change
Expand Up @@ -184,10 +184,14 @@ for type in $target; do
echo 'SUBSYSTEM=="sound", ENV{ID_PATH}=="platform-dp0-sound", ENV{SOUND_DESCRIPTION}="DP0 Audio"'
echo 'SUBSYSTEM=="sound", ENV{ID_PATH}=="platform-es8388-sound", ENV{SOUND_DESCRIPTION}="ES8388 Audio"'
} > ${chroot_dir}/etc/udev/rules.d/90-naming-audios.rules
elif [ "${BOARD}" == turing-rk1 ]; then
{
echo 'SUBSYSTEM=="sound", ENV{ID_PATH}=="platform-hdmi0-sound", ENV{SOUND_DESCRIPTION}="HDMI0 Audio"'
} > ${chroot_dir}/etc/udev/rules.d/90-naming-audios.rules
fi

if [[ ${type} == "desktop" ]]; then
if [ "${BOARD}" == orangepi-5 ] || [ "${BOARD}" == orangepi-5b ] || [ "${BOARD}" == nanopi-r6c ] || [ "${BOARD}" == nanopi-r6s ]; then
if [ "${BOARD}" == orangepi-5 ] || [ "${BOARD}" == orangepi-5b ] || [ "${BOARD}" == nanopi-r6c ] || [ "${BOARD}" == nanopi-r6s ] || [ "${BOARD}" == turing-rk1 ]; then
echo "set-default-sink alsa_output.platform-hdmi0-sound.stereo-fallback" >> ${chroot_dir}/etc/pulse/default.pa
fi
fi
Expand Down

0 comments on commit 45e14d8

Please sign in to comment.