summaryrefslogtreecommitdiff
path: root/linux/drivers
diff options
context:
space:
mode:
authorMauro Carvalho Chehab <devnull@localhost>2005-06-19 14:41:59 +0000
committerMauro Carvalho Chehab <devnull@localhost>2005-06-19 14:41:59 +0000
commitae64b61bce4b4ca9ea9a47c089c0ff0773a8430f (patch)
treebaa2c5f3bc716f9928a60b9d5f2314d9b04cf593 /linux/drivers
parentb792908788efb1cfae140173d28d9cf8ce536aa7 (diff)
downloadmediapointer-dvb-s2-ae64b61bce4b4ca9ea9a47c089c0ff0773a8430f.tar.gz
mediapointer-dvb-s2-ae64b61bce4b4ca9ea9a47c089c0ff0773a8430f.tar.bz2
* tuner.h, tuner-core.c:
- Implemented tuner-core support for VIDIO_S_TUNER - It can be used by changing mono/stereo mode
Diffstat (limited to 'linux/drivers')
-rw-r--r--linux/drivers/media/video/tuner-core.c22
1 files changed, 21 insertions, 1 deletions
diff --git a/linux/drivers/media/video/tuner-core.c b/linux/drivers/media/video/tuner-core.c
index 15a8b8109..e92053f27 100644
--- a/linux/drivers/media/video/tuner-core.c
+++ b/linux/drivers/media/video/tuner-core.c
@@ -1,5 +1,5 @@
/*
- * $Id: tuner-core.c,v 1.21 2005/06/18 06:00:36 nsh Exp $
+ * $Id: tuner-core.c,v 1.22 2005/06/19 14:41:59 mchehab Exp $
*
* i2c tv tuner chip device driver
* core core, i.e. kernel interfaces, registering and so on
@@ -508,6 +508,26 @@ tuner_command(struct i2c_client *client, unsigned int cmd, void *arg)
}
break;
}
+ case VIDIOC_S_TUNER: /* Allow changing radio range and audio mode */
+ {
+ struct v4l2_tuner *tuner = arg;
+
+ /* To switch the audio mode, applications initialize the
+ index and audmode fields and the reserved array and
+ call the VIDIOC_S_TUNER ioctl. */
+ /* rxsubchannels: V4L2_TUNER_MODE_MONO, V4L2_TUNER_MODE_STEREO,
+ V4L2_TUNER_MODE_LANG1, V4L2_TUNER_MODE_LANG2,
+ V4L2_TUNER_MODE_SAP */
+
+ if (t->set_tuner) {
+ t->set_tuner(client,tuner);
+ } else {
+ tuner_dbg ("Unimplemented IOCTL VIDIO_S_TUNER called to tuner-core.\n");
+ }
+ break;
+ }
+ case TDA9887_SET_CONFIG: /* Nothing to do on tuner-core */
+ break;
default:
tuner_dbg ("Unimplemented IOCTL 0x%08x called to tuner.\n", cmd);
/* nothing */