Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Orange Pi 3B: Vendor: Enable audio via headphone jack #7330

Merged
merged 1 commit into from
Oct 4, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 11 additions & 0 deletions config/boards/orangepi3b.csc
Original file line number Diff line number Diff line change
Expand Up @@ -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
}
4 changes: 4 additions & 0 deletions packages/bsp/common/usr/lib/armbian/armbian-audio-config
Original file line number Diff line number Diff line change
Expand Up @@ -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