ALSA: compress: Add SND_AUDIOCODEC_BESPOKE
authorCharles Keepax <ckeepax@opensource.wolfsonmicro.com>
Tue, 15 Dec 2015 11:29:44 +0000 (11:29 +0000)
committerMark Brown <broonie@kernel.org>
Wed, 23 Dec 2015 00:20:50 +0000 (00:20 +0000)
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>
include/uapi/sound/compress_params.h

index d9bd9ca0d5b020519da8c8aebb3b93cc5a295c71..9625484a4a2a2a12e5ad8d00a759e27ea48a96b3 100644 (file)
@@ -73,7 +73,8 @@
 #define SND_AUDIOCODEC_IEC61937              ((__u32) 0x0000000B)
 #define SND_AUDIOCODEC_G723_1                ((__u32) 0x0000000C)
 #define SND_AUDIOCODEC_G729                  ((__u32) 0x0000000D)
-#define SND_AUDIOCODEC_MAX                   SND_AUDIOCODEC_G729
+#define SND_AUDIOCODEC_BESPOKE               ((__u32) 0x0000000E)
+#define SND_AUDIOCODEC_MAX                   SND_AUDIOCODEC_BESPOKE
 
 /*
  * Profile and modes are listed with bit masks. This allows for a
@@ -312,7 +313,7 @@ struct snd_enc_flac {
 
 struct snd_enc_generic {
        __u32 bw;       /* encoder bandwidth */
-       __s32 reserved[15];
+       __s32 reserved[15];     /* Can be used for SND_AUDIOCODEC_BESPOKE */
 } __attribute__((packed, aligned(4)));
 
 union snd_codec_options {