aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/media/video/cx18/cx18-ioctl.c
diff options
context:
space:
mode:
authorAndy Walls <awalls@radix.net>2008-07-13 18:30:15 -0400
committerMauro Carvalho Chehab <mchehab@infradead.org>2008-07-20 06:25:03 -0400
commit02fa272fcb6edda9059d6dbaab20dfe919f4f4d2 (patch)
treedcce1b6957c1a355c6ebcb80e61aa8651e84a93a /drivers/media/video/cx18/cx18-ioctl.c
parent8abdd00dcc6a58cab3afe6a23a0ce819dc08049a (diff)
V4L/DVB (8332): cx18: Suport external reset of the Z8F0811 IR controller on HVR-1600 for lirc
cx18: added in cx18_ir_reset_gpio function for lirc_pvr150 like module. Also added the ability to reset the IR chip via ioctl like ivtv. This needs the mutex to protect gpio_dir and gpio_val in struct cx18 as gpio changes can come from a few different asynchronous sources now. Signed-off-by: Andy Walls <awalls@radix.net> Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
Diffstat (limited to 'drivers/media/video/cx18/cx18-ioctl.c')
-rw-r--r--drivers/media/video/cx18/cx18-ioctl.c9
1 files changed, 9 insertions, 0 deletions
diff --git a/drivers/media/video/cx18/cx18-ioctl.c b/drivers/media/video/cx18/cx18-ioctl.c
index 146a4b856496..0d74e59e503e 100644
--- a/drivers/media/video/cx18/cx18-ioctl.c
+++ b/drivers/media/video/cx18/cx18-ioctl.c
@@ -754,6 +754,15 @@ static int cx18_default(struct file *file, void *fh, int cmd, void *arg)
754 cx18_audio_set_route(cx, route); 754 cx18_audio_set_route(cx, route);
755 break; 755 break;
756 } 756 }
757
758 case VIDIOC_INT_RESET: {
759 u32 val = *(u32 *)arg;
760
761 if ((val == 0) || (val & 0x01))
762 cx18_reset_ir_gpio(&cx->i2c_algo_cb_data[0]);
763 break;
764 }
765
757 default: 766 default:
758 return -EINVAL; 767 return -EINVAL;
759 } 768 }