When searching the forum on this topic I find a number of hits saying the mainline kernel does not have support for the SOC codec, but these topics are kind of old and I find it hard to find the current status.
In the past I have been able to use the onboard audio codec. However, I have been forced to upgrade and I now find that with the kernel I get from Armbian, I do not see the audio (ALSA) device nodes for the codec, only for HDMI. When looking at the kernel configuration, it should be in (SUN8I_CODEC and SUN8I_CODEC_ANALOG are both 'y'), but alas. Does anyone know if and how I can enable the audio codec so I can have analog audio output?
I built Armbian myself, using:
This (last) commit:
commit 5f2e23e9081104653093633f34ce716a46ac46f7
Author: Piotr Szczepanik <piter75@gmail.com>
Date: Wed Sep 8 09:54:06 2021 +0200
Disabled hs400 on Helios64 (hopefully only temporarily) (#3126)
This command line:
./compile.sh BOARD=orangepizeroplus2-h3 RELEASE=buster KERNEL_ONLY=no KERNEL_CONFIGURE=no BUILD_MINIMAL=no BRANCH=current
This resulting /etc/armbian-release:
# PLEASE DO NOT EDIT THIS FILE
BOARD=orangepizeroplus2-h3
BOARD_NAME="Orange Pi Zero Plus 2"
BOARDFAMILY=sun8i
BUILD_REPOSITORY_URL=https://github.com/armbian/build
BUILD_REPOSITORY_COMMIT=5f2e23e90
DISTRIBUTION_CODENAME=buster
DISTRIBUTION_STATUS=supported
VERSION=21.11.0-trunk
LINUXFAMILY=sunxi
ARCH=arm
IMAGE_TYPE=user-built
BOARD_TYPE=conf
INITRD_ARCH=arm
KERNEL_IMAGE_TYPE=Image
DESKTOP=xfce
BRANCH=current