Hello my friends,
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:
Quote**** 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
It should have sun4i-codec audio device for analog playback. How can I turn it on?
Thanks a lot!
Best regards,
Zeal
Do I need to rebuild the A20 Image in order to open the analog audio?
https://docs.armbian.com/Developer-Guide_Build-Preparation/
I don't think analog audio is enabled at the moment for A20-OLinuXino-LIME2 since we don't want to enable stuff that is not available on the board out-of-the-box. The next stable release of the image would have analog audio enabled for A20-OLinuXino-LIME2 specifically since we are planning to release an audio and GPIO shield for the board. It would turn on as soon as the HDMI is disconnected. Until then if you are in a hurry you should enable it yourself.
The A20-OLinuXino-buster-base-20200417-113854 image gets rebuild using the build script here:
https://github.com/OLIMEX/olimage
For more information about Olimage refer to this blog post:
https://olimex.wordpress.com/2020/04/21/olimage-mainline-linux-images-building-script-for-all-of-our-olinuxino-and-som-boards/
Thank you very much my friend!
I checked out the git repository and run build.sh but with no luck:
(https://i.ibb.co/wz6wQcL/olimex-image.png)
QuoteException: Command failed: qemu-debootstrap --arch=arm64 --components=main,contrib,non-free buster /olimage/output/a64-olinuxino/filesystem/buster-minimal http://httpredir.debian.org/debian
E: Command failed: qemu-debootstrap --arch=arm64 --components=main,contrib,non-free buster /olimage/output/a64-olinuxino/filesystem/buster-minimal http://httpredir.debian.org/debian
Build Environment:
NAME="Ubuntu"
VERSION="16.04.3 LTS (Xenial Xerus)"
ID=ubuntu
ID_LIKE=debian
PRETTY_NAME="Ubuntu 16.04.3 LTS"
VERSION_ID="16.04"
HOME_URL="http://www.ubuntu.com/"
SUPPORT_URL="http://help.ubuntu.com/"
BUG_REPORT_URL="http://bugs.launchpad.net/ubuntu/"
VERSION_CODENAME=xenial
UBUNTU_CODENAME=xenial
Question1:
Do I need to build exactly with Ubuntu 20 to build the image?
Question2:
Which file should I modify to open the analog-audio?
Thank you very much!
You need to run one of the lines from build.sh
https://github.com/OLIMEX/olimage/blob/master/build.sh
The developers said that any Linux version should work, but we use 18.04 ourselves. If you still have a problem building open an issue at the GitHub, this way the team gets notified.
Thank you so much for your help!