summaryrefslogtreecommitdiff
path: root/linux/drivers/media/video/tuner-core.c
diff options
context:
space:
mode:
authorHartmut Hackmann <hartmut.hackmann@t-online.de>2006-02-23 00:30:11 +0200
committerHartmut Hackmann <hartmut.hackmann@t-online.de>2006-02-23 00:30:11 +0200
commit5d55da90c44a6874f06d0ceeaefa45c927c4c267 (patch)
tree29ea3f7ba4f6c0077d6205f344d3239711d7b587 /linux/drivers/media/video/tuner-core.c
parent016e2c55c79d9394c22e6bfd93ef073caa766706 (diff)
downloadmediapointer-dvb-s2-5d55da90c44a6874f06d0ceeaefa45c927c4c267.tar.gz
mediapointer-dvb-s2-5d55da90c44a6874f06d0ceeaefa45c927c4c267.tar.bz2
Fixed Pinnacle 300i DVB-T support
From: Hartmut Hackmann <hartmut.hackmann@t-online.de> - fixed tda9886 port 2 setting - turned remote control receiver off via saa7134 GPIO to avoid i2c hangs - modified tda9886 client calls to direct i2c access to allow proper return to analog mode - allow mode change to V4L2_TUNER_DIGITAL_TV in tuner VIDIOC_S_FREQUENCY client call Signed-off-by: Hartmut Hackmann <hartmut.hackmann@t-online.de>
Diffstat (limited to 'linux/drivers/media/video/tuner-core.c')
-rw-r--r--linux/drivers/media/video/tuner-core.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/linux/drivers/media/video/tuner-core.c b/linux/drivers/media/video/tuner-core.c
index 553d80394..d9ddb140a 100644
--- a/linux/drivers/media/video/tuner-core.c
+++ b/linux/drivers/media/video/tuner-core.c
@@ -770,8 +770,9 @@ static int tuner_command(struct i2c_client *client, unsigned int cmd, void *arg)
struct v4l2_frequency *f = arg;
switch_v4l2();
- if (V4L2_TUNER_RADIO == f->type &&
- V4L2_TUNER_RADIO != t->mode) {
+ if ((V4L2_TUNER_RADIO == f->type && V4L2_TUNER_RADIO != t->mode)
+ || (V4L2_TUNER_DIGITAL_TV == f->type
+ && V4L2_TUNER_DIGITAL_TV != t->mode)) {
if (set_mode (client, t, f->type, "VIDIOC_S_FREQUENCY")
== EINVAL)
return 0;