UPGRADE YOUR BROWSER

We have detected your current browser version is not the latest one. Xilinx.com uses the latest web technologies to bring you the best online experience possible. Please upgrade to a Xilinx.com supported browser:Chrome, Firefox, Internet Explorer 11, Safari. Thank you!

cancel
Showing results for 
Search instead for 
Did you mean: 
Adventurer
Adventurer
1,071 Views
Registered: ‎09-05-2018

I have issue in Audio HDMI out in profile vcu_audio from 2018.3

Jump to solution

Hello all

I'm trying the vcu_audio pre-build binaries from TRD 2018.3

And when I wants to hear audio on my TV (connected to HDMI), I can't hear anything.

I have tested multiple application

 ./bin/vcu_gst_app ./config/1080p60/Display/Single_1080p60_AVC_HIGH.cfg

(see video but no audio)

even simple gstreamer command

gst-launch-1.0 audiotestsrc ! audioconvert ! audioresample !   audio/x-raw, rate=44100, channnels=2, format=S24_32LE ! alsasink device="hw:1,0"

aplay -l is reporting two card as expected and using "hw:1,0" should go to the FPGA card (audio formater which should be connected to hdim tx ) 

**** List of PLAYBACK Hardware Devices ****
card 0: monitor [DisplayPort monitor], device 0: (null) xilinx-dp-snd-codec-dai-0 []
Subdevices: 1/1
Subdevice #0: subdevice #0
card 0: monitor [DisplayPort monitor], device 1: (null) xilinx-dp-snd-codec-dai-1 []
Subdevices: 1/1
Subdevice #0: subdevice #0
card 1: Default [xilinx FPGA sound card], device 0: (null) i2s-hifi-0 []
Subdevices: 1/1
Subdevice #0: subdevice #0

Note that audio on DP (using interface hw:0,0 or hw:0,1 is working and audio is heard in monitor attached to the DP

Is something I'm missing ?

0 Kudos
1 Solution

Accepted Solutions
Xilinx Employee
Xilinx Employee
395 Views
Registered: ‎08-02-2007

Re: I have issue in Audio HDMI out in profile vcu_audio from 2018.3

Jump to solution

We have worked offline on this issue. Found out there is an issue when driver configures the ACR IP. Change Request has been filed to report this problem

10 Replies
Adventurer
Adventurer
1,018 Views
Registered: ‎09-05-2018

Re: I have issue in Audio HDMI out in profile vcu_audio from 2018.3

Jump to solution

I have better information to submit in the case

There is one monitor LG that is able to play the Audio sound fine

but other TV like Samsung/Phillips not.

Analyzing the sound "info frame" are giving these data

Channel count 0 

Rate : 44.1

Size: 20bit

but the format expected is  S24_32LE (24 bits in 32 bits, signed, little endian)

20181224_172346_2.jpg

 

 

0 Kudos
Xilinx Employee
Xilinx Employee
904 Views
Registered: ‎08-02-2007

Re: I have issue in Audio HDMI out in profile vcu_audio from 2018.3

Jump to solution

@ericzerbib

Some Samsung tv has multiple HDMI ports, one of them doesn't play audio for 4kp60. Can you try a different HDMI port, and see if it makes any difference?

Also the default modetest port is set to DP.

When you setting the input to 1080p60 format, please use command below to ensure HDMI Tx is set to 1080p60 :

modetest -M xlnx -s 30:1920x1080-60@XB24 &

If you can hear audio with 1080p, I think the problem is to do with Samsung's HDMI port.

0 Kudos
Adventurer
Adventurer
897 Views
Registered: ‎09-05-2018

Re: I have issue in Audio HDMI out in profile vcu_audio from 2018.3

Jump to solution

I think that if I have successfully hear audio on LG is because this monitor is less restrictive on the AV info frame than  other TV, the fact is that the analyzer is not retrieving full audio info is a bug in the audio block FPGA, 

Samsung an Phillips are not small vendor of TV and our final solution MUST be able to work with this TV also. Note that the experience was tested also under 1080p60 and 4k30 not on 4k60.

Trying another HDMI port is not acceptable as solution...

 

0 Kudos
Xilinx Employee
Xilinx Employee
782 Views
Registered: ‎08-02-2007

Re: I have issue in Audio HDMI out in profile vcu_audio from 2018.3

Jump to solution

Hi @ericzerbib

Sorry for the late response, I was on and off last week.

I have tested prebuild image with your command, audio isn't stable at all. It keeps toggling between the two images below.

I will have a closer look at this issue.

In the meantime, can you let me know your system setup please? Which audio source do you use?

IMG_Audio.jpgIMG_Audio2.jpg

0 Kudos
Adventurer
Adventurer
723 Views
Registered: ‎09-05-2018

Re: I have issue in Audio HDMI out in profile vcu_audio from 2018.3

Jump to solution

Thanks you for your response

Generally my source is a PC which plays to an encoder and then the stream is sent to the local network then displayed as decoded to the TV

0 Kudos
Adventurer
Adventurer
718 Views
Registered: ‎09-05-2018

Re: I have issue in Audio HDMI out in profile vcu_audio from 2018.3

Jump to solution
My Assumption is the the fact that N=6144 and CTS=199529 is wrong, the setup was full HD 1920x1080p60 and audio was 48 kHz (even if you set 44100 the sound is audible just at 48000)
Note in the spec
https://glenwing.github.io/docs/HDMI-1.4b.pdf page 124
we can see that TMDS clock 148.5 Mhz / 48kHz
N=6144 CTS=148500
Xilinx Employee
Xilinx Employee
642 Views
Registered: ‎08-02-2007

Re: I have issue in Audio HDMI out in profile vcu_audio from 2018.3

Jump to solution

@ericzerbib

I have generated the vcu_audio design, and notice the cts and n value are generated from HDMI_ACR_CTRL, which is derived from HDMI RX.  We have tested those values in HDMI example design for a few Vivado versions, they are fine.

Can you use "cat hdmi_info"command(under associated path) to get HDMI RX and HDMI TX information, so we can see if audio parameters are expected :

root@zcu106_vcu_trd:/sys/devices/platform/amba_pl@0/a0000000.v_hdmi_rx_ss# cat hdmi_info

root@zcu106_vcu_trd:/sys/devices/platform/amba_pl@0/a0020000.v_hdmi_tx_ss# cat hdmi_info

0 Kudos
Adventurer
Adventurer
601 Views
Registered: ‎09-05-2018

Re: I have issue in Audio HDMI out in profile vcu_audio from 2018.3

Jump to solution

root@KDS-DEC10-1:/sys/devices/platform/amba_pl@0/a0000000.v_hdmi_rx_ss# cat hdmi_info

Rx Info
--------
Mode: DVI
Status: No input stream detected

Link quality
------------
Link quality channel 0 : good (4)
Link quality channel 1 : good (4)
Link quality channel 2 : good (4)
root@KDS-DEC10-1:/sys/devices/platform/amba_pl@0/a0020000.v_hdmi_tx_ss# cat hdmi_info

Stream Info
-------------
Color Format: RGB
Color Depth: 8
Pixels Per Clock: 2
Mode: Progressive
Frame Rate: 30Hz
Resolution: 3840x2160@30Hz
Pixel Clock: 297000000

Stream Timing
----------------

HSYNC Timing: hav=3840, hfp=176, hsw=88(hsp=1), hbp=296, htot=4400
VSYNC Timing: vav=2160, vfp=08, vsw=10(vsp=1), vbp=072, vtot=2250


Tx Info
--------
TX Mode - HDMI
HDMI Video Mask is Disabled

Scrambled: 0
Sample rate: 1
Audio channels: 0

root@KDS-DEC10-1:/sys/devices/platform/amba_pl@0/a0020000.v_hdmi_tx_ss#

 

Note the Audio CTS/N from devmem for PL audio address

root@KDS-DEC10-1:~# ./dump_reg.sh 0xa0056000
0xa0056000 - 0xDEADBEEF = 3735928559
0xa0056004 - 0x00000003 = 3
0xa0056008 - 0x000616D2 = 399057
0xa005600c - 0x00001800 = 6144

 

Note 2: expected by spec N=5120 /CTS=247500

0 Kudos
Xilinx Employee
Xilinx Employee
581 Views
Registered: ‎08-02-2007

Re: I have issue in Audio HDMI out in profile vcu_audio from 2018.3

Jump to solution

@ericzerbib

Thanks for providing the HDMI info, there is something wrong with Audio settings.

1. Audio channel in TX log, is Audio channels: 0, which should be 2

2. CTS/N values. I checked in block diagram, the cts/n of HDMI TX is indeed derived from HDMI RX side, but you mentioned there is a register used to store those values. I need to discuss with relevant team, and try to double check how cts/n is provided to HDMI TX

In the meantime, can you use a HDMI Source(if your laptop has HDMI connector) to do some test, and see if you can get expected audio?

0 Kudos
Xilinx Employee
Xilinx Employee
396 Views
Registered: ‎08-02-2007

Re: I have issue in Audio HDMI out in profile vcu_audio from 2018.3

Jump to solution

We have worked offline on this issue. Found out there is an issue when driver configures the ACR IP. Change Request has been filed to report this problem