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.verk...@cisco.com>
---
diff --git a/drivers/media/pci/cobalt/cobalt-v4l2.c 
b/drivers/media/pci/cobalt/cobalt-v4l2.c
index 5c76637..f900f9f 100644
--- a/drivers/media/pci/cobalt/cobalt-v4l2.c
+++ b/drivers/media/pci/cobalt/cobalt-v4l2.c
@@ -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,
--
To unsubscribe from this list: send the line "unsubscribe linux-media" in
the body of a message to majord...@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Reply via email to