CHROMIUM: s5p-mfc: Fix input/output format reporting
authorJohn Sheu <sheu@chromium.org>
Wed, 13 Feb 2013 21:53:56 +0000 (13:53 -0800)
committerChromeBot <chrome-bot@google.com>
Wed, 20 Mar 2013 09:05:05 +0000 (02:05 -0700)
commitab32747b1c0a4e614303306fda8374640ac2e788
tree72f87473614eb3f26d2d9b16505031b58148806d
parent29b4768c1dd2d2bb556b523921553bbcd5ed2420
CHROMIUM: s5p-mfc: Fix input/output format reporting

The video encode/decode paths have duplicated logic between
VIDIOC_TRY_FMT and VIDIOC_S_FMT that should be de-duped.  Also, video
decode reports V4L2_PIX_FMT_NV12MT_16X16 output format, regardless of
what the actual output has been set at.  Fix this.

Signed-off-by: John Sheu <sheu@google.com>
BUG=chromium-os:38376
TEST=local build, run on snow

Change-Id: I3c4c5258733421f54340ca8237d2c5200cb76fc4
Reviewed-on: https://gerrit.chromium.org/gerrit/43676
Reviewed-by: Pawel Osciak <posciak@chromium.org>
Commit-Queue: John Sheu <sheu@chromium.org>
Tested-by: John Sheu <sheu@chromium.org>
Reviewed-on: https://gerrit.chromium.org/gerrit/45654
Reviewed-by: John Sheu <sheu@chromium.org>
drivers/media/video/s5p-mfc/s5p_mfc_dec.c
drivers/media/video/s5p-mfc/s5p_mfc_enc.c