diff options
author | Mauro Carvalho Chehab <mchehab@infradead.org> | 2007-01-20 14:59:32 -0200 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab@infradead.org> | 2007-01-20 14:59:32 -0200 |
commit | f7959bf29dfc8e63e668127cfcaa479ef26201c7 (patch) | |
tree | dcf133917c3ae18913c6dd8d9eee6e94f36cff96 | |
parent | ccae167cdcefc0489443c882938c7b839a65378f (diff) | |
download | mediapointer-dvb-s2-f7959bf29dfc8e63e668127cfcaa479ef26201c7.tar.gz mediapointer-dvb-s2-f7959bf29dfc8e63e668127cfcaa479ef26201c7.tar.bz2 |
Use cx88_set_freq() on cx88-blackbird.c
From: Mauro Carvalho Chehab <mchehab@infradead.org>
Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
-rw-r--r-- | linux/drivers/media/video/cx88/cx88-blackbird.c | 19 |
1 files changed, 1 insertions, 18 deletions
diff --git a/linux/drivers/media/video/cx88/cx88-blackbird.c b/linux/drivers/media/video/cx88/cx88-blackbird.c index 5ae3e1970..5a79ec5d8 100644 --- a/linux/drivers/media/video/cx88/cx88-blackbird.c +++ b/linux/drivers/media/video/cx88/cx88-blackbird.c @@ -1003,24 +1003,7 @@ static int mpeg_do_ioctl(struct inode *inode, struct file *file, BLACKBIRD_MPEG_CAPTURE, BLACKBIRD_RAW_BITS_NONE); - if (UNSET == core->tuner_type) - return -EINVAL; - if (f->tuner != 0) - return -EINVAL; - if (0 == radio && f->type != V4L2_TUNER_ANALOG_TV) - return -EINVAL; - if (1 == radio && f->type != V4L2_TUNER_RADIO) - return -EINVAL; - mutex_lock(&core->lock); - core->freq = f->frequency; - cx88_newstation(core); - cx88_call_i2c_clients(core,VIDIOC_S_FREQUENCY,f); - - /* When changing channels it is required to reset TVAUDIO */ - msleep (10); - cx88_set_tvaudio(core); - - mutex_unlock(&core->lock); + cx88_set_freq (core,f); blackbird_initialize_codec(dev); cx88_set_scale(dev->core, dev->width, dev->height, |