media: tegra_v4l2_camera: fix format support
authorAndrew Chew <achew@nvidia.com>
Sat, 23 Aug 2014 01:36:00 +0000 (18:36 -0700)
committerWinnie Hsu <whsu@nvidia.com>
Thu, 8 Jan 2015 02:04:56 +0000 (18:04 -0800)
commit2e8fe26468a7c4e9b41e5bbd28681664e1153238
treeefbf849e5e26a6b438c72779f7305af4b94c7549
parent8cdc4da9ca62c3f5e0650469afac2ac8fe305d0c
media: tegra_v4l2_camera: fix format support

This driver does not demosaic, so when we are working with a bayer sensor,
we can only report the various bayer formats.  Similarly, we only support
rgba for test pattern generator right now, so only report rgba if we are in
test pattern mode.

When in test pattern mode, don't ever query the sensor subdev, since it's
not involved at all.

Also, made some miscellaneous cleanup to some debug prints, and the
conditionals around how CSI gets programmed.

Bug 1560636

Change-Id: I9022ec6a489b20d0847dd9d2a79af2307b7a4af1
Signed-off-by: Andrew Chew <achew@nvidia.com>
Signed-off-by: Bryan Wu <pengw@nvidia.com>
Reviewed-on: http://git-master/r/489066
Reviewed-by: Jihoon Bang <jbang@nvidia.com>
Reviewed-by: David Wang (SW-TEGRA) <davidw@nvidia.com>
Reviewed-by: Venkat Moganty <vmoganty@nvidia.com>
(cherry picked from commit f211247b0151b926f21b989cc031dc928db61aaa)
Reviewed-on: http://git-master/r/665994
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Reviewed-by: Winnie Hsu <whsu@nvidia.com>
drivers/media/platform/soc_camera/tegra_camera/common.c
drivers/media/platform/soc_camera/tegra_camera/vi2.c