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/cx88/cx88-tvaudio.c | |
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/cx88/cx88-tvaudio.c')
-rw-r--r-- | drivers/media/video/cx88/cx88-tvaudio.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/drivers/media/video/cx88/cx88-tvaudio.c b/drivers/media/video/cx88/cx88-tvaudio.c index da8d97ce0c4b..641a0c5a6490 100644 --- a/drivers/media/video/cx88/cx88-tvaudio.c +++ b/drivers/media/video/cx88/cx88-tvaudio.c | |||
@@ -885,6 +885,7 @@ void cx88_set_stereo(struct cx88_core *core, u32 mode, int manual) | |||
885 | set_audio_standard_BTSC(core, 1, EN_BTSC_FORCE_SAP); | 885 | set_audio_standard_BTSC(core, 1, EN_BTSC_FORCE_SAP); |
886 | break; | 886 | break; |
887 | case V4L2_TUNER_MODE_STEREO: | 887 | case V4L2_TUNER_MODE_STEREO: |
888 | case V4L2_TUNER_MODE_LANG1_LANG2: | ||
888 | set_audio_standard_BTSC(core, 0, EN_BTSC_FORCE_STEREO); | 889 | set_audio_standard_BTSC(core, 0, EN_BTSC_FORCE_STEREO); |
889 | break; | 890 | break; |
890 | } | 891 | } |
@@ -905,6 +906,7 @@ void cx88_set_stereo(struct cx88_core *core, u32 mode, int manual) | |||
905 | EN_NICAM_FORCE_MONO2); | 906 | EN_NICAM_FORCE_MONO2); |
906 | break; | 907 | break; |
907 | case V4L2_TUNER_MODE_STEREO: | 908 | case V4L2_TUNER_MODE_STEREO: |
909 | case V4L2_TUNER_MODE_LANG1_LANG2: | ||
908 | set_audio_standard_NICAM(core, | 910 | set_audio_standard_NICAM(core, |
909 | EN_NICAM_FORCE_STEREO); | 911 | EN_NICAM_FORCE_STEREO); |
910 | break; | 912 | break; |
@@ -926,6 +928,7 @@ void cx88_set_stereo(struct cx88_core *core, u32 mode, int manual) | |||
926 | EN_A2_FORCE_MONO2); | 928 | EN_A2_FORCE_MONO2); |
927 | break; | 929 | break; |
928 | case V4L2_TUNER_MODE_STEREO: | 930 | case V4L2_TUNER_MODE_STEREO: |
931 | case V4L2_TUNER_MODE_LANG1_LANG2: | ||
929 | set_audio_standard_A2(core, | 932 | set_audio_standard_A2(core, |
930 | EN_A2_FORCE_STEREO); | 933 | EN_A2_FORCE_STEREO); |
931 | break; | 934 | break; |