Skip to content

Commit

Permalink
V4L/DVB (5994): ivtv: make VIDIOC_INT_RESET support smarter.
Browse files Browse the repository at this point in the history
Add support to optionally reset the IR and/or the video digitizer.

Signed-off-by: Hans Verkuil <hverkuil@xs4all.nl>
Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
  • Loading branch information
Hans Verkuil authored and Mauro Carvalho Chehab committed Oct 10, 2007
1 parent 89fc4eb commit 2cc7209
Showing 1 changed file with 10 additions and 2 deletions.
12 changes: 10 additions & 2 deletions drivers/media/video/ivtv/ivtv-ioctl.c
Original file line number Diff line number Diff line change
Expand Up @@ -681,9 +681,17 @@ static int ivtv_debug_ioctls(struct file *filp, unsigned int cmd, void *arg)
break;
}

case VIDIOC_INT_RESET:
ivtv_reset_ir_gpio(itv);
case VIDIOC_INT_RESET: {
u32 val = *(u32 *)arg;

if ((val == 0 && itv->options.newi2c) || (val & 0x01)) {
ivtv_reset_ir_gpio(itv);
}
if (val & 0x02) {
itv->video_dec_func(itv, cmd, 0);
}
break;
}

default:
return -EINVAL;
Expand Down

0 comments on commit 2cc7209

Please sign in to comment.