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.

Sound on Olimex A20 Micro

Featured Replies

Hello All,

Trying to get sound working on my A20 micro.

After switching to the Mainline kernel, the sun4i_codec loads and everything seems to be there. But alsamixer, aplay, etc all say that there's no such device. Running as root does not help so this is not a permissions issue.

mute@micro:~$ uname -a
Linux micro 4.14.18-sunxi #24 SMP Fri Feb 9 16:24:32 CET 2018 armv7l GNU/Linux

mute@micro:~$ dmesg |grep sun4i-codec
[   10.491588] sun4i-codec 1c22c00.codec: Codec <-> 1c22c00.codec mapping ok
  
mute@micro:~$ aplay -l
**** List of PLAYBACK Hardware Devices ****
card 0: sun4icodec [sun4i-codec], device 0: CDC PCM Codec-0 []
  Subdevices: 1/1
  Subdevice #0: subdevice #0

mute@micro:~$ alsamixer
cannot open mixer: No such device

mute@micro:~$ lsmod |grep snd
snd_soc_core          118784  1 sun4i_codec
snd_pcm_dmaengine      16384  1 snd_soc_core
snd_pcm                65536  2 snd_pcm_dmaengine,snd_soc_core
snd_timer              24576  1 snd_pcm
snd                    45056  3 snd_timer,snd_soc_core,snd_pcm
soundcore              16384  1 snd

mute@micro:~$ speaker-test 

speaker-test 1.0.28

Playback device is default
Stream parameters are 48000Hz, S16_LE, 1 channels
Using 16 octaves of pink noise
ALSA lib pcm_hw.c:1667:(_snd_pcm_hw_open) Invalid value for card
Playback open error: -19,No such device

I would be most grateful for any suggestions.

 

-B

14 minutes ago, B. Howell said:

 


 
mute@micro:~$ aplay -l
**** List of PLAYBACK Hardware Devices ****
card 0: sun4icodec [sun4i-codec], device 0: CDC PCM Codec-0 []
  Subdevices: 1/1
  Subdevice #0: subdevice #0

 

 

aplay -l looks fine (Card 0 - Subdevice 0)
now you can check if you got a /etc/asound.conf like this:
 

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

ctl.!default {
    type hw
    card 0
}

 

  • Author

Yes! That was the last problem. asound.conf was still set to use hdmi output. Working nicely now.

 

Now, a little more hacking and I'll have my internet radio.

 

Big thanks from Berlin!

25 minutes ago, B. Howell said:

Big thanks from Berlin!

Gern geschehen aus Mudanya/Tuerkei :) Viel Spass mit dem Sound am A20 :)
(bin normal aus Frankfurt, wohne aber seit 1.5 Jahren hier in der Tuerkei)

  • Author

Es ist in Februar bistimmt ganz angenehm da am Bosporus. Bin selbst aus den USA aber seit 11 Jahre hier in Babylon.

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.