View: 6299|Reply: 6

Orange pi zero 2 analog audio set as mono only.

[Copy link]

1

threads

6

posts

29

credits

Novice

Rank: 1

credits
29
Published in 2021-5-25 09:39:46 | Show all floors |Read mode
I set audio for my Orange pi zero 2 just like the way I have done on Oramge Pi Zero.   
1) add analog-codec at by sudo nano /boot/armbianEnv.txt for overlay= as follow.   overlay=analog-codec

2) sudo nano /etc/asound.conf, enter followings : here, card 1 = HDMI audio, card 0 = analog audio

pcm.!default {
type hw
card 0
device 0
}
ctl.!default {
type hw
card 0
}




3) on sudo nano /etc/rc.local

// Outcome Control
# enable line out on jack connector (IMPORTANT)
/usr/bin/amixer -c 0 cset numid=4 on
# Set line out volume to maximum (0-31)
/usr/bin/amixer -c 0 cset numid=3 31
# Setting the DAC volume (master PCM channel) (0-63)
/usr/bin/amixer -c 0 cset numid=1 63
# Enable DAC to be routed to output (analog pcm) (on/off)
/usr/bin/amixer -c 0 cset numid=10 on

// Microphone Input Control
# Microphone settings
#mic1 (internal) volume 0-7
/usr/bin/amixer -c 0 cset numid=7 7
#mic1 CAPTURE switch (on/off) - this will let you use the microphone
/usr/bin/amixer -c 0 cset numid=18 on
#mic1 (input) boost (0-7, 1 recommended)
/usr/bin/amixer -c 0 cset numid=8 1
#mic1 (internal) playback loop switch (direct route to output) (on/off) LEAVE IT OFF to avoid feedback loop between internal microphone and speakers !!!
/usr/bin/amixer -c 0 cset numid=13 off

#mic2 volume 0-7
/usr/bin/amixer -c 0 cset numid=5 7
#mic2 CAPTURE switch (on/off) - this will let you use the microphone
/usr/bin/amixer -c 0 cset numid=19 on
#mic2 boost (0-7, 1 recommended)
/usr/bin/amixer -c 0 cset numid=6 1
#mic2 playback loop switch (direct route to output) (on/off)
/usr/bin/amixer -c 0 cset numid=14 off


====================================================================
Above setting enabled my Orange Pi Zero for analog sound for stereo.    However, it didn't work on Orange Pi Zero 2.   It only displays as "analog mono".   





0

threads

74

posts

372

credits

Intermediate member

Rank: 3Rank: 3

credits
372
Published in 2023-2-21 12:35:19 | Show all floors
I would like to thank you for the efforts you have made in writing this article. I am hoping the same best work from you in the future as well. Thanks...        寄英國包裹

0

threads

74

posts

372

credits

Intermediate member

Rank: 3Rank: 3

credits
372
Published in 2023-3-6 16:41:46 | Show all floors
Excellent article. Very interesting to read. I really love to read such a nice article. Thanks! keep rocking.        https://www.piikanimoney.org/

0

threads

74

posts

372

credits

Intermediate member

Rank: 3Rank: 3

credits
372
Published in 2023-3-6 19:25:49 | Show all floors
It is a great website.. The Design looks very good.. Keep working like that!.         http://www.radiodh.com/

0

threads

74

posts

372

credits

Intermediate member

Rank: 3Rank: 3

credits
372
Published in 2023-6-11 02:24:40 | Show all floors
What is an outstanding post! “I’ll be back” (to read more of your content). Thanks for the nudge!        Boostaro Reviews

0

threads

74

posts

372

credits

Intermediate member

Rank: 3Rank: 3

credits
372
Published in 2023-6-14 20:37:39 | Show all floors
This particular papers fabulous, and My spouse and i enjoy each of the perform that you have placed into this. I’m sure that you will be making a really useful place. I has been additionally pleased. Good perform!        https://www.outlookindia.com/outlook-spotlight/liv-pure-reviews-fraudulent-exposed-2023-beware-livpure-weight-loss-complaints-fake-side-effects-news-289349
Published in byday 21:29 | Show all floors
It’s difficult to acquire knowledgeable men and women within this topic, however you seem like guess what happens you are preaching about! Thanks        Bioma Probiotics for weight loss
You need to log in before you can reply login | Register

Points Rule

Quick reply Top Return list