diff options
Diffstat (limited to 'include/uapi/sound/compress_params.h')
-rw-r--r-- | include/uapi/sound/compress_params.h | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/include/uapi/sound/compress_params.h b/include/uapi/sound/compress_params.h index 602dc6c45d1a..165e7059de75 100644 --- a/include/uapi/sound/compress_params.h +++ b/include/uapi/sound/compress_params.h | |||
@@ -57,6 +57,7 @@ | |||
57 | #define MAX_NUM_CODECS 32 | 57 | #define MAX_NUM_CODECS 32 |
58 | #define MAX_NUM_CODEC_DESCRIPTORS 32 | 58 | #define MAX_NUM_CODEC_DESCRIPTORS 32 |
59 | #define MAX_NUM_BITRATES 32 | 59 | #define MAX_NUM_BITRATES 32 |
60 | #define MAX_NUM_SAMPLE_RATES 32 | ||
60 | 61 | ||
61 | /* Codecs are listed linearly to allow for extensibility */ | 62 | /* Codecs are listed linearly to allow for extensibility */ |
62 | #define SND_AUDIOCODEC_PCM ((__u32) 0x00000001) | 63 | #define SND_AUDIOCODEC_PCM ((__u32) 0x00000001) |
@@ -324,7 +325,8 @@ union snd_codec_options { | |||
324 | 325 | ||
325 | /** struct snd_codec_desc - description of codec capabilities | 326 | /** struct snd_codec_desc - description of codec capabilities |
326 | * @max_ch: Maximum number of audio channels | 327 | * @max_ch: Maximum number of audio channels |
327 | * @sample_rates: Sampling rates in Hz, use SNDRV_PCM_RATE_xxx for this | 328 | * @sample_rates: Sampling rates in Hz, use values like 48000 for this |
329 | * @num_sample_rates: Number of valid values in sample_rates array | ||
328 | * @bit_rate: Indexed array containing supported bit rates | 330 | * @bit_rate: Indexed array containing supported bit rates |
329 | * @num_bitrates: Number of valid values in bit_rate array | 331 | * @num_bitrates: Number of valid values in bit_rate array |
330 | * @rate_control: value is specified by SND_RATECONTROLMODE defines. | 332 | * @rate_control: value is specified by SND_RATECONTROLMODE defines. |
@@ -346,7 +348,8 @@ union snd_codec_options { | |||
346 | 348 | ||
347 | struct snd_codec_desc { | 349 | struct snd_codec_desc { |
348 | __u32 max_ch; | 350 | __u32 max_ch; |
349 | __u32 sample_rates; | 351 | __u32 sample_rates[MAX_NUM_SAMPLE_RATES]; |
352 | __u32 num_sample_rates; | ||
350 | __u32 bit_rate[MAX_NUM_BITRATES]; | 353 | __u32 bit_rate[MAX_NUM_BITRATES]; |
351 | __u32 num_bitrates; | 354 | __u32 num_bitrates; |
352 | __u32 rate_control; | 355 | __u32 rate_control; |
@@ -364,7 +367,8 @@ struct snd_codec_desc { | |||
364 | * @ch_out: Number of output channels. In case of contradiction between | 367 | * @ch_out: Number of output channels. In case of contradiction between |
365 | * this field and the channelMode field, the channelMode field | 368 | * this field and the channelMode field, the channelMode field |
366 | * overrides. | 369 | * overrides. |
367 | * @sample_rate: Audio sample rate of input data | 370 | * @sample_rate: Audio sample rate of input data in Hz, use values like 48000 |
371 | * for this. | ||
368 | * @bit_rate: Bitrate of encoded data. May be ignored by decoders | 372 | * @bit_rate: Bitrate of encoded data. May be ignored by decoders |
369 | * @rate_control: Encoding rate control. See SND_RATECONTROLMODE defines. | 373 | * @rate_control: Encoding rate control. See SND_RATECONTROLMODE defines. |
370 | * Encoders may rely on profiles for quality levels. | 374 | * Encoders may rely on profiles for quality levels. |