diff options
author | Vinod Koul <vinod.koul@intel.com> | 2014-01-04 06:29:13 -0500 |
---|---|---|
committer | Takashi Iwai <tiwai@suse.de> | 2014-01-05 05:58:27 -0500 |
commit | b8bab04829ab190f71921d4180bda438ba6124ae (patch) | |
tree | d0d66c958b276597fcad450be0966e4329c63ab3 | |
parent | d9afee6904caa7cf3c7f417f02e765db89d2b5dc (diff) |
ALSA: compress: update struct snd_codec_desc for sample rate
Now that we don't use SNDRV_PCM_RATE_xxx bit fields for sample rate, we need to
change the description to an array for describing the sample rates supported by
the sink/source
Signed-off-by: Vinod Koul <vinod.koul@intel.com>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
-rw-r--r-- | include/uapi/sound/compress_params.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/include/uapi/sound/compress_params.h b/include/uapi/sound/compress_params.h index 8c23aebc82a5..b62b24b7f834 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) |
@@ -346,7 +347,7 @@ union snd_codec_options { | |||
346 | 347 | ||
347 | struct snd_codec_desc { | 348 | struct snd_codec_desc { |
348 | __u32 max_ch; | 349 | __u32 max_ch; |
349 | __u32 sample_rates; | 350 | __u32 sample_rates[MAX_NUM_SAMPLE_RATES]; |
350 | __u32 bit_rate[MAX_NUM_BITRATES]; | 351 | __u32 bit_rate[MAX_NUM_BITRATES]; |
351 | __u32 num_bitrates; | 352 | __u32 num_bitrates; |
352 | __u32 rate_control; | 353 | __u32 rate_control; |