ALSA: compress: Add SND_AUDIOCODEC_BESPOKE
Subsystems (2)
PATCH v2 1/1 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.
---
Changes since v1:
- Added a comment to note that users of BESPOKE are free to use the reserved space in snd_enc_generic.
Thanks,
Charles
include/uapi/sound/compress_params.h | 5 +++-- 1 files changed, 3 insertions(+), 2 deletions(-)
include/uapi/sound/compress_params.h +3 -2
@@ -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 {
Signature · 1 line
1.7.2.5
Quoted 9 lines · Charles Keepax
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_BESPOKEthat vendors can use in such situations.Signed-off-by Charles Keepax <[email protected]>
Signature · 1 line
~Vinod
Applied "ALSA: compress: Add SND_AUDIOCODEC_BESPOKE" to the asoc tree
In reply to Charles KeepaxThe patch
ALSA: compress: Add SND_AUDIOCODEC_BESPOKE
has been applied to the asoc tree at
git://git.kernel.org/pub/scm/linux/kernel/git/broonie/sound.git
All being well this means that it will be integrated into the linux-next tree (usually sometime in the next 24 hours) and sent to Linus during the next merge window (or sooner if it is a bug fix), however if problems are discovered then the patch may be dropped or reverted.
You may get further e-mails resulting from automated or manual testing and review of the tree, please engage with people reporting problems and send followup patches addressing any issues that are reported if needed.
If any updates are required or you are submitting further changes they should be sent as incremental updates against current git, existing patches will not be replaced.
Please add any relevant lists and maintainers to the CCs when replying to this mail.
Thanks,
Mark
Quoted 1 line
From
dbb6b94339e82ad2532798ed80f2651d21d97975Mon Sep 17 00:00:00 2001
From: Charles Keepax <[email protected]>
Date: Tue, 15 Dec 2015 11:29:44 +0000
Subject: [PATCH] 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.
--- include/uapi/sound/compress_params.h | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-)
include/uapi/sound/compress_params.h +3 -2
@@ -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 {
Signature · 1 line
2.6.2