AnsweredAssumed Answered

[HDMI-imx6q sabrelite] Requesting information w.r.to HDMI audio (imx-hdmi-soc) not working

Question asked by Shrikant Bobade on Jul 17, 2013
Latest reply on Aug 9, 2013 by Robert Winkler

Hi All,


I am using android  from this branch boundary-imx-android-r13.4-ga @ https://github.com/boundarydevices/linux-imx6/tree/boundary-imx-android-r13.4-ga
@ git://github.com/boundarydevices/imx-android-r13.4-ga.git
                  
While using faytech 10" HDMI display, I am getting android ICS running/displaying well on HDMI with resolution 1280x1024@60, while the sound card:1 imx-hdmi-soc won't respond audio.

Following are the debug parameters..

 

kernel command line has HDMI resolution:
video=mxcfb0:dev=hdmi,1280x1024M@60,if=RGB24

 

root@mx6q:~# aplay -l
**** List of PLAYBACK Hardware Devices ****
card 0: sgtl5000audio [sgtl5000-audio], device 0: HiFi sgtl5000-0 []
   Subdevices: 1/1
  Subdevice #0: subdevice #0
card 1: imxhdmisoc [imx-hdmi-soc], device 0: IMX HDMI TX mxc-hdmi-soc-0 []
  Subdevices: 1/1
  Subdevice #0: subdevice #0

 


root@mx6q:~# zcat /proc/config.gz | grep HDMI
CONFIG_IMX_HAVE_PLATFORM_MXC_HDMI=y
CONFIG_MFD_MXC_HDMI=y
CONFIG_FB_MXC_HDMI=y
CONFIG_SND_SOC_IMX_HDMI=y
CONFIG_SND_SOC_MXC_HDMI=y
# MXC HDMI CEC (Consumer Electronics Control) support
# CONFIG_MXC_HDMI_CEC is not set

 

root@mx6q:~# cat /sys/class/graphics/fb0/mode
S:1280x1024p-60

 

root@mx6q:~# cat /sys/class/graphics/fb0/modes
S:1920x1080p-60
S:720x480p-60
S:1280x720p-60
U:1680x1680p-60
U:1440x1440p-60
S:1280x1024p-60
U:800x450p-60
V:1024x768p-60
V:640x480p-60
D:1280x720p-60
D:800x480p-60
U:640x480p-60
root@mx6q:~#

 

root@mx6q:~# aplay -D hw:1,0 Albinoni.wav
Playing WAVE 'Albinoni.wav' : Signed 16 bit Little Endian, Rate 44100 Hz, Stereo

 

As in above mode list I am getting 1280x1024@60 as supported mode, also android home-screen fits well (all home-screen corner controls visible) on HDMI displays with only this resolution.,
But the imx-hdmi-soc sound card : 1 not responding audio.

While debugging the mxc_hdmi_setup related functionality observed that my selected mode falls under non-CEA mode,
It actually skips the HDMi initialization step E & F.
quick ref, @ https://github.com/boundarydevices/linux-imx6/blob/boundary-imx-android-r13.4-ga/drivers/video/mxc_hdmi.c#L1945

On other hand trying the CEA modes e.g. 1080p, as audio imx-hdmi-soc works well, But the faytech 10" HDMI monitor won't take actual resolution it displays around 1824x1026@60hz, which resulting into actual rendering area issue.i.e android home-screen won't fit well on display. [e.g. android touch-screen corner controls disappearing..]

 

CEA mode quick ref: http://blogimg.chinaunix.net/blog/upfile2/090903185737.pdf
Faytech 10" HDMI Display: quick manual ref: http://mypdfmanuals.com/dref/3595894

 

Please advice,
Anyone having similar thoughts, pointers or suggestions sharing will be a great help.

 

 

 


So far following these references.. 
https://community.freescale.com/thread/306901
https://community.freescale.com/thread/305063
https://community.freescale.com/thread/301965
http://boundarydevices.com/hdmi-cea-mode/
https://github.com/imx6-dongle/linux-imx/issues/14

 

So far tried in following ways..  please suggest on pointers if any..
forcing video mode 1920x1080 as fb_videomode but not much help,
@ https://github.com/boundarydevices/linux-imx6/blob/boundary-imx-android-r13.4-ga/drivers/video/mxc_hdmi.c#L91
forcing 1280x1024 in mxc_cea_mode array but no much help.
@ https://github.com/boundarydevices/linux-imx6/blob/boundary-imx-android-r13.4-ga/drivers/video/mxc/mxc_edid.c#L41

 

Thanks !

 

Shrikant Bobade


Outcomes