Jump to content

Sound on Olimex A20 Micro


B. Howell

Recommended Posts

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

Link to comment
Share on other sites

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
}

 

Link to comment
Share on other sites

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

Important Information

Terms of Use - Privacy Policy - Guidelines