hdmi audio not working

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

hdmi audio not working

1,562 Views
angelo_d
Senior Contributor I

Dear all,

i am using Linux version 3.10.17 on a similar Sabre lite board.

Using devicetree, setup similarly to sabre (equal for hdmi audio).

After boot, i see hdmi audio ASoC correctly setup.

bash-3.2# cat /proc/asound/cards

0 [cs42888audio   ]: cs42888-audio - cs42888-audio

                      cs42888-audio

1 [imxhdmisoc     ]: imx-hdmi-soc - imx-hdmi-soc

                      imx-hdmi-soc

Now, if i try to play some wav, with

aplay -D hw:0,1  test.wav

no sound is played on the target device over HDMI cable.

There can be some kernel issue, but it is still possible i have some hw issue, so, is there any way i can check if the audio is generated ?

Thanks

Labels (2)
0 Kudos
6 Replies

915 Views
igorpadykov
NXP Employee
NXP Employee

Hi angelo

please look at attached Linux Manual sect.16.4.2 Audio

how one can test hdmi audio.

Best regards

igor

-----------------------------------------------------------------------------------------------------------------------

Note: If this post answers your question, please click the Correct Answer button. Thank you!

-----------------------------------------------------------------------------------------------------------------------

0 Kudos

915 Views
尚飞汤
Contributor IV

Dear igorpadykov :

how did the HDMI cmdline and devicetree not match can be affect the audio???

0 Kudos

915 Views
angelo_d
Senior Contributor I

Hi Igor,

thanks for the support.

I read it, but all is set up appropriately, and i have no audio. Big mistery.

I have no errors playing, but strange thing is that for imx-hdmi-soc  card, alsamixer shows no controls

This is a simple asound.conf i set up

pcm.hdmi_hw {

  type hw

  card 1 # <--- card number

  device 0 # <--- device number

}

pcm.hdmi_complete {

  type softvol

  slave.pcm hdmi_hw

  control.name hdmi_volume

  control.card 1

}

pcm.!default hdmi_complete

So i have also volume bar available, but still no audio

0 Kudos

915 Views
igorpadykov
NXP Employee
NXP Employee

Hi angelo

could you try with FSL demo images running on freescale reference board

L3.10.17_1.0.2_iMX6QDLS_BUNDLE  : i.MX 6Quad, i.MX 6Dual, i.MX 6DualLite, i.MX 6Solo Linux Binary Demo Files

Best regards

igor

0 Kudos

915 Views
angelo_d
Senior Contributor I

Thanks for the support.

Happy to have solved, leave what i found for the next.

1) hdmi audio on imx6 boundary-devices Linux 3.10.17 works out of the box, just selecting it in sound soc menuconfig.

* BUT *

using devicetree, video=mxcfbX kernel params must match with consistent mxcfb entries into the devicetree.

Otherwise, a wrong hdmi resolution can be auto-probed, and audio is inhibited.

So, hdmi audio wors only if a suitable resolution is set

In my case it is:

mxc_sdc_fb fb.30: 1920x1080 h_sync,r,l: 44,88,148  v_sync,l,u: 5,4,36 pixclock=148500000 Hz

Best regards

angelo

0 Kudos

915 Views
尚飞汤
Contributor IV

嗨Angelo,can you tell me why the HDMI cmdline can affect the audio???

0 Kudos