From f48c0e7f535b9c89a408bc9b2016d291f575bdb9 Mon Sep 17 00:00:00 2001 From: Banajit Goswami Date: Tue, 26 Aug 2014 01:13:46 -0700 Subject: [PATCH] revert: ALSA: compress: update struct snd_codec_desc for sample rate This gerrit reverts the gerrit with the commit number- b8bab04829ab190f71921d4180bda438ba6124ae 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 --- include/uapi/sound/compress_params.h | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/include/uapi/sound/compress_params.h b/include/uapi/sound/compress_params.h index 11316013f061..7be263020a0e 100644 --- a/include/uapi/sound/compress_params.h +++ b/include/uapi/sound/compress_params.h @@ -57,7 +57,6 @@ #define MAX_NUM_CODECS 32 #define MAX_NUM_CODEC_DESCRIPTORS 32 #define MAX_NUM_BITRATES 32 -#define MAX_NUM_SAMPLE_RATES 32 /* compressed TX */ #define MAX_NUM_FRAMES_PER_BUFFER 1 @@ -396,7 +395,7 @@ union snd_codec_options { struct snd_codec_desc { __u32 max_ch; - __u32 sample_rates[MAX_NUM_SAMPLE_RATES]; + __u32 sample_rates; __u32 num_sample_rates; __u32 bit_rate[MAX_NUM_BITRATES]; __u32 num_bitrates;