Skip to content
View in the app

A better way to browse. Learn more.

Armbian Community Forums

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

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

Featured Replies

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

 

  • Author

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

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.

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.