summaryrefslogtreecommitdiff
path: root/drivers/media/video/tuner-core.c
diff options
context:
space:
mode:
authorHans Verkuil <hverkuil@xs4all.nl>2006-06-29 16:30:51 -0300
committerMauro Carvalho Chehab <mchehab@infradead.org>2006-06-30 15:59:42 -0300
commit00e158d52a8107ebcb0eaee6442267927f149b3b (patch)
tree9f4e55378aba2d2657728ceaa1401a56c484d1f1 /drivers/media/video/tuner-core.c
parentc5e768a1ec281926e3a3a2b804d5004a2693d7e8 (diff)
downloadlinux-00e158d52a8107ebcb0eaee6442267927f149b3b.tar.gz
linux-00e158d52a8107ebcb0eaee6442267927f149b3b.tar.xz
V4L/DVB (4281): TDA9887_SET_CONFIG should only be handled by the tda9887.
Signed-off-by: Hans Verkuil <hverkuil@xs4all.nl> Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
Diffstat (limited to 'drivers/media/video/tuner-core.c')
-rw-r--r--drivers/media/video/tuner-core.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/drivers/media/video/tuner-core.c b/drivers/media/video/tuner-core.c
index 7f7d5e355bb7..f7eb402d5f2b 100644
--- a/drivers/media/video/tuner-core.c
+++ b/drivers/media/video/tuner-core.c
@@ -608,13 +608,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... */