Skip to content

Commit

Permalink
V4L/DVB (10291): em28xx: fix VIDIOC_G_CTRL when there is no msp34xx d…
Browse files Browse the repository at this point in the history
…evice.

Signed-off-by: Hans Verkuil <hverkuil@xs4all.nl>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
  • Loading branch information
Hans Verkuil authored and Mauro Carvalho Chehab committed Mar 30, 2009
1 parent 71bf2e0 commit 07f7db4
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion drivers/media/video/em28xx/em28xx-video.c
Original file line number Diff line number Diff line change
Expand Up @@ -1008,8 +1008,13 @@ static int vidioc_g_ctrl(struct file *file, void *priv,

if (dev->board.has_msp34xx)
em28xx_i2c_call_clients(dev, VIDIOC_G_CTRL, ctrl);
else
else {
rc = em28xx_get_ctrl(dev, ctrl);
if (rc < 0) {
em28xx_i2c_call_clients(dev, VIDIOC_G_CTRL, ctrl);
rc = 0;
}
}

mutex_unlock(&dev->lock);
return rc;
Expand Down

0 comments on commit 07f7db4

Please sign in to comment.