Jump to content

[SOLVED] Orange Pi Zero analog audio not working (using expansion board)


Recommended Posts

Posted

I just installed the latest Ubuntu Bionic Image with 4.x kernel, fully updated and upgraded.

On Orange Pi Zero 1.4 512MB + IO expansion kit board

Armbian 5.75 Ubuntu 18.04.2 LTS

Linux orangepizero 4.19.20-sunxi #5.75 SMP Sat Feb 9 19:02:47 CET 2019 armv7l armv7l armv7l GNU/Linux

 

`cat /proc/asound/cards`

"No sound cards"

 

In armbian-config, I enabled analog-codec, `update-initramfs, rebooted, but there's still no sound card.

mocp complains there is no driver.

 

speaker-test (starts like this)

Playback device is default
Stream parameters are 48000Hz, S16_LE, 1 channels
Using 16 octaves of pink noise
ALSA lib confmisc.c:767:(parse_card) cannot find card '0'

 

Anyone know what the issue is?

 

$ cat /boot/armbianEnv.txt
verbosity=1
logo=disabled
console=serial
disp_mode=1920x1080p60
overlay_prefix=sun8i-h3
overlays=analog-codec usbhost2 usbhost3 w1-gpio
rootdev=UUID=4cf6b202-4b00-45d6-b06a-8e235506621e
rootfstype=ext4
usbstoragequirks=0x2537:0x1066:u,0x2537:0x1068:u

 

$ cat /etc/asound.conf
pcm.!default{
    type hw
    card 0
}

ctl.!default{
    type hw
    card 0
}

 

After the above and a reboot,

I didn't have any codec modules loaded
So I did this

$ modprobe sun8i-codec-analog sun4i-codec
$ aplay -l
aplay: device_list:270: no soundcards found...
$ cat /proc/asound/cards
--- no soundcards ---
$ ls -lah /dev/snd
total 0
drwxr-xr-x  2 root root       60 Mar 20 06:04 .
drwxr-xr-x 13 root root      14K Mar 20 06:04 ..
crw-rw----  1 root audio 116, 33 Mar 20 06:05 timer

 

Posted

also after reboot no soundcard with aplay -l  ?

did you create (when aplay shows the analog audio card) a /etc/asounf.conf  ?

Posted

Hi @guidol Thank you
I just did some more searching and found your very useful forum posts about audio issues you had with orange pi zero
I did try making /etc/asound.conf as per examples on the orange pi forums, which didn't help.

I'm going to see if I've got all the modules loaded.

I've edited my first post with more commands and outputs.

 

I added

sun4i_codec
sun8i_codec_analog 

to /etc/modules

 

YES, progress!!!
 

$ aplay -l
**** List of PLAYBACK Hardware Devices ****
card 0: Codec [H3 Audio Codec], device 0: CDC PCM Codec-0 []
  Subdevices: 1/1
  Subdevice #0: subdevice #0

YES!!! IT WORKS. IT WORKS!!!

It's ALIVE!!!!! (demented laughter)
Muahahahah

 

giphy.gif&f=1

 

Wow! I'm impressed with the sound quality!!!

Posted
On 3/20/2019 at 12:47 AM, Lope said:

overlays=analog-codec

Hello, is it possible to listen to audio on the av socket thanks to this? Or did you have to connect anything with the gpio pins? Thanks. 

Guest
This topic is now closed to further replies.
×
×
  • Create New...

Important Information

Terms of Use - Privacy Policy - Guidelines