diff options
Diffstat (limited to 'drivers/media/usb/pwc/pwc-uncompress.c')
-rw-r--r-- | drivers/media/usb/pwc/pwc-uncompress.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/drivers/media/usb/pwc/pwc-uncompress.c b/drivers/media/usb/pwc/pwc-uncompress.c index b65903fbcf0d..98c46f93f119 100644 --- a/drivers/media/usb/pwc/pwc-uncompress.c +++ b/drivers/media/usb/pwc/pwc-uncompress.c | |||
@@ -40,7 +40,7 @@ int pwc_decompress(struct pwc_device *pdev, struct pwc_frame_buf *fbuf) | |||
40 | u16 *src; | 40 | u16 *src; |
41 | u16 *dsty, *dstu, *dstv; | 41 | u16 *dsty, *dstu, *dstv; |
42 | 42 | ||
43 | image = vb2_plane_vaddr(&fbuf->vb, 0); | 43 | image = vb2_plane_vaddr(&fbuf->vb.vb2_buf, 0); |
44 | 44 | ||
45 | yuv = fbuf->data + pdev->frame_header_size; /* Skip header */ | 45 | yuv = fbuf->data + pdev->frame_header_size; /* Skip header */ |
46 | 46 | ||
@@ -55,12 +55,12 @@ int pwc_decompress(struct pwc_device *pdev, struct pwc_frame_buf *fbuf) | |||
55 | * determine this using the type of the webcam */ | 55 | * determine this using the type of the webcam */ |
56 | memcpy(raw_frame->cmd, pdev->cmd_buf, 4); | 56 | memcpy(raw_frame->cmd, pdev->cmd_buf, 4); |
57 | memcpy(raw_frame+1, yuv, pdev->frame_size); | 57 | memcpy(raw_frame+1, yuv, pdev->frame_size); |
58 | vb2_set_plane_payload(&fbuf->vb, 0, | 58 | vb2_set_plane_payload(&fbuf->vb.vb2_buf, 0, |
59 | pdev->frame_size + sizeof(struct pwc_raw_frame)); | 59 | pdev->frame_size + sizeof(struct pwc_raw_frame)); |
60 | return 0; | 60 | return 0; |
61 | } | 61 | } |
62 | 62 | ||
63 | vb2_set_plane_payload(&fbuf->vb, 0, | 63 | vb2_set_plane_payload(&fbuf->vb.vb2_buf, 0, |
64 | pdev->width * pdev->height * 3 / 2); | 64 | pdev->width * pdev->height * 3 / 2); |
65 | 65 | ||
66 | if (pdev->vbandlength == 0) { | 66 | if (pdev->vbandlength == 0) { |