diff options
author | Hans Verkuil <hverkuil@xs4all.nl> | 2006-03-18 15:15:00 -0500 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab@infradead.org> | 2006-03-24 14:26:58 -0500 |
commit | 301e22d69140898eddd38a9134da711cb5dfc170 (patch) | |
tree | 27a7d8df45f703a30cc983829e427d803a297d86 /drivers/media/video/bt8xx | |
parent | 2474ed444b475614ef795523076be7cc8437ae00 (diff) |
V4L/DVB (3584): Implement V4L2_TUNER_MODE_LANG1_LANG2 audio mode
Add a new audio mode V4L2_TUNER_MODE_LANG1_LANG2 (used by VIDIOC_G/S_TUNER).
This mode allows the user to select both languages of a bilingual transmission,
one language on the left, one on the right audio channel. If there is no
bilingual transmission, or it is not supported, then this mode should act like
V4L2_TUNER_MODE_STEREO.
This mode is introduced for PVR-like drivers where it is useful to be able to
record both languages of a bilingual broadcast.
Signed-off-by: Hans Verkuil <hverkuil@xs4all.nl>
Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
Diffstat (limited to 'drivers/media/video/bt8xx')
-rw-r--r-- | drivers/media/video/bt8xx/bttv-driver.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/media/video/bt8xx/bttv-driver.c b/drivers/media/video/bt8xx/bttv-driver.c index 80e4a7406ac2..74def9c23952 100644 --- a/drivers/media/video/bt8xx/bttv-driver.c +++ b/drivers/media/video/bt8xx/bttv-driver.c | |||
@@ -1878,7 +1878,8 @@ static int bttv_common_ioctls(struct bttv *btv, unsigned int cmd, void *arg) | |||
1878 | bttv_call_i2c_clients(btv, VIDIOCGAUDIO, &va); | 1878 | bttv_call_i2c_clients(btv, VIDIOCGAUDIO, &va); |
1879 | if (t->audmode == V4L2_TUNER_MODE_MONO) | 1879 | if (t->audmode == V4L2_TUNER_MODE_MONO) |
1880 | va.mode = VIDEO_SOUND_MONO; | 1880 | va.mode = VIDEO_SOUND_MONO; |
1881 | else if (t->audmode == V4L2_TUNER_MODE_STEREO) | 1881 | else if (t->audmode == V4L2_TUNER_MODE_STEREO || |
1882 | t->audmode == V4L2_TUNER_MODE_LANG1_LANG2) | ||
1882 | va.mode = VIDEO_SOUND_STEREO; | 1883 | va.mode = VIDEO_SOUND_STEREO; |
1883 | else if (t->audmode == V4L2_TUNER_MODE_LANG1) | 1884 | else if (t->audmode == V4L2_TUNER_MODE_LANG1) |
1884 | va.mode = VIDEO_SOUND_LANG1; | 1885 | va.mode = VIDEO_SOUND_LANG1; |