summaryrefslogtreecommitdiff
path: root/include/uapi
diff options
context:
space:
mode:
authorVinod Koul <vinod.koul@intel.com>2014-01-04 16:59:13 +0530
committerDavid Keitel <dkeitel@codeaurora.org>2016-03-23 21:25:00 -0700
commitcb9c0e72ea0a0686958a26a1873b5e60446f431c (patch)
treed3adecdeec0243ba8a37605ed2985dad68cb407b /include/uapi
parentae7490959a148d397bcda9b86f87d336f1ad973a (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 Change-Id: I2dc6b4e48cccbc7a3da7207be42cf11502373572 Signed-off-by: Vinod Koul <vinod.koul@intel.com> Signed-off-by: Takashi Iwai <tiwai@suse.de> Git-commit: b8bab04829ab190f71921d4180bda438ba6124ae Git-repo: git://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git Signed-off-by: Banajit Goswami <bgoswami@codeaurora.org> Signed-off-by: vivek mehta <mvivek@codeaurora.org> [fred@codeaurora.org: resolved context conflict in struct snd_codec_desc] [fred@codeaurora.org: added msm-compress-q6-v2.c to resolve compilation error] Signed-off-by: Fred Oh <fred@codeaurora.org>
Diffstat (limited to 'include/uapi')
-rw-r--r--include/uapi/sound/compress_params.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/include/uapi/sound/compress_params.h b/include/uapi/sound/compress_params.h
index 17dbf6bf3ff0..4d9c4b5c29f3 100644
--- a/include/uapi/sound/compress_params.h
+++ b/include/uapi/sound/compress_params.h
@@ -59,6 +59,7 @@
#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
@@ -427,7 +428,7 @@ 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;