122851890Sopenharmony_ci/****************************************************************************
222851890Sopenharmony_ci ****************************************************************************
322851890Sopenharmony_ci ***
422851890Sopenharmony_ci ***   This header was automatically generated from a Linux kernel header
522851890Sopenharmony_ci ***   of the same name, to make information necessary for userspace to
622851890Sopenharmony_ci ***   call into the kernel available to libc.  It contains only constants,
722851890Sopenharmony_ci ***   structures, and macros generated from the original header, and thus,
822851890Sopenharmony_ci ***   contains no copyrightable information.
922851890Sopenharmony_ci ***
1022851890Sopenharmony_ci ***   To edit the content of this header, modify the corresponding
1122851890Sopenharmony_ci ***   source file (e.g. under external/kernel-headers/original/) then
1222851890Sopenharmony_ci ***   run bionic/libc/kernel/tools/update_all.py
1322851890Sopenharmony_ci ***
1422851890Sopenharmony_ci ***   Any manual change here will be lost the next time this script will
1522851890Sopenharmony_ci ***   be run. You've been warned!
1622851890Sopenharmony_ci ***
1722851890Sopenharmony_ci ****************************************************************************
1822851890Sopenharmony_ci ****************************************************************************/
1922851890Sopenharmony_ci#ifndef __SND_COMPRESS_PARAMS_H
2022851890Sopenharmony_ci#define __SND_COMPRESS_PARAMS_H
2122851890Sopenharmony_ci#include <linux/types.h>
2222851890Sopenharmony_ci#define MAX_NUM_CODECS 32
2322851890Sopenharmony_ci#define MAX_NUM_CODEC_DESCRIPTORS 32
2422851890Sopenharmony_ci#define MAX_NUM_BITRATES 32
2522851890Sopenharmony_ci#define MAX_NUM_SAMPLE_RATES 32
2622851890Sopenharmony_ci#define SND_AUDIOCODEC_PCM ((__u32) 0x00000001)
2722851890Sopenharmony_ci#define SND_AUDIOCODEC_MP3 ((__u32) 0x00000002)
2822851890Sopenharmony_ci#define SND_AUDIOCODEC_AMR ((__u32) 0x00000003)
2922851890Sopenharmony_ci#define SND_AUDIOCODEC_AMRWB ((__u32) 0x00000004)
3022851890Sopenharmony_ci#define SND_AUDIOCODEC_AMRWBPLUS ((__u32) 0x00000005)
3122851890Sopenharmony_ci#define SND_AUDIOCODEC_AAC ((__u32) 0x00000006)
3222851890Sopenharmony_ci#define SND_AUDIOCODEC_WMA ((__u32) 0x00000007)
3322851890Sopenharmony_ci#define SND_AUDIOCODEC_REAL ((__u32) 0x00000008)
3422851890Sopenharmony_ci#define SND_AUDIOCODEC_VORBIS ((__u32) 0x00000009)
3522851890Sopenharmony_ci#define SND_AUDIOCODEC_FLAC ((__u32) 0x0000000A)
3622851890Sopenharmony_ci#define SND_AUDIOCODEC_IEC61937 ((__u32) 0x0000000B)
3722851890Sopenharmony_ci#define SND_AUDIOCODEC_G723_1 ((__u32) 0x0000000C)
3822851890Sopenharmony_ci#define SND_AUDIOCODEC_G729 ((__u32) 0x0000000D)
3922851890Sopenharmony_ci#define SND_AUDIOCODEC_BESPOKE ((__u32) 0x0000000E)
4022851890Sopenharmony_ci#define SND_AUDIOCODEC_ALAC ((__u32) 0x0000000F)
4122851890Sopenharmony_ci#define SND_AUDIOCODEC_APE ((__u32) 0x00000010)
4222851890Sopenharmony_ci#define SND_AUDIOCODEC_MAX SND_AUDIOCODEC_APE
4322851890Sopenharmony_ci#define SND_AUDIOPROFILE_PCM ((__u32) 0x00000001)
4422851890Sopenharmony_ci#define SND_AUDIOCHANMODE_MP3_MONO ((__u32) 0x00000001)
4522851890Sopenharmony_ci#define SND_AUDIOCHANMODE_MP3_STEREO ((__u32) 0x00000002)
4622851890Sopenharmony_ci#define SND_AUDIOCHANMODE_MP3_JOINTSTEREO ((__u32) 0x00000004)
4722851890Sopenharmony_ci#define SND_AUDIOCHANMODE_MP3_DUAL ((__u32) 0x00000008)
4822851890Sopenharmony_ci#define SND_AUDIOPROFILE_AMR ((__u32) 0x00000001)
4922851890Sopenharmony_ci#define SND_AUDIOMODE_AMR_DTX_OFF ((__u32) 0x00000001)
5022851890Sopenharmony_ci#define SND_AUDIOMODE_AMR_VAD1 ((__u32) 0x00000002)
5122851890Sopenharmony_ci#define SND_AUDIOMODE_AMR_VAD2 ((__u32) 0x00000004)
5222851890Sopenharmony_ci#define SND_AUDIOSTREAMFORMAT_UNDEFINED ((__u32) 0x00000000)
5322851890Sopenharmony_ci#define SND_AUDIOSTREAMFORMAT_CONFORMANCE ((__u32) 0x00000001)
5422851890Sopenharmony_ci#define SND_AUDIOSTREAMFORMAT_IF1 ((__u32) 0x00000002)
5522851890Sopenharmony_ci#define SND_AUDIOSTREAMFORMAT_IF2 ((__u32) 0x00000004)
5622851890Sopenharmony_ci#define SND_AUDIOSTREAMFORMAT_FSF ((__u32) 0x00000008)
5722851890Sopenharmony_ci#define SND_AUDIOSTREAMFORMAT_RTPPAYLOAD ((__u32) 0x00000010)
5822851890Sopenharmony_ci#define SND_AUDIOSTREAMFORMAT_ITU ((__u32) 0x00000020)
5922851890Sopenharmony_ci#define SND_AUDIOPROFILE_AMRWB ((__u32) 0x00000001)
6022851890Sopenharmony_ci#define SND_AUDIOMODE_AMRWB_DTX_OFF ((__u32) 0x00000001)
6122851890Sopenharmony_ci#define SND_AUDIOMODE_AMRWB_VAD1 ((__u32) 0x00000002)
6222851890Sopenharmony_ci#define SND_AUDIOMODE_AMRWB_VAD2 ((__u32) 0x00000004)
6322851890Sopenharmony_ci#define SND_AUDIOPROFILE_AMRWBPLUS ((__u32) 0x00000001)
6422851890Sopenharmony_ci#define SND_AUDIOPROFILE_AAC ((__u32) 0x00000001)
6522851890Sopenharmony_ci#define SND_AUDIOMODE_AAC_MAIN ((__u32) 0x00000001)
6622851890Sopenharmony_ci#define SND_AUDIOMODE_AAC_LC ((__u32) 0x00000002)
6722851890Sopenharmony_ci#define SND_AUDIOMODE_AAC_SSR ((__u32) 0x00000004)
6822851890Sopenharmony_ci#define SND_AUDIOMODE_AAC_LTP ((__u32) 0x00000008)
6922851890Sopenharmony_ci#define SND_AUDIOMODE_AAC_HE ((__u32) 0x00000010)
7022851890Sopenharmony_ci#define SND_AUDIOMODE_AAC_SCALABLE ((__u32) 0x00000020)
7122851890Sopenharmony_ci#define SND_AUDIOMODE_AAC_ERLC ((__u32) 0x00000040)
7222851890Sopenharmony_ci#define SND_AUDIOMODE_AAC_LD ((__u32) 0x00000080)
7322851890Sopenharmony_ci#define SND_AUDIOMODE_AAC_HE_PS ((__u32) 0x00000100)
7422851890Sopenharmony_ci#define SND_AUDIOMODE_AAC_HE_MPS ((__u32) 0x00000200)
7522851890Sopenharmony_ci#define SND_AUDIOSTREAMFORMAT_MP2ADTS ((__u32) 0x00000001)
7622851890Sopenharmony_ci#define SND_AUDIOSTREAMFORMAT_MP4ADTS ((__u32) 0x00000002)
7722851890Sopenharmony_ci#define SND_AUDIOSTREAMFORMAT_MP4LOAS ((__u32) 0x00000004)
7822851890Sopenharmony_ci#define SND_AUDIOSTREAMFORMAT_MP4LATM ((__u32) 0x00000008)
7922851890Sopenharmony_ci#define SND_AUDIOSTREAMFORMAT_ADIF ((__u32) 0x00000010)
8022851890Sopenharmony_ci#define SND_AUDIOSTREAMFORMAT_MP4FF ((__u32) 0x00000020)
8122851890Sopenharmony_ci#define SND_AUDIOSTREAMFORMAT_RAW ((__u32) 0x00000040)
8222851890Sopenharmony_ci#define SND_AUDIOPROFILE_WMA7 ((__u32) 0x00000001)
8322851890Sopenharmony_ci#define SND_AUDIOPROFILE_WMA8 ((__u32) 0x00000002)
8422851890Sopenharmony_ci#define SND_AUDIOPROFILE_WMA9 ((__u32) 0x00000004)
8522851890Sopenharmony_ci#define SND_AUDIOPROFILE_WMA10 ((__u32) 0x00000008)
8622851890Sopenharmony_ci#define SND_AUDIOPROFILE_WMA9_PRO ((__u32) 0x00000010)
8722851890Sopenharmony_ci#define SND_AUDIOPROFILE_WMA9_LOSSLESS ((__u32) 0x00000020)
8822851890Sopenharmony_ci#define SND_AUDIOPROFILE_WMA10_LOSSLESS ((__u32) 0x00000040)
8922851890Sopenharmony_ci#define SND_AUDIOMODE_WMA_LEVEL1 ((__u32) 0x00000001)
9022851890Sopenharmony_ci#define SND_AUDIOMODE_WMA_LEVEL2 ((__u32) 0x00000002)
9122851890Sopenharmony_ci#define SND_AUDIOMODE_WMA_LEVEL3 ((__u32) 0x00000004)
9222851890Sopenharmony_ci#define SND_AUDIOMODE_WMA_LEVEL4 ((__u32) 0x00000008)
9322851890Sopenharmony_ci#define SND_AUDIOMODE_WMAPRO_LEVELM0 ((__u32) 0x00000010)
9422851890Sopenharmony_ci#define SND_AUDIOMODE_WMAPRO_LEVELM1 ((__u32) 0x00000020)
9522851890Sopenharmony_ci#define SND_AUDIOMODE_WMAPRO_LEVELM2 ((__u32) 0x00000040)
9622851890Sopenharmony_ci#define SND_AUDIOMODE_WMAPRO_LEVELM3 ((__u32) 0x00000080)
9722851890Sopenharmony_ci#define SND_AUDIOSTREAMFORMAT_WMA_ASF ((__u32) 0x00000001)
9822851890Sopenharmony_ci#define SND_AUDIOSTREAMFORMAT_WMA_NOASF_HDR ((__u32) 0x00000002)
9922851890Sopenharmony_ci#define SND_AUDIOPROFILE_REALAUDIO ((__u32) 0x00000001)
10022851890Sopenharmony_ci#define SND_AUDIOMODE_REALAUDIO_G2 ((__u32) 0x00000001)
10122851890Sopenharmony_ci#define SND_AUDIOMODE_REALAUDIO_8 ((__u32) 0x00000002)
10222851890Sopenharmony_ci#define SND_AUDIOMODE_REALAUDIO_10 ((__u32) 0x00000004)
10322851890Sopenharmony_ci#define SND_AUDIOMODE_REALAUDIO_SURROUND ((__u32) 0x00000008)
10422851890Sopenharmony_ci#define SND_AUDIOPROFILE_VORBIS ((__u32) 0x00000001)
10522851890Sopenharmony_ci#define SND_AUDIOMODE_VORBIS ((__u32) 0x00000001)
10622851890Sopenharmony_ci#define SND_AUDIOPROFILE_FLAC ((__u32) 0x00000001)
10722851890Sopenharmony_ci#define SND_AUDIOMODE_FLAC_LEVEL0 ((__u32) 0x00000001)
10822851890Sopenharmony_ci#define SND_AUDIOMODE_FLAC_LEVEL1 ((__u32) 0x00000002)
10922851890Sopenharmony_ci#define SND_AUDIOMODE_FLAC_LEVEL2 ((__u32) 0x00000004)
11022851890Sopenharmony_ci#define SND_AUDIOMODE_FLAC_LEVEL3 ((__u32) 0x00000008)
11122851890Sopenharmony_ci#define SND_AUDIOMODE_FLAC_LEVEL4 ((__u32) 0x00000010)
11222851890Sopenharmony_ci#define SND_AUDIOMODE_FLAC_LEVEL5 ((__u32) 0x00000020)
11322851890Sopenharmony_ci#define SND_AUDIOMODE_FLAC_LEVEL6 ((__u32) 0x00000040)
11422851890Sopenharmony_ci#define SND_AUDIOMODE_FLAC_LEVEL7 ((__u32) 0x00000080)
11522851890Sopenharmony_ci#define SND_AUDIOMODE_FLAC_LEVEL8 ((__u32) 0x00000100)
11622851890Sopenharmony_ci#define SND_AUDIOSTREAMFORMAT_FLAC ((__u32) 0x00000001)
11722851890Sopenharmony_ci#define SND_AUDIOSTREAMFORMAT_FLAC_OGG ((__u32) 0x00000002)
11822851890Sopenharmony_ci#define SND_AUDIOPROFILE_IEC61937 ((__u32) 0x00000001)
11922851890Sopenharmony_ci#define SND_AUDIOPROFILE_IEC61937_SPDIF ((__u32) 0x00000002)
12022851890Sopenharmony_ci#define SND_AUDIOMODE_IEC_REF_STREAM_HEADER ((__u32) 0x00000000)
12122851890Sopenharmony_ci#define SND_AUDIOMODE_IEC_LPCM ((__u32) 0x00000001)
12222851890Sopenharmony_ci#define SND_AUDIOMODE_IEC_AC3 ((__u32) 0x00000002)
12322851890Sopenharmony_ci#define SND_AUDIOMODE_IEC_MPEG1 ((__u32) 0x00000004)
12422851890Sopenharmony_ci#define SND_AUDIOMODE_IEC_MP3 ((__u32) 0x00000008)
12522851890Sopenharmony_ci#define SND_AUDIOMODE_IEC_MPEG2 ((__u32) 0x00000010)
12622851890Sopenharmony_ci#define SND_AUDIOMODE_IEC_AACLC ((__u32) 0x00000020)
12722851890Sopenharmony_ci#define SND_AUDIOMODE_IEC_DTS ((__u32) 0x00000040)
12822851890Sopenharmony_ci#define SND_AUDIOMODE_IEC_ATRAC ((__u32) 0x00000080)
12922851890Sopenharmony_ci#define SND_AUDIOMODE_IEC_SACD ((__u32) 0x00000100)
13022851890Sopenharmony_ci#define SND_AUDIOMODE_IEC_EAC3 ((__u32) 0x00000200)
13122851890Sopenharmony_ci#define SND_AUDIOMODE_IEC_DTS_HD ((__u32) 0x00000400)
13222851890Sopenharmony_ci#define SND_AUDIOMODE_IEC_MLP ((__u32) 0x00000800)
13322851890Sopenharmony_ci#define SND_AUDIOMODE_IEC_DST ((__u32) 0x00001000)
13422851890Sopenharmony_ci#define SND_AUDIOMODE_IEC_WMAPRO ((__u32) 0x00002000)
13522851890Sopenharmony_ci#define SND_AUDIOMODE_IEC_REF_CXT ((__u32) 0x00004000)
13622851890Sopenharmony_ci#define SND_AUDIOMODE_IEC_HE_AAC ((__u32) 0x00008000)
13722851890Sopenharmony_ci#define SND_AUDIOMODE_IEC_HE_AAC2 ((__u32) 0x00010000)
13822851890Sopenharmony_ci#define SND_AUDIOMODE_IEC_MPEG_SURROUND ((__u32) 0x00020000)
13922851890Sopenharmony_ci#define SND_AUDIOPROFILE_G723_1 ((__u32) 0x00000001)
14022851890Sopenharmony_ci#define SND_AUDIOMODE_G723_1_ANNEX_A ((__u32) 0x00000001)
14122851890Sopenharmony_ci#define SND_AUDIOMODE_G723_1_ANNEX_B ((__u32) 0x00000002)
14222851890Sopenharmony_ci#define SND_AUDIOMODE_G723_1_ANNEX_C ((__u32) 0x00000004)
14322851890Sopenharmony_ci#define SND_AUDIOPROFILE_G729 ((__u32) 0x00000001)
14422851890Sopenharmony_ci#define SND_AUDIOMODE_G729_ANNEX_A ((__u32) 0x00000001)
14522851890Sopenharmony_ci#define SND_AUDIOMODE_G729_ANNEX_B ((__u32) 0x00000002)
14622851890Sopenharmony_ci#define SND_RATECONTROLMODE_CONSTANTBITRATE ((__u32) 0x00000001)
14722851890Sopenharmony_ci#define SND_RATECONTROLMODE_VARIABLEBITRATE ((__u32) 0x00000002)
14822851890Sopenharmony_cistruct snd_enc_wma {
14922851890Sopenharmony_ci  __u32 super_block_align;
15022851890Sopenharmony_ci};
15122851890Sopenharmony_cistruct snd_enc_vorbis {
15222851890Sopenharmony_ci  __s32 quality;
15322851890Sopenharmony_ci  __u32 managed;
15422851890Sopenharmony_ci  __u32 max_bit_rate;
15522851890Sopenharmony_ci  __u32 min_bit_rate;
15622851890Sopenharmony_ci  __u32 downmix;
15722851890Sopenharmony_ci} __attribute__((packed, aligned(4)));
15822851890Sopenharmony_cistruct snd_enc_real {
15922851890Sopenharmony_ci  __u32 quant_bits;
16022851890Sopenharmony_ci  __u32 start_region;
16122851890Sopenharmony_ci  __u32 num_regions;
16222851890Sopenharmony_ci} __attribute__((packed, aligned(4)));
16322851890Sopenharmony_cistruct snd_enc_flac {
16422851890Sopenharmony_ci  __u32 num;
16522851890Sopenharmony_ci  __u32 gain;
16622851890Sopenharmony_ci} __attribute__((packed, aligned(4)));
16722851890Sopenharmony_cistruct snd_enc_generic {
16822851890Sopenharmony_ci  __u32 bw;
16922851890Sopenharmony_ci  __s32 reserved[15];
17022851890Sopenharmony_ci} __attribute__((packed, aligned(4)));
17122851890Sopenharmony_cistruct snd_dec_flac {
17222851890Sopenharmony_ci  __u16 sample_size;
17322851890Sopenharmony_ci  __u16 min_blk_size;
17422851890Sopenharmony_ci  __u16 max_blk_size;
17522851890Sopenharmony_ci  __u16 min_frame_size;
17622851890Sopenharmony_ci  __u16 max_frame_size;
17722851890Sopenharmony_ci  __u16 reserved;
17822851890Sopenharmony_ci} __attribute__((packed, aligned(4)));
17922851890Sopenharmony_cistruct snd_dec_wma {
18022851890Sopenharmony_ci  __u32 encoder_option;
18122851890Sopenharmony_ci  __u32 adv_encoder_option;
18222851890Sopenharmony_ci  __u32 adv_encoder_option2;
18322851890Sopenharmony_ci  __u32 reserved;
18422851890Sopenharmony_ci} __attribute__((packed, aligned(4)));
18522851890Sopenharmony_cistruct snd_dec_alac {
18622851890Sopenharmony_ci  __u32 frame_length;
18722851890Sopenharmony_ci  __u8 compatible_version;
18822851890Sopenharmony_ci  __u8 pb;
18922851890Sopenharmony_ci  __u8 mb;
19022851890Sopenharmony_ci  __u8 kb;
19122851890Sopenharmony_ci  __u32 max_run;
19222851890Sopenharmony_ci  __u32 max_frame_bytes;
19322851890Sopenharmony_ci} __attribute__((packed, aligned(4)));
19422851890Sopenharmony_cistruct snd_dec_ape {
19522851890Sopenharmony_ci  __u16 compatible_version;
19622851890Sopenharmony_ci  __u16 compression_level;
19722851890Sopenharmony_ci  __u32 format_flags;
19822851890Sopenharmony_ci  __u32 blocks_per_frame;
19922851890Sopenharmony_ci  __u32 final_frame_blocks;
20022851890Sopenharmony_ci  __u32 total_frames;
20122851890Sopenharmony_ci  __u32 seek_table_present;
20222851890Sopenharmony_ci} __attribute__((packed, aligned(4)));
20322851890Sopenharmony_ciunion snd_codec_options {
20422851890Sopenharmony_ci  struct snd_enc_wma wma;
20522851890Sopenharmony_ci  struct snd_enc_vorbis vorbis;
20622851890Sopenharmony_ci  struct snd_enc_real real;
20722851890Sopenharmony_ci  struct snd_enc_flac flac;
20822851890Sopenharmony_ci  struct snd_enc_generic generic;
20922851890Sopenharmony_ci  struct snd_dec_flac flac_d;
21022851890Sopenharmony_ci  struct snd_dec_wma wma_d;
21122851890Sopenharmony_ci  struct snd_dec_alac alac_d;
21222851890Sopenharmony_ci  struct snd_dec_ape ape_d;
21322851890Sopenharmony_ci} __attribute__((packed, aligned(4)));
21422851890Sopenharmony_cistruct snd_codec_desc {
21522851890Sopenharmony_ci  __u32 max_ch;
21622851890Sopenharmony_ci  __u32 sample_rates[MAX_NUM_SAMPLE_RATES];
21722851890Sopenharmony_ci  __u32 num_sample_rates;
21822851890Sopenharmony_ci  __u32 bit_rate[MAX_NUM_BITRATES];
21922851890Sopenharmony_ci  __u32 num_bitrates;
22022851890Sopenharmony_ci  __u32 rate_control;
22122851890Sopenharmony_ci  __u32 profiles;
22222851890Sopenharmony_ci  __u32 modes;
22322851890Sopenharmony_ci  __u32 formats;
22422851890Sopenharmony_ci  __u32 min_buffer;
22522851890Sopenharmony_ci  __u32 reserved[15];
22622851890Sopenharmony_ci} __attribute__((packed, aligned(4)));
22722851890Sopenharmony_cistruct snd_codec {
22822851890Sopenharmony_ci  __u32 id;
22922851890Sopenharmony_ci  __u32 ch_in;
23022851890Sopenharmony_ci  __u32 ch_out;
23122851890Sopenharmony_ci  __u32 sample_rate;
23222851890Sopenharmony_ci  __u32 bit_rate;
23322851890Sopenharmony_ci  __u32 rate_control;
23422851890Sopenharmony_ci  __u32 profile;
23522851890Sopenharmony_ci  __u32 level;
23622851890Sopenharmony_ci  __u32 ch_mode;
23722851890Sopenharmony_ci  __u32 format;
23822851890Sopenharmony_ci  __u32 align;
23922851890Sopenharmony_ci  union snd_codec_options options;
24022851890Sopenharmony_ci  __u32 reserved[3];
24122851890Sopenharmony_ci} __attribute__((packed, aligned(4)));
24222851890Sopenharmony_ci#endif
243