diff options
author | Nickolay V. Shmyrev <devnull@localhost> | 2005-06-07 19:00:38 +0000 |
---|---|---|
committer | Nickolay V. Shmyrev <devnull@localhost> | 2005-06-07 19:00:38 +0000 |
commit | 485f4e1273975db215020e66f48ade712d02b7cf (patch) | |
tree | 427c29958d299607707d635de41f76efb9f7c654 /linux/drivers/media/video/v4l1-compat.c | |
parent | c4ed9d569305b7b10295530e43326295105ad94b (diff) | |
download | mediapointer-dvb-s2-485f4e1273975db215020e66f48ade712d02b7cf.tar.gz mediapointer-dvb-s2-485f4e1273975db215020e66f48ade712d02b7cf.tar.bz2 |
Make stereo/mono settings available for applications. Some improvements
for MK3 tuners. Now tda9887 has stereo setting by default
Diffstat (limited to 'linux/drivers/media/video/v4l1-compat.c')
-rw-r--r-- | linux/drivers/media/video/v4l1-compat.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/linux/drivers/media/video/v4l1-compat.c b/linux/drivers/media/video/v4l1-compat.c index 871b5673f..b4719ddca 100644 --- a/linux/drivers/media/video/v4l1-compat.c +++ b/linux/drivers/media/video/v4l1-compat.c @@ -796,12 +796,15 @@ v4l_compat_translate_ioctl(struct inode *inode, !(qctrl2.flags & V4L2_CTRL_FLAG_DISABLED)) aud->step = qctrl2.step; aud->mode = 0; + + memset(&tun2,0,sizeof(tun2)); err = drv(inode, file, VIDIOC_G_TUNER, &tun2); if (err < 0) { dprintk("VIDIOCGAUDIO / VIDIOC_G_TUNER: %d\n",err); err = 0; break; } + if (tun2.rxsubchans & V4L2_TUNER_SUB_LANG2) aud->mode = VIDEO_SOUND_LANG1 | VIDEO_SOUND_LANG2; else if (tun2.rxsubchans & V4L2_TUNER_SUB_STEREO) |