projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
c5e768a
)
V4L/DVB (4281): TDA9887_SET_CONFIG should only be handled by the tda9887.
author
Hans Verkuil
<
[email protected]
>
Thu, 29 Jun 2006 19:30:51 +0000
(16:30 -0300)
committer
Mauro Carvalho Chehab
<
[email protected]
>
Fri, 30 Jun 2006 18:59:42 +0000
(15:59 -0300)
Signed-off-by: Hans Verkuil <
[email protected]
>
Signed-off-by: Mauro Carvalho Chehab <
[email protected]
>
drivers/media/video/tuner-core.c
patch
|
blob
|
history
diff --git
a/drivers/media/video/tuner-core.c
b/drivers/media/video/tuner-core.c
index 7f7d5e355bb7ded030a69dd0b2d3fb0685dfdc85..f7eb402d5f2b0254af18639e93b27f6a167967fd 100644
(file)
--- 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... */