summaryrefslogtreecommitdiff
path: root/linux/drivers/media/video/pvrusb2/pvrusb2-audio.c
diff options
context:
space:
mode:
authorHans Verkuil <hverkuil@xs4all.nl>2006-03-18 21:15:00 +0100
committerHans Verkuil <hverkuil@xs4all.nl>2006-03-18 21:15:00 +0100
commit22b9fe2c0f517b6adfe0c517f61d8c3605973cbc (patch)
tree3f0617cfd96849da851b4c8b9c87347e001b735b /linux/drivers/media/video/pvrusb2/pvrusb2-audio.c
parent2d0abb67a8d568f7bfd5ae1814cf1f34757237da (diff)
downloadmediapointer-dvb-s2-22b9fe2c0f517b6adfe0c517f61d8c3605973cbc.tar.gz
mediapointer-dvb-s2-22b9fe2c0f517b6adfe0c517f61d8c3605973cbc.tar.bz2
Implement V4L2_TUNER_MODE_LANG1_LANG2 audio mode
From: Hans Verkuil <hverkuil@xs4all.nl> 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>
Diffstat (limited to 'linux/drivers/media/video/pvrusb2/pvrusb2-audio.c')
-rw-r--r--linux/drivers/media/video/pvrusb2/pvrusb2-audio.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/linux/drivers/media/video/pvrusb2/pvrusb2-audio.c b/linux/drivers/media/video/pvrusb2/pvrusb2-audio.c
index 7e2fab330..ac798f4e0 100644
--- a/linux/drivers/media/video/pvrusb2/pvrusb2-audio.c
+++ b/linux/drivers/media/video/pvrusb2/pvrusb2-audio.c
@@ -66,6 +66,8 @@ static int xlat_audiomode_to_v4l2(int id)
return V4L2_TUNER_MODE_LANG1;
case PVR2_CVAL_AUDIOMODE_LANG2:
return V4L2_TUNER_MODE_LANG2;
+ case PVR2_CVAL_AUDIOMODE_LANG1_LANG2:
+ return V4L2_TUNER_MODE_LANG1_LANG2;
}
return V4L2_TUNER_MODE_STEREO;
}