Jump to content

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


Lope

Recommended Posts

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

 

Link to comment
Share on other sites

Armbian & Khadas are rewarding contributors

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!!!

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
×
×
  • Create New...

Important Information

Terms of Use - Privacy Policy - Guidelines