aboutsummaryrefslogtreecommitdiffstats
path: root/include/linux/videodev2.h
diff options
context:
space:
mode:
authorHans Verkuil <hverkuil@xs4all.nl>2008-08-08 06:38:07 -0400
committerMauro Carvalho Chehab <mchehab@redhat.com>2008-10-12 07:36:48 -0400
commite6b5da88fb24c5c1e52707faea7c46df09da42f0 (patch)
tree0ddf04f57c6c1c4da9d986d66f2869250d93a0a5 /include/linux/videodev2.h
parent188919ac57810e39138749338d5a33ba1e970e23 (diff)
V4L/DVB (8635): v4l: add AC-3 audio support to the MPEG Encoding API
Some models of the saa6752hs support AC-3. Extend the API with the necessary controls for AC-3. Signed-off-by: Hans Verkuil <hverkuil@xs4all.nl> Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
Diffstat (limited to 'include/linux/videodev2.h')
-rw-r--r--include/linux/videodev2.h23
1 files changed, 23 insertions, 0 deletions
diff --git a/include/linux/videodev2.h b/include/linux/videodev2.h
index 350aba2714fc..9054764f4cde 100644
--- a/include/linux/videodev2.h
+++ b/include/linux/videodev2.h
@@ -911,6 +911,7 @@ enum v4l2_mpeg_audio_encoding {
911 V4L2_MPEG_AUDIO_ENCODING_LAYER_2 = 1, 911 V4L2_MPEG_AUDIO_ENCODING_LAYER_2 = 1,
912 V4L2_MPEG_AUDIO_ENCODING_LAYER_3 = 2, 912 V4L2_MPEG_AUDIO_ENCODING_LAYER_3 = 2,
913 V4L2_MPEG_AUDIO_ENCODING_AAC = 3, 913 V4L2_MPEG_AUDIO_ENCODING_AAC = 3,
914 V4L2_MPEG_AUDIO_ENCODING_AC3 = 4,
914}; 915};
915#define V4L2_CID_MPEG_AUDIO_L1_BITRATE (V4L2_CID_MPEG_BASE+102) 916#define V4L2_CID_MPEG_AUDIO_L1_BITRATE (V4L2_CID_MPEG_BASE+102)
916enum v4l2_mpeg_audio_l1_bitrate { 917enum v4l2_mpeg_audio_l1_bitrate {
@@ -989,6 +990,28 @@ enum v4l2_mpeg_audio_crc {
989 V4L2_MPEG_AUDIO_CRC_CRC16 = 1, 990 V4L2_MPEG_AUDIO_CRC_CRC16 = 1,
990}; 991};
991#define V4L2_CID_MPEG_AUDIO_MUTE (V4L2_CID_MPEG_BASE+109) 992#define V4L2_CID_MPEG_AUDIO_MUTE (V4L2_CID_MPEG_BASE+109)
993#define V4L2_CID_MPEG_AUDIO_AC3_BITRATE (V4L2_CID_MPEG_BASE+110)
994enum v4l2_mpeg_audio_ac3_bitrate {
995 V4L2_MPEG_AUDIO_AC3_BITRATE_32K = 0,
996 V4L2_MPEG_AUDIO_AC3_BITRATE_40K = 1,
997 V4L2_MPEG_AUDIO_AC3_BITRATE_48K = 2,
998 V4L2_MPEG_AUDIO_AC3_BITRATE_56K = 3,
999 V4L2_MPEG_AUDIO_AC3_BITRATE_64K = 4,
1000 V4L2_MPEG_AUDIO_AC3_BITRATE_80K = 5,
1001 V4L2_MPEG_AUDIO_AC3_BITRATE_96K = 6,
1002 V4L2_MPEG_AUDIO_AC3_BITRATE_112K = 7,
1003 V4L2_MPEG_AUDIO_AC3_BITRATE_128K = 8,
1004 V4L2_MPEG_AUDIO_AC3_BITRATE_160K = 9,
1005 V4L2_MPEG_AUDIO_AC3_BITRATE_192K = 10,
1006 V4L2_MPEG_AUDIO_AC3_BITRATE_224K = 11,
1007 V4L2_MPEG_AUDIO_AC3_BITRATE_256K = 12,
1008 V4L2_MPEG_AUDIO_AC3_BITRATE_320K = 13,
1009 V4L2_MPEG_AUDIO_AC3_BITRATE_384K = 14,
1010 V4L2_MPEG_AUDIO_AC3_BITRATE_448K = 15,
1011 V4L2_MPEG_AUDIO_AC3_BITRATE_512K = 16,
1012 V4L2_MPEG_AUDIO_AC3_BITRATE_576K = 17,
1013 V4L2_MPEG_AUDIO_AC3_BITRATE_640K = 18,
1014};
992 1015
993/* MPEG video */ 1016/* MPEG video */
994#define V4L2_CID_MPEG_VIDEO_ENCODING (V4L2_CID_MPEG_BASE+200) 1017#define V4L2_CID_MPEG_VIDEO_ENCODING (V4L2_CID_MPEG_BASE+200)