diff options
author | Marcel Tunnissen <Marcel.Tuennissen@stericsson.com> | 2011-05-02 16:28:16 +0200 |
---|---|---|
committer | Ulf Hansson <ulf.hansson@stericsson.com> | 2011-09-19 15:15:15 +0200 |
commit | 8b223fe98f23d0ff4a7f90c9d2c2c3bc24348ad3 (patch) | |
tree | 06dd36d469136a35170fb8c93734602152e918be /drivers/video/mcde | |
parent | 23a6038c27aad99fb9e7ec479fa09e740f75e110 (diff) |
video: av8100: Fix YUV port setting from startup
Fixes the problem that configuring the YUV 422 port pixel format for
AV8100 doesn't work from start up. The problem is that the function
hdmi_set_pixel_format doesn't really set up the FB pixel format.
ST-Ericsson ID: 338206
ST-Ericsson Linux next: Not tested, ER 282779
ST-Ericsson FOSS-OUT ID: Trivial
Change-Id: Ib5a7d3379c5853ea08c27fe94eae788c456c36ce
Signed-off-by: Marcel Tunnissen <Marcel.Tuennissen@stericsson.com>
Reviewed-on: http://gerrit.lud.stericsson.com/gerrit/22273
Tested-by: Marcel TUNNISSEN <marcel.tuennissen@stericsson.com>
Reviewed-by: QATOOLS
Reviewed-by: QATEST
Reviewed-by: Jimmy RUBIN <jimmy.rubin@stericsson.com>
Reviewed-by: Linus WALLEIJ <linus.walleij@stericsson.com>
Diffstat (limited to 'drivers/video/mcde')
-rw-r--r-- | drivers/video/mcde/display-av8100.c | 15 |
1 files changed, 12 insertions, 3 deletions
diff --git a/drivers/video/mcde/display-av8100.c b/drivers/video/mcde/display-av8100.c index 1deda75068f..a28edbc9217 100644 --- a/drivers/video/mcde/display-av8100.c +++ b/drivers/video/mcde/display-av8100.c @@ -948,17 +948,24 @@ static u16 map_u(u8 in) static int hdmi_set_pixel_format( struct mcde_display_device *ddev, enum mcde_ovly_pix_fmt format) { + dev_dbg(&ddev->dev, "%s\n", __func__); + ddev->pixel_format = format; + + return 0; +} + +static int hdmi_set_port_pixel_format(struct mcde_display_device *ddev) +{ int ret; dev_dbg(&ddev->dev, "%s\n", __func__); - ddev->pixel_format = format; mcde_chnl_stop_flow(ddev->chnl_state); ret = mcde_chnl_set_pixel_format(ddev->chnl_state, ddev->port->pixel_format); if (ret < 0) { - dev_warn(&ddev->dev, "%s:Failed to set pixel format = %d\n", - __func__, format); + dev_warn(&ddev->dev, "%s: Failed to set pixel format = %d\n", + __func__, ddev->port->pixel_format); return ret; } @@ -1105,6 +1112,8 @@ static int hdmi_set_power_mode(struct mcde_display_device *ddev, driver_data->cvbs_regulator_enabled = true; } ddev->power_mode = MCDE_DISPLAY_PM_STANDBY; + + hdmi_set_port_pixel_format(ddev); } /* STANDBY -> ON */ if (ddev->power_mode == MCDE_DISPLAY_PM_STANDBY && |