diff options
author | Vinod Koul <vinod.koul@intel.com> | 2014-01-07 11:25:42 -0500 |
---|---|---|
committer | Takashi Iwai <tiwai@suse.de> | 2014-01-07 12:33:40 -0500 |
commit | 929559be6d2c494e25bb58b730da4a78c1459e7b (patch) | |
tree | a43659772ac5c5f2091b8345497b79d1e89b640a /include/uapi/sound/compress_params.h | |
parent | b8bab04829ab190f71921d4180bda438ba6124ae (diff) |
ALSA: compress: add num_sample_rates in snd_codec_desc
this gives ability to convey the valid values of supported rates in
sample_rates array
Signed-off-by: Vinod Koul <vinod.koul@intel.com>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
Diffstat (limited to 'include/uapi/sound/compress_params.h')
-rw-r--r-- | include/uapi/sound/compress_params.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/include/uapi/sound/compress_params.h b/include/uapi/sound/compress_params.h index b62b24b7f834..165e7059de75 100644 --- a/include/uapi/sound/compress_params.h +++ b/include/uapi/sound/compress_params.h | |||
@@ -326,6 +326,7 @@ union snd_codec_options { | |||
326 | /** struct snd_codec_desc - description of codec capabilities | 326 | /** struct snd_codec_desc - description of codec capabilities |
327 | * @max_ch: Maximum number of audio channels | 327 | * @max_ch: Maximum number of audio channels |
328 | * @sample_rates: Sampling rates in Hz, use values like 48000 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 | ||
329 | * @bit_rate: Indexed array containing supported bit rates | 330 | * @bit_rate: Indexed array containing supported bit rates |
330 | * @num_bitrates: Number of valid values in bit_rate array | 331 | * @num_bitrates: Number of valid values in bit_rate array |
331 | * @rate_control: value is specified by SND_RATECONTROLMODE defines. | 332 | * @rate_control: value is specified by SND_RATECONTROLMODE defines. |
@@ -348,6 +349,7 @@ union snd_codec_options { | |||
348 | struct snd_codec_desc { | 349 | struct snd_codec_desc { |
349 | __u32 max_ch; | 350 | __u32 max_ch; |
350 | __u32 sample_rates[MAX_NUM_SAMPLE_RATES]; | 351 | __u32 sample_rates[MAX_NUM_SAMPLE_RATES]; |
352 | __u32 num_sample_rates; | ||
351 | __u32 bit_rate[MAX_NUM_BITRATES]; | 353 | __u32 bit_rate[MAX_NUM_BITRATES]; |
352 | __u32 num_bitrates; | 354 | __u32 num_bitrates; |
353 | __u32 rate_control; | 355 | __u32 rate_control; |