Quantcast
Viewing all articles
Browse latest Browse all 5359

Interfacing (DSI, CSI, I2C, etc.) • Force HDMI audio with custom EDID

Hi,

I'm using a custom EDID for sending analog video via HDMI port to a HDMI2VGA adapter. So far so good, video is working properly but no sound. It is expected since I had no EDID audio information, so I added CTA-861 audio extension block resulting on this EDID extension info (removed video block 0 for ease the reading):

Code:

02 03 14 61 23 09 07 07 83 01 00 00 67 03 0c 0020 00 80 2d 00 00 00 00 00 00 00 00 00 00 00 0000 00 00 00 00 00 00 00 00 00 00 00 00 00 00 0000 00 00 00 00 00 00 00 00 00 00 00 00 00 00 0000 00 00 00 00 00 00 00 00 00 00 00 00 00 00 0000 00 00 00 00 00 00 00 00 00 00 00 00 00 00 0000 00 00 00 00 00 00 00 00 00 00 00 00 00 00 0000 00 00 00 00 00 00 00 00 00 00 00 00 00 00 85Block 1, CTA-861 Extension Block:  Revision: 3  Basic audio support  Supports YCbCr 4:4:4  Native detailed modes: 1  Audio Data Block:    Linear PCM:      Max channels: 2      Supported sample rates (kHz): 48 44.1 32      Supported sample sizes (bits): 24 20 16  Speaker Allocation Data Block:    FL/FR - Front Left/Right  Vendor-Specific Data Block (HDMI), OUI 00-0C-03:    Source physical address: 2.0.0.0    Supports_AI    Maximum TMDS clock: 225 MHzChecksum: 0x85  Unused space in Extension Block: 107 bytes
The information looks OK. Actually it is reporting exactly the same audio info as the vanilla device edid, but still no sound.

speaker-test reports this error:

Code:

speaker-test 1.2.8Playback device is defaultStream parameters are 48000Hz, S16_LE, 1 channelsUsing 16 octaves of pink noisePlayback open error: -524,Unknown error 524
aplay -l reports both hdmi sound devices

Code:

**** List of PLAYBACK Hardware Devices ****card 0: vc4hdmi0 [vc4-hdmi-0], device 0: MAI PCM i2s-hifi-0 [MAI PCM i2s-hifi-0]  Subdevices: 1/1  Subdevice #0: subdevice #0card 1: vc4hdmi1 [vc4-hdmi-1], device 0: MAI PCM i2s-hifi-0 [MAI PCM i2s-hifi-0]  Subdevices: 1/1  Subdevice #0: subdevice #0
I'm worndering if because the video information is analog instead of digital, the DRM EDID kernel module is directly not supporting the audio and/or maybe not sending the proper HDMI I2C commands or whatever to enable the i2s HDMI DAC

BTW I already tried basic config.txt options like:

Code:

hdmi_force_hotplug=1hdmi_force_edid_audio=1hdmi_ignore_edid_audio=0hdmi_drive=2dtoverlay=vc4-kms-v3d,audio
Any Idea?

Statistics: Posted by rTomasa — Sat May 04, 2024 11:37 am



Viewing all articles
Browse latest Browse all 5359

Trending Articles