Allwinner H6 hdmi-audio and hotplug broken in le12

  • Hello,

    after upgrading from le11 hdmi-audio and -hotplug are not working any more.

    I got this on the tv-box eachlink h6mini which is very similar to the supported tanix tx6.

    First I stayed on le11, but last week I isolated the problem to the patch:

    0049-drm-sun4i-dw-hdmi-Switch-to-bridge-functions.patch

    I think the problem is the late initialization of the ddc-en gpio-pins due to the use of the generic drm bridge connector in sun8i_dw_hdmi_bind(). But I'm too stupid to call drm_bridge_connector_init() - that does the ddc-en-thing - in time, so I removed that patch completely and got audio and hotplug back.

    Maybe someone with more knowleage on that subject can fix that patch, please? I'll do the testing.

    TIA

  • Hey,

    I have Tanix TX6 where ddc-en is always enabled early enough. That being said, I recently fixed aforementioned patch in master branch since it was out-of-sync with latest upstream code. Can you try first nightly Tanix TX6 image to see if it works for you?

  • Hello,

    thank you for looking into this and your answer. Unfortunately the application of 0041-drm-sun4i-dw-hdmi-Switch-to-bridge-functions.patch also leads to no audio over hdmi on my h6mini. Than I tried LibreELEC-H6.aarch64-12.2-nightly-20251216-877c02d-tanix-tx6.img.gz because I thought that I made something wrong with my source, but got also no audio.

    I've also have a problem with the media-cedrus-Implement-AFBC-YUV420-formats-for-H265.patch. My eachlink h6 mini does not support 8 Bit media in h265 only 10 Bit media like it is written on https://linux-sunxi.org/Cedrus#Supported_codec_matrix. So I had to remove that mode from cedrus_video.c

    Maybe eachlink h6 mini and tanix TX6 differ more than I thought.

  • I meant LE13 nightly.

    I've also have a problem with the media-cedrus-Implement-AFBC-YUV420-formats-for-H265.patch. My eachlink h6 mini does not support 8 Bit media in h265 only 10 Bit media like it is written on https://linux-sunxi.org/Cedrus#Supported_codec_matrix. So I had to remove that mode from cedrus_video.c

    This doesn't make sense. If 10-bit is supported then also 8-bit is supported. It actually seems that you experience other way around. That patch introduces AFBC format support for H265, which is actually the only way to support 10-bit output currently (other 10-bit formats are not implemented).

    In any case, if you remove that patch, you'll get only 8-bit format for 10-bit video. I've never heard that specific H6 device would have issues decoding with H265. Maybe it is some lower performance version of H6.