aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/media/platform/exynos-gsc/gsc-core.h
diff options
context:
space:
mode:
authorShaik Ameer Basha <shaik.ameer@samsung.com>2012-11-07 03:37:07 -0300
committerMauro Carvalho Chehab <mchehab@redhat.com>2012-12-21 10:18:48 -0200
commitaecede4c45ae32944e822ef98d4837733837887d (patch)
treed291d8f6b7754024c30d1c18d57576a2fd42996f /drivers/media/platform/exynos-gsc/gsc-core.h
parent[media] ivtv: ivtv-driver: Replace 'flush_work_sync()' (diff)
downloadlinux-dev-aecede4c45ae32944e822ef98d4837733837887d.tar.xz
linux-dev-aecede4c45ae32944e822ef98d4837733837887d.zip
[media] exynos-gsc: Adding tiled multi-planar format to G-Scaler
Adding V4L2_PIX_FMT_NV12MT_16X16 to G-Scaler supported formats. If the output or input format is V4L2_PIX_FMT_NV12MT_16X16, configure G-Scaler to use GSC_IN_TILE_MODE. [s.nawrocki: shortened the pixel format description] Signed-off-by: Shaik Ameer Basha <shaik.ameer@samsung.com> Signed-off-by: Sylwester Nawrocki <s.nawrocki@samsung.com> Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
Diffstat (limited to 'drivers/media/platform/exynos-gsc/gsc-core.h')
-rw-r--r--drivers/media/platform/exynos-gsc/gsc-core.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/drivers/media/platform/exynos-gsc/gsc-core.h b/drivers/media/platform/exynos-gsc/gsc-core.h
index 5f157efd24f0..cc19bba09bd1 100644
--- a/drivers/media/platform/exynos-gsc/gsc-core.h
+++ b/drivers/media/platform/exynos-gsc/gsc-core.h
@@ -427,6 +427,11 @@ static inline void gsc_ctx_state_lock_clear(u32 state, struct gsc_ctx *ctx)
spin_unlock_irqrestore(&ctx->gsc_dev->slock, flags);
}
+static inline int is_tiled(const struct gsc_fmt *fmt)
+{
+ return fmt->pixelformat == V4L2_PIX_FMT_NV12MT_16X16;
+}
+
static inline void gsc_hw_enable_control(struct gsc_dev *dev, bool on)
{
u32 cfg = readl(dev->regs + GSC_ENABLE);