mirror of https://github.com/armbian/build.git
Orange Pi 3B: Vendor: Enable audio via headphone jack
This commit is contained in:
parent
9895cbe2ab
commit
9063695a9e
|
|
@ -61,3 +61,14 @@ function post_family_tweaks__orangepi3b_enable_services() {
|
|||
chroot_sdcard systemctl enable orangepi3b-sprd-bluetooth.service
|
||||
return 0
|
||||
}
|
||||
|
||||
function post_family_tweaks__orangepi3b_naming_audios() {
|
||||
display_alert "$BOARD" "Renaming orangepi3b audios" "info"
|
||||
|
||||
mkdir -p $SDCARD/etc/udev/rules.d/
|
||||
echo 'SUBSYSTEM=="sound", ENV{ID_PATH}=="platform-hdmi-sound", ENV{SOUND_DESCRIPTION}="HDMI Audio"' > $SDCARD/etc/udev/rules.d/90-naming-audios.rules
|
||||
echo 'SUBSYSTEM=="sound", ENV{ID_PATH}=="platform-rk809-sound", ENV{SOUND_DESCRIPTION}="RK809 Audio"' >> $SDCARD/etc/udev/rules.d/90-naming-audios.rules # vendor dts
|
||||
echo 'SUBSYSTEM=="sound", ENV{ID_PATH}=="platform-sound", ENV{SOUND_DESCRIPTION}="RK809 Audio"' >> $SDCARD/etc/udev/rules.d/90-naming-audios.rules # mainline dts
|
||||
|
||||
return 0
|
||||
}
|
||||
|
|
|
|||
|
|
@ -156,5 +156,9 @@ else
|
|||
mixer_cmds 'OUT MIXR DAC R1' on
|
||||
mixer_cmds 'Stereo DAC MIXL DAC L1' on
|
||||
mixer_cmds 'Stereo DAC MIXR DAC R1' on
|
||||
|
||||
# Orange Pi 3B
|
||||
mixer_cmds 'Playback Path' 'HP'
|
||||
mixer_cmds 'Capture MIC Path' 'Main Mic'
|
||||
) | amixer -c "$card" --stdin > /dev/null 2>&1; done
|
||||
fi
|
||||
|
|
|
|||
Loading…
Reference in New Issue