]> git.karo-electronics.de Git - karo-tx-linux.git/commit
ENGR00255482 ASoC: HDMI-audio: Add error message for HDMI-video detect failure
authorNicolin Chen <b42378@freescale.com>
Fri, 22 Mar 2013 02:57:07 +0000 (10:57 +0800)
committerLothar Waßmann <LW@KARO-electronics.de>
Fri, 24 May 2013 06:35:58 +0000 (08:35 +0200)
commit4dd55c6cbab74f2331d20b96ba38527b519d79d3
tree1bd0559180790d783c5c1b0bb9f381237c8a8c12
parenta916b06659f967d5b50e60a34d24c1e1031ffbb3
ENGR00255482 ASoC: HDMI-audio: Add error message for HDMI-video detect failure

  HDMI-audio depends on HDMI-video. If users want to use HDMI-audio function,
they need to load HDMI-video first. Sometime users would forget to put video
info into U-boot cmdline, "video=mxcfb0:dev=hdmi,1920x1080M@60,if=RGB24" for
example. That might cause HDMI-auido driver fail to detect HDMI-video.
  Previously, if this happened to system, driver only returned with "ENOMEM"
and system would print "Can't allocate memory". This might confuse users due
to the vague infomation. Users would be hard to figure out the root cause.
  So this patch just add some error message to give users a clear indication,
and changed the "ENOMEM" error number to the more precise "ENODEV".

Acked-by: Wang Shengjiu <b02247@freescale.com>
Signed-off-by: Nicolin Chen <b42378@freescale.com>
sound/soc/imx/imx-hdmi-dai.c
sound/soc/imx/imx-hdmi.c