[media] cobalt: fix copy-and-paste error
authorHans Verkuil <hverkuil@xs4all.nl>
Fri, 11 Nov 2016 10:33:05 +0000 (08:33 -0200)
committerMauro Carvalho Chehab <mchehab@s-opensource.com>
Wed, 16 Nov 2016 17:28:13 +0000 (15:28 -0200)
The vmr_stat variable was filled with the contents of the control register,
not the status register. Classic copy-and-paste error.

Signed-off-by: Hans Verkuil <hans.verkuil@cisco.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@s-opensource.com>
drivers/media/pci/cobalt/cobalt-v4l2.c

index 3fea246130592c4e9c0a4890176f0f5a61ff23d6..def4a3b370840cdd2c918443dc5df3f66e584b28 100644 (file)
@@ -527,7 +527,7 @@ static void cobalt_video_input_status_show(struct cobalt_stream *s)
        cvi_ctrl = ioread32(&cvi->control);
        cvi_stat = ioread32(&cvi->status);
        vmr_ctrl = ioread32(&vmr->control);
-       vmr_stat = ioread32(&vmr->control);
+       vmr_stat = ioread32(&vmr->status);
        cobalt_info("rx%d: cvi resolution: %dx%d\n", rx,
                    ioread32(&cvi->frame_width), ioread32(&cvi->frame_height));
        cobalt_info("rx%d: cvi control: %s%s%s\n", rx,