Skip to content

Commit

Permalink
Fix Audio on ODROID-C4 (#136)
Browse files Browse the repository at this point in the history
With the new axg-sound-card sound card configuration ODROID-C4 gets a
valid sound card now. However, startup doesn't complete since the sound
card is not properly setup due to missing soundconfig. This leads to
100% CPU usage by the Audio plug-in on ODROID-C4.

This adds soundconfig for ODROID-C4 to fix the problem.
  • Loading branch information
agners authored Apr 25, 2023
1 parent c9c820d commit 2b323b2
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions rootfs/usr/bin/soundconfig
Original file line number Diff line number Diff line change
Expand Up @@ -129,6 +129,14 @@ case ${device_id} in
# Yellow - set Analogue Gain to -6dB for line-out circuit
mixer $card 'Analogue' 0
;;
ODROIDC4)
# Amlogic G12 HDMI to PCM0
mixer $card 'FRDDR_A SINK 1 SEL' 'OUT 1'
mixer $card 'FRDDR_A SRC 1 EN' on
mixer $card 'TDMOUT_B SRC SEL' 'IN 0'
mixer $card 'TOHDMITX I2S SRC' 'I2S B'
mixer $card 'TOHDMITX' on
;;
G12BODROIDN2|ODROIDN2)
# Amlogic G12 HDMI to PCM0
mixer $card 'FRDDR_A SINK 1 SEL' 'OUT 1'
Expand Down

0 comments on commit 2b323b2

Please sign in to comment.