summaryrefslogtreecommitdiff
path: root/linux/drivers/media/video/tuner-core.c
diff options
context:
space:
mode:
authorHans Verkuil <hverkuil@xs4all.nl>2006-06-29 21:30:51 +0200
committerHans Verkuil <hverkuil@xs4all.nl>2006-06-29 21:30:51 +0200
commitd0e72a04e4e692f7aa589745abd2da9258168870 (patch)
tree127b0c0fb72b5684972463bf8dfdcd73a056cb24 /linux/drivers/media/video/tuner-core.c
parentd68355d3eae7bfaa169709efe2bf1164992bc5d8 (diff)
downloadmediapointer-dvb-s2-d0e72a04e4e692f7aa589745abd2da9258168870.tar.gz
mediapointer-dvb-s2-d0e72a04e4e692f7aa589745abd2da9258168870.tar.bz2
TDA9887_SET_CONFIG should only be handled by the tda9887.
From: Hans Verkuil <hverkuil@xs4all.nl> Signed-off-by: Hans Verkuil <hverkuil@xs4all.nl>
Diffstat (limited to 'linux/drivers/media/video/tuner-core.c')
-rw-r--r--linux/drivers/media/video/tuner-core.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/linux/drivers/media/video/tuner-core.c b/linux/drivers/media/video/tuner-core.c
index 606d8fabd..b3038fed3 100644
--- a/linux/drivers/media/video/tuner-core.c
+++ b/linux/drivers/media/video/tuner-core.c
@@ -671,13 +671,13 @@ static int tuner_command(struct i2c_client *client, unsigned int cmd, void *arg)
tuner_dbg("VIDIOCSAUDIO not implemented.\n");
break;
case TDA9887_SET_CONFIG:
- {
- int *i = arg;
+ if (t->type == TUNER_TDA9887) {
+ int *i = arg;
- t->tda9887_config = *i;
- set_freq(client, t->tv_freq);
+ t->tda9887_config = *i;
+ set_freq(client, t->tv_freq);
+ }
break;
- }
/* --- v4l ioctls --- */
/* take care: bttv does userspace copying, we'll get a
kernel pointer here... */