This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

Linux/DRA745: DRA745 : How to enable audio through HDMI

Part Number: DRA745

Tool/software: Linux

Hi,

With Jacinto6 DRA74x, 6AO.1.1 (processors.wiki.ti.com/.../6AO.1.1_Release_Notes)
Using

  • - Prebuilt Release Image : software-dl.ti.com/.../index_FDS.html
  • - RobustRVC : Robust_RVC-5.0_Phase-6 (RobustRVC-5.0/rvc_phase-6/emmc_files)
  • - SDK Vision : PROCESSOR_SDK_VISION_03_02_00_00

The HDMI display works fine but the audio through HDMI is not working.

act1000:/ # tinyplay /data/audio.wav     -D 1 -d 0
[  169.637453] omapdss_hdmi5 58040000.encoder: ASoC: can't open interface 58040000.encoder: -1


Regards,

Chokri

  • Chokri,

    Assuming that the HDMI sink is audio-capable, make sure that the EDID read by kernel correctly reports audio capability in the audio descriptor block.

    Check dmesg | grep -i -e "hdmi" and see if any errors are reported. You may also want to try with a different HDMI sink and confirm if the problem is reproducible.

    -Misa

  • Hi Misa,

    Here is the dmesg log with an issue with dss_hdmi.

    act1000:/ # dmesg | grep -i hdmi                                               
    [    0.255546] omap_hwmod: dss_hdmi: _wait_target_ready failed: -16
    [    0.255557] omap_hwmod: dss_hdmi: cannot be enabled for reset (3)
    [    1.929571] omapdss_dss 58000000.dss: bound 58040000.encoder (ops hdmi5_component_ops)
    [    2.836730] omap-hdmi-audio omap-hdmi-audio.0.auto: snd-soc-dummy-dai <-> 58040000.encoder mapping ok
    [    3.786846] #1: HDMI 58040000.encoder


    [  124.038299] omapdss_hdmi5 58040000.encoder: ASoC: can't open interface 58040000.encoder: -1

    Do you know please how to theck that the EDID is readed by kernel ?

    Thanks

    Chokri

  • Chokri,

    Are you using single or dual display?

    I'd focus more on the hwmod errors that you're observing at boot time. I suspect it may be preceded by other errors. Do you see the same behavior (hwmod error) without RVC patches in kernel?

    Regarding EDID parsing, please try the following steps:

    host# adb pull /sys/devices/platform/omapdrm.0/drm/card0/card0-HDMI-A-1-/edid my_edid

    host# hexdump -e '16/1 "0x%02x " "\n"' my_edid

    Then you can use an online EDID parser and check the audio block.

    BTW, if your goal is to have HDMI audio as primary audio device, you need to recompile Android with the following change in device.mk:

    PRIMARY_AUDIO := hdmi

  • Hi,

    The EDID file (/sys/devices/platform/omapdrm.0/drm/card0/card0-HDMI-A-1/edid ) exist but empty.

    on EPBU R OBUST RVC R ELEASE NOTE it includes that HDMI is not supported

    ________________

    For J6 EVM, J6Eco EVM, and J6Entry EVM, the supported display on this release is through LCD
    display panel. By default, HDMI is not supported. Especially on J6ENTRY EVM, since there is a
    conflict between VISION SDK and Android in using I2C5, the HDMI configuration in Android dts is
    disabled

    _________________

    I tested a build without RVC and audio through HDMI works fine and the EDID parser returns audio capable.

    Do you konw please how to enable HDMI on RVC release (ie switch between RVC or HDMI using gpio) ?

    Regards,

    Chokri

  • Chokri,

    I don't know the specifics about that board limitation. I see that I2C5 and VIN_[VH]SYNC signals are on the same pins, so they are mutually exclusive. But I'm not sure what's the exact limitation about losing I2C5, it seems hotplug detection will be affected but there may be something else.

  • Hi Chokri,

    If I understand correctly, you are using DRA745 EVM and instead of LCD panel you are using HDMI display and RVC output is shown on HDMI screen. Correct?


    Regards,
    Vishal

  • Hi Vishal,

    I'm using DRA745 EVM and we use both display LCD (main disp + RVC) and HDMI (Secondary disp).

    And my issue is the audio is not working on HDMI.

    act1000:/ # tinyplay /data/audio.wav     -D 1 -d 0
    [  169.637453] omapdss_hdmi5 58040000.encoder: ASoC: can't open interface 58040000.encoder: -1

    and as WA disable RVC feature.

  • Hi Chokri,

    This is not a supported/tested combination for robust RVC package.
    We have only tested single display.

    Regards,
    Vishal