B. Howell Posted February 14, 2018 Posted February 14, 2018 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
guidol Posted February 14, 2018 Posted February 14, 2018 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 }
B. Howell Posted February 14, 2018 Author Posted February 14, 2018 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!
guidol Posted February 14, 2018 Posted February 14, 2018 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)
B. Howell Posted February 14, 2018 Author Posted February 14, 2018 Es ist in Februar bistimmt ganz angenehm da am Bosporus. Bin selbst aus den USA aber seit 11 Jahre hier in Babylon. 1
Recommended Posts