imx-drm: imx-hdmi: fix CTS/N setup at init time
authorRussell King <rmk+kernel@arm.linux.org.uk>
Thu, 7 Nov 2013 15:35:06 +0000 (15:35 +0000)
committerRussell King <rmk+kernel@arm.linux.org.uk>
Mon, 24 Feb 2014 12:03:47 +0000 (12:03 +0000)
commit406783880267c3fa3d76ce8e9a83ba17de3bcf2e
treec38b1d4e60680e2663c36cba2ab6ba1458b35d54
parentbebdf6641939b1bb869ac96ae9524cedeb11e419
imx-drm: imx-hdmi: fix CTS/N setup at init time

Many of the variables for the audio clock regenerator (CTS/N) were not
initialised in any way.  The pixel rate which was being used also
wasn't being adjusted at all when the display mode is modified.

Get rid of the seaprate 'pixel_clk_rate', and use the stored pixel
clock rate instead.  Pass this desired pixel clock rate into
hdmi_set_clk_regenerator().  Collapse down hdmi_init_clk_regenerator()
since it is a copy of hdmi_set_clk_regenerator(), and pass a default
pixel clock rate.

Acked-by: Philipp Zabel <p.zabel@pengutronix.de>
Acked-by: Shawn Guo <shawn.guo@linaro.org>
Reviewed-by: Fabio Estevam <fabio.estevam@freescale.com>
Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
drivers/staging/imx-drm/imx-hdmi.c