Olimex Support Forum

OLinuXino Android / Linux boards and System On Modules => A20 => Topic started by: sosinskim on June 25, 2020, 03:09:21 PM

Title: Analog audio output for A20 armbian
Post by: sosinskim on June 25, 2020, 03:09:21 PM
I am working with A20 LIME2 T2 rev.K with latest Debian image (A20-OLinuXino-buster-base-20200417-113854).

I want to use the analog audio from GPIO-1, according to the document: https://linux-sunxi.org/Audio_Codec

But it doesn't work, the audio is always output to HDMI when I tried aplay -l, it only shows the HDMI device:

I also tried using arduino based speaker: https://www.adafruit.com/products/3334

That didn't work, because it outputs something so loud

It should have sun4i-codec audio device for analog playback. How can I turn it on?

With this error:

I had a no sound problem for a long time, but I tried several solutions, some of them solved

Thanks a lot!

Best regards,
Sosin
Title: Re: Analog audio output for A20 armbian
Post by: LubOlimex on June 26, 2020, 08:20:57 AM
You might want to try apt update and apt upgrade to update to latest image. If it still doesn't work try the latest release from the beginning of this month named "A20-OLinuXino-buster-base-20200601-141239.img.7z". You can find it here: http://images.olimex.com/release/a20/

If the problem remains, copy paste the results you get from aplay -l here.

Title: Re: Analog audio output for A20 armbian
Post by: miroR on August 20, 2020, 07:23:54 PM
Quote from: LubOlimex on June 26, 2020, 08:20:57 AMIf the problem remains, copy paste the results you get from aplay -l here.
I'm running latest Buster, the image, freshly dd'd, is:
A20-OLinuXino-buster-base-20200731-135406.img

$ aplay -l
**** List of PLAYBACK Hardware Devices ****
card 0: sun4ihdmi [sun4i-hdmi], device 0: SUN4I-HDMI PCM 1c16000.hdmi-0 [SUN4I-HDMI PCM 1c16000.hdmi-0]
  Subdevices: 1/1
  Subdevice #0: subdevice #0
card 1: sun4icodec [sun4i-codec], device 0: CDC PCM Codec-0 [CDC PCM Codec-0]
  Subdevices: 1/1
  Subdevice #0: subdevice #0

But I don't have the hardware for audio yet.

I'm only looking forward to using audio, in the future, in my LIME2-server that I just initially deployed. Posting this for info to other users.