aboutsummaryrefslogtreecommitdiffstats
path: root/include/uapi
diff options
context:
space:
mode:
authorCharles Keepax <ckeepax@opensource.wolfsonmicro.com>2015-12-15 06:29:44 -0500
committerMark Brown <broonie@kernel.org>2015-12-22 19:20:50 -0500
commitdbb6b94339e82ad2532798ed80f2651d21d97975 (patch)
treebd6456946ddb76f4159a43d529c23122e0656e24 /include/uapi
parent14197095e14a4ad2afb6c8c1ca8e41852382481d (diff)
ALSA: compress: Add SND_AUDIOCODEC_BESPOKE
When working with the compressed framework occasionally vendors will use esoteric internal audio formats. For such formats it doesn't really make sense to add an new define to the kernel as their use is not sufficiently general. This patch adds a new define SND_AUDIOCODEC_BESPOKE that vendors can use in such situations. Signed-off-by: Charles Keepax <ckeepax@opensource.wolfsonmicro.com> Acked-by: Vinod Koul <vinod.koul@intel.com> Signed-off-by: Mark Brown <broonie@kernel.org>
Diffstat (limited to 'include/uapi')
-rw-r--r--include/uapi/sound/compress_params.h5
1 files changed, 3 insertions, 2 deletions
diff --git a/include/uapi/sound/compress_params.h b/include/uapi/sound/compress_params.h
index d9bd9ca0d5b0..9625484a4a2a 100644
--- a/include/uapi/sound/compress_params.h
+++ b/include/uapi/sound/compress_params.h
@@ -73,7 +73,8 @@
73#define SND_AUDIOCODEC_IEC61937 ((__u32) 0x0000000B) 73#define SND_AUDIOCODEC_IEC61937 ((__u32) 0x0000000B)
74#define SND_AUDIOCODEC_G723_1 ((__u32) 0x0000000C) 74#define SND_AUDIOCODEC_G723_1 ((__u32) 0x0000000C)
75#define SND_AUDIOCODEC_G729 ((__u32) 0x0000000D) 75#define SND_AUDIOCODEC_G729 ((__u32) 0x0000000D)
76#define SND_AUDIOCODEC_MAX SND_AUDIOCODEC_G729 76#define SND_AUDIOCODEC_BESPOKE ((__u32) 0x0000000E)
77#define SND_AUDIOCODEC_MAX SND_AUDIOCODEC_BESPOKE
77 78
78/* 79/*
79 * Profile and modes are listed with bit masks. This allows for a 80 * Profile and modes are listed with bit masks. This allows for a
@@ -312,7 +313,7 @@ struct snd_enc_flac {
312 313
313struct snd_enc_generic { 314struct snd_enc_generic {
314 __u32 bw; /* encoder bandwidth */ 315 __u32 bw; /* encoder bandwidth */
315 __s32 reserved[15]; 316 __s32 reserved[15]; /* Can be used for SND_AUDIOCODEC_BESPOKE */
316} __attribute__((packed, aligned(4))); 317} __attribute__((packed, aligned(4)));
317 318
318union snd_codec_options { 319union snd_codec_options {