]> git.karo-electronics.de Git - karo-tx-linux.git/commit
ENGR00291111 mxc vout:Restore when new config fails
authorLiu Ying <Ying.Liu@freescale.com>
Tue, 10 Dec 2013 09:28:09 +0000 (17:28 +0800)
committerLothar Waßmann <LW@KARO-electronics.de>
Wed, 20 Aug 2014 08:06:48 +0000 (10:06 +0200)
commitdd9435a41d388a0d59b9b87ad3e8a8f3b067ff59
tree5fdb6be95df53ea3bfcf1303e3d2ca2c62924df7
parente9c0992eccef47babbeeefaac73264a451820418
ENGR00291111 mxc vout:Restore when new config fails

Users may call VIDIOC_S_CTRL and VIDIOC_S_CROP ioctrls
to change rotation and cropping settings when streaming.
The driver should restore the original settings if new
configuration fails, otherwise, it might break the
present pipeline.

This patch fixes the issue which can be reproduced by
this test case with a 1080P HDMI primary display:
gplay Mpeg4_SP1_480x260_24_1200_aac_48_128_2_terminator3.mp4
Type 't' to set rotation to 90.

Signed-off-by: Liu Ying <Ying.Liu@freescale.com>
drivers/media/platform/mxc/output/mxc_vout.c