aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/media/video/tuner-core.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/media/video/tuner-core.c')
-rw-r--r--drivers/media/video/tuner-core.c23
1 files changed, 12 insertions, 11 deletions
diff --git a/drivers/media/video/tuner-core.c b/drivers/media/video/tuner-core.c
index 277d35106bde..40590bae5ff7 100644
--- a/drivers/media/video/tuner-core.c
+++ b/drivers/media/video/tuner-core.c
@@ -590,6 +590,7 @@ static int tuner_command(struct i2c_client *client, unsigned int cmd, void *arg)
590 if (t->standby) 590 if (t->standby)
591 t->standby (client); 591 t->standby (client);
592 break; 592 break;
593#ifdef CONFIG_VIDEO_V4L1
593 case VIDIOCSAUDIO: 594 case VIDIOCSAUDIO:
594 if (check_mode(t, "VIDIOCSAUDIO") == EINVAL) 595 if (check_mode(t, "VIDIOCSAUDIO") == EINVAL)
595 return 0; 596 return 0;
@@ -599,17 +600,6 @@ static int tuner_command(struct i2c_client *client, unsigned int cmd, void *arg)
599 /* Should be implemented, since bttv calls it */ 600 /* Should be implemented, since bttv calls it */
600 tuner_dbg("VIDIOCSAUDIO not implemented.\n"); 601 tuner_dbg("VIDIOCSAUDIO not implemented.\n");
601 break; 602 break;
602 case TDA9887_SET_CONFIG:
603 if (t->type == TUNER_TDA9887) {
604 int *i = arg;
605
606 t->tda9887_config = *i;
607 set_freq(client, t->tv_freq);
608 }
609 break;
610 /* --- v4l ioctls --- */
611 /* take care: bttv does userspace copying, we'll get a
612 kernel pointer here... */
613 case VIDIOCSCHAN: 603 case VIDIOCSCHAN:
614 { 604 {
615 static const v4l2_std_id map[] = { 605 static const v4l2_std_id map[] = {
@@ -693,7 +683,18 @@ static int tuner_command(struct i2c_client *client, unsigned int cmd, void *arg)
693 ? VIDEO_SOUND_STEREO : VIDEO_SOUND_MONO; 683 ? VIDEO_SOUND_STEREO : VIDEO_SOUND_MONO;
694 return 0; 684 return 0;
695 } 685 }
686#endif
687 case TDA9887_SET_CONFIG:
688 if (t->type == TUNER_TDA9887) {
689 int *i = arg;
696 690
691 t->tda9887_config = *i;
692 set_freq(client, t->tv_freq);
693 }
694 break;
695 /* --- v4l ioctls --- */
696 /* take care: bttv does userspace copying, we'll get a
697 kernel pointer here... */
697 case VIDIOC_S_STD: 698 case VIDIOC_S_STD:
698 { 699 {
699 v4l2_std_id *id = arg; 700 v4l2_std_id *id = arg;