]> git.alsa-project.org Git - tinycompress.git/commitdiff
tinycompress: update compress headers for sample rate field
authorVinod Koul <vinod.koul@intel.com>
Thu, 19 Jun 2014 09:27:59 +0000 (14:57 +0530)
committerVinod Koul <vinod.koul@intel.com>
Thu, 19 Jun 2014 09:27:59 +0000 (14:57 +0530)
commit "929559b: ALSA: compress: add num_sample_rates in snd_codec_desc" adds
array for passing sample rate instead of bit map. Update the local header as
well

Signed-off-by: Vinod Koul <vinod.koul@intel.com>
include/sound/compress_params.h

index deda425a8d5d55dc8af87f70821e7c92f2cee1d8..378417a3c7b242a0227ff224338af43566fce9cd 100644 (file)
@@ -23,6 +23,7 @@
 #define MAX_NUM_CODECS 32
 #define MAX_NUM_CODEC_DESCRIPTORS 32
 #define MAX_NUM_BITRATES 32
+#define MAX_NUM_SAMPLE_RATES 32
 
 #define SND_AUDIOCODEC_PCM ((__u32) 0x00000001)
 #define SND_AUDIOCODEC_MP3 ((__u32) 0x00000002)
@@ -209,7 +210,8 @@ union snd_codec_options {
 
 struct snd_codec_desc {
  __u32 max_ch;
- __u32 sample_rates;
+ __u32 sample_rates[MAX_NUM_SAMPLE_RATES];
+ __u32 num_sample_rates;
  __u32 bit_rate[MAX_NUM_BITRATES];
  __u32 num_bitrates;
  __u32 rate_control;