revert: ALSA: compress: update struct snd_codec_desc for sample rate

This gerrit reverts the gerrit with the commit number-
      b8bab04829
    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: Banajit Goswami <bgoswami@codeaurora.org>
This commit is contained in:
Banajit Goswami 2014-08-26 01:13:46 -07:00 committed by David Keitel
parent dba6519f3f
commit f48c0e7f53

View file

@ -57,7 +57,6 @@
#define MAX_NUM_CODECS 32 #define MAX_NUM_CODECS 32
#define MAX_NUM_CODEC_DESCRIPTORS 32 #define MAX_NUM_CODEC_DESCRIPTORS 32
#define MAX_NUM_BITRATES 32 #define MAX_NUM_BITRATES 32
#define MAX_NUM_SAMPLE_RATES 32
/* compressed TX */ /* compressed TX */
#define MAX_NUM_FRAMES_PER_BUFFER 1 #define MAX_NUM_FRAMES_PER_BUFFER 1
@ -396,7 +395,7 @@ union snd_codec_options {
struct snd_codec_desc { struct snd_codec_desc {
__u32 max_ch; __u32 max_ch;
__u32 sample_rates[MAX_NUM_SAMPLE_RATES]; __u32 sample_rates;
__u32 num_sample_rates; __u32 num_sample_rates;
__u32 bit_rate[MAX_NUM_BITRATES]; __u32 bit_rate[MAX_NUM_BITRATES];
__u32 num_bitrates; __u32 num_bitrates;