PINE64
PineA64+: Audio in 5.0 Kernel - Printable Version

+- PINE64 (https://forum.pine64.org)
+-- Forum: PINE A64(+) (https://forum.pine64.org/forumdisplay.php?fid=4)
+--- Forum: Linux on Pine A64(+) (https://forum.pine64.org/forumdisplay.php?fid=6)
+--- Thread: PineA64+: Audio in 5.0 Kernel (/showthread.php?tid=7664)



PineA64+: Audio in 5.0 Kernel - puzzles - 07-05-2019

I am running Debian Buster on my A64+ (not LTS) with a 5.0.2 kernel which should, in theory, support audio on this board. However, no mixers are present. Has anyone else experimented with recent kernels with Pine64 mainlined? What am I missing?

Additional information:
Kernel was built from source by tweaking the 5.0-trunk config as such:
Code:
+CONFIG_SND_SUN4I_CODEC=m
+CONFIG_SND_SUN8I_CODEC=m
+CONFIG_SND_SUN8I_CODEC_ANALOG=m
+CONFIG_SND_SUN50I_CODEC_ANALOG=m
+CONFIG_SND_SUN4I_I2S=m
+CONFIG_SND_SUN4I_SPDIF=m
+CONFIG_SND_SUN8I_ADDA_PR_REGMAP=m
+CONFIG_SUN50I_ERRATUM_UNKNOWN1=y

DTB file should enable the audio interface
sun*i* modules are loaded


RE: PineA64+: Audio in 5.0 Kernel - roel - 08-27-2019

I build manjaro for the pine64+ with kernel 5.2, audio through hdmi doesn't work. Analogue works fine.
With libreelec it's the same, no audio through hdmi for the pine64+ (same on lakka, but in fact it's the same build as libreelec).
I tried the 4.20 kernel on manjaro and there is the sound OK.
According Jernej on the LE forums it's a known problem and they are working on a solution.


RE: PineA64+: Audio in 5.0 Kernel - puzzles - 08-28-2019

(08-27-2019, 08:04 AM)roel Wrote: I build manjaro for the pine64+ with kernel 5.2, audio through hdmi doesn't work.  Analogue works fine.
With libreelec it's the same, no audio through hdmi for the pine64+ (same on lakka, but in fact it's the same build as libreelec).
I tried the 4.20 kernel on manjaro and there is the sound OK.
According Jernej on the LE forums it's a known problem and they are working on a solution.

Can you share your kernel config for 5.2?


RE: PineA64+: Audio in 5.0 Kernel - roel - 09-04-2019

@puzzles,

I'm experimenting with some patches. If I have succes, I will report back. I'm a little busy at the moment so it can take some time.


RE: PineA64+: Audio in 5.0 Kernel - roel - 10-23-2019

I got hdmi working, altough the sound is crackled.  I have to find out why.

The problem is in the sun50i-a64-pine64.dts the lines to enable i2s2 and sound_hdmi or missing.  If you add those lines, you get the allwinner_hdmi sound card.  But as mentioned before the sound is not OK, it goes constantly on and off.  If somebody has a suggestion what could be the problem...  Maybe this is the reason they dissabeld hdmi sound in the dtb.


RE: PineA64+: Audio in 5.0 Kernel - roel - 10-27-2019

HDMI sound works in the 5.3.7 kernel with a modified sun50i-a64.dtsi.

You have to patch the kernel with the patch found in the LibreElec github: https://github.com/LibreELEC/LibreELEC.tv/blob/master/projects/Allwinner/devices/A64/patches/linux/01_a64_hdmi_audio.patch


RE: PineA64+: Audio in 5.0 Kernel - roel - 11-13-2019

(10-23-2019, 03:34 AM)roel Wrote: I got hdmi working, altough the sound is crackled.  I have to find out why.

The problem is in the sun50i-a64-pine64.dts the lines to enable i2s2 and sound_hdmi or missing.  If you add those lines, you get the allwinner_hdmi sound card.  But as mentioned before the sound is not OK, it goes constantly on and off.  If somebody has a suggestion what could be the problem...  Maybe this is the reason they dissabeld hdmi sound in the dtb.

I found the problem of the crackled hdmi-sound.  Seems to be the RTL8723BS driver when you enable it to get the wifi add-on board working.  When you want hdmi-sound and wifi working together, you may not build the other RTL8723 stuff in the kernel or as module.  When you compile the kernel with only the RTL8723BS as wifi driver, hdmi_sound and wifi are working nicely together.