summaryrefslogtreecommitdiffstats
path: root/drivers/media/platform/vicodec/vicodec-core.c
diff options
context:
space:
mode:
authorDafna Hirschfeld2018-11-15 12:23:30 +0100
committerMauro Carvalho Chehab2018-11-23 10:34:27 +0100
commitaec89917542c60af06fb36e433dd92c4eb7d792a (patch)
tree73904c47598ea139758bedb40f48d47c54e6839a /drivers/media/platform/vicodec/vicodec-core.c
parentmedia: vidioc-enum-fmt.rst: update list of valid buftypes (diff)
downloadkernel-qcow2-linux-aec89917542c60af06fb36e433dd92c4eb7d792a.tar.gz
kernel-qcow2-linux-aec89917542c60af06fb36e433dd92c4eb7d792a.tar.xz
kernel-qcow2-linux-aec89917542c60af06fb36e433dd92c4eb7d792a.zip
media: vicodec: prepare support for various number of planes
Add fields to the structs `fwht_raw_frame`, `v4l2_fwht_pixfmts` to support various number of planes - formats with alpha channel that have 4 planes and greyscale formats that have 1 plane. Signed-off-by: Dafna Hirschfeld <dafna3@gmail.com> Signed-off-by: Hans Verkuil <hverkuil@xs4all.nl> Signed-off-by: Mauro Carvalho Chehab <mchehab+samsung@kernel.org>
Diffstat (limited to 'drivers/media/platform/vicodec/vicodec-core.c')
-rw-r--r--drivers/media/platform/vicodec/vicodec-core.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/media/platform/vicodec/vicodec-core.c b/drivers/media/platform/vicodec/vicodec-core.c
index 9b6416ba5901..b26ca043e8c3 100644
--- a/drivers/media/platform/vicodec/vicodec-core.c
+++ b/drivers/media/platform/vicodec/vicodec-core.c
@@ -61,7 +61,7 @@ struct pixfmt_info {
};
static const struct v4l2_fwht_pixfmt_info pixfmt_fwht = {
- V4L2_PIX_FMT_FWHT, 0, 3, 1, 1, 1, 1, 1
+ V4L2_PIX_FMT_FWHT, 0, 3, 1, 1, 1, 1, 1, 0
};
static void vicodec_dev_release(struct device *dev)