diff options
author | Mauro Carvalho Chehab <mchehab@infradead.org> | 2008-07-16 11:55:09 -0300 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab@infradead.org> | 2008-07-16 11:55:09 -0300 |
commit | ef1300c8dfd94bca1d2bc80ea3629d644e23ef3b (patch) | |
tree | ebd1925c473e3bb71372fda123435b4c8e241af0 /linux/drivers/media/video/cx18/cx18-ioctl.c | |
parent | c4a8a2e49ee685a2e77215fc26bda43415a6df1d (diff) | |
parent | 686cc1c1d15e11ccb0bd3687091cd989974d9e91 (diff) | |
download | mediapointer-dvb-s2-ef1300c8dfd94bca1d2bc80ea3629d644e23ef3b.tar.gz mediapointer-dvb-s2-ef1300c8dfd94bca1d2bc80ea3629d644e23ef3b.tar.bz2 |
merge: http://linuxtv.org/hg/~awalls/v4l-dvb
From: Mauro Carvalho Chehab <mchehab@infradead.org>
Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
Diffstat (limited to 'linux/drivers/media/video/cx18/cx18-ioctl.c')
-rw-r--r-- | linux/drivers/media/video/cx18/cx18-ioctl.c | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/linux/drivers/media/video/cx18/cx18-ioctl.c b/linux/drivers/media/video/cx18/cx18-ioctl.c index b3d72d4a4..0221a67aa 100644 --- a/linux/drivers/media/video/cx18/cx18-ioctl.c +++ b/linux/drivers/media/video/cx18/cx18-ioctl.c @@ -821,8 +821,10 @@ static int cx18_log_status(struct file *file, void *fh) cx18_get_audio_input(cx, cx->audio_input, &audin); CX18_INFO("Video Input: %s\n", vidin.name); CX18_INFO("Audio Input: %s\n", audin.name); + mutex_lock(&cx->gpio_lock); CX18_INFO("GPIO: direction 0x%08x, value 0x%08x\n", cx->gpio_dir, cx->gpio_val); + mutex_unlock(&cx->gpio_lock); CX18_INFO("Tuner: %s\n", test_bit(CX18_F_I_RADIO_USER, &cx->i_flags) ? "Radio" : "TV"); cx2341x_log_status(&cx->params, cx->name); @@ -857,6 +859,15 @@ static int cx18_default(struct file *file, void *fh, int cmd, void *arg) cx18_audio_set_route(cx, route); break; } + + case VIDIOC_INT_RESET: { + u32 val = *(u32 *)arg; + + if ((val == 0) || (val & 0x01)) + cx18_reset_ir_gpio(&cx->i2c_algo_cb_data[0]); + break; + } + default: return -EINVAL; } |