diff options
author | Marek Szyprowski <m.szyprowski@samsung.com> | 2012-01-13 03:12:38 -0500 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab@redhat.com> | 2012-01-17 19:54:45 -0500 |
commit | 719c174ee9005e44b61bc8ab295f05851a989e21 (patch) | |
tree | 801b14578da77e94355ed7f895b0645c7fa02dbd /drivers/media/video/s5p-jpeg | |
parent | 7f6cce69e2667fdf0ee978641ee4325ea05ce3f8 (diff) |
[media] s5p-jpeg: adapt to recent videobuf2 changes
queue_setup callback has been extended with struct v4l2_format *fmt
parameter in 2d86401c2c commit. This patch adds this parameter to
s5p-jpeg driver.
Signed-off-by: Marek Szyprowski <m.szyprowski@samsung.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
Diffstat (limited to 'drivers/media/video/s5p-jpeg')
-rw-r--r-- | drivers/media/video/s5p-jpeg/jpeg-core.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/drivers/media/video/s5p-jpeg/jpeg-core.c b/drivers/media/video/s5p-jpeg/jpeg-core.c index f841a3e9845c..1105a8749c8b 100644 --- a/drivers/media/video/s5p-jpeg/jpeg-core.c +++ b/drivers/media/video/s5p-jpeg/jpeg-core.c | |||
@@ -989,9 +989,10 @@ static struct v4l2_m2m_ops s5p_jpeg_m2m_ops = { | |||
989 | * ============================================================================ | 989 | * ============================================================================ |
990 | */ | 990 | */ |
991 | 991 | ||
992 | static int s5p_jpeg_queue_setup(struct vb2_queue *vq, unsigned int *nbuffers, | 992 | static int s5p_jpeg_queue_setup(struct vb2_queue *vq, |
993 | unsigned int *nplanes, unsigned int sizes[], | 993 | const struct v4l2_format *fmt, |
994 | void *alloc_ctxs[]) | 994 | unsigned int *nbuffers, unsigned int *nplanes, |
995 | unsigned int sizes[], void *alloc_ctxs[]) | ||
995 | { | 996 | { |
996 | struct s5p_jpeg_ctx *ctx = vb2_get_drv_priv(vq); | 997 | struct s5p_jpeg_ctx *ctx = vb2_get_drv_priv(vq); |
997 | struct s5p_jpeg_q_data *q_data = NULL; | 998 | struct s5p_jpeg_q_data *q_data = NULL; |