From b90fab6f89c645fe362273bce1ac2a3b36ab24e0 Mon Sep 17 00:00:00 2001 From: Dhanalakshmi Siddani Date: Mon, 16 Jan 2017 15:17:50 +0530 Subject: [PATCH] ALSA: compress: Add APTX format support in ALSA Extend ALSA (Advanced Linux Sound Architecture) compress to support APTX format. CRs-Fixed: 1106128 Change-Id: I301c3fac1f0e267ca82f20a42437bae86a22413c Signed-off-by: Dhanalakshmi Siddani --- include/uapi/sound/compress_params.h | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/include/uapi/sound/compress_params.h b/include/uapi/sound/compress_params.h index 3efba8469594..a49c29fc2e30 100644 --- a/include/uapi/sound/compress_params.h +++ b/include/uapi/sound/compress_params.h @@ -86,7 +86,8 @@ #define SND_AUDIOCODEC_ALAC ((__u32) 0x00000010) #define SND_AUDIOCODEC_APE ((__u32) 0x00000011) #define SND_AUDIOCODEC_DSD ((__u32) 0x00000012) -#define SND_AUDIOCODEC_MAX SND_AUDIOCODEC_DSD +#define SND_AUDIOCODEC_APTX ((__u32) 0x00000013) +#define SND_AUDIOCODEC_MAX SND_AUDIOCODEC_APTX /* * Profile and modes are listed with bit masks. This allows for a @@ -380,6 +381,12 @@ struct snd_dec_wma { __u32 avg_bit_rate; } __attribute__((packed, aligned(4))); +struct snd_dec_aptx { + __u32 lap; + __u32 uap; + __u32 nap; +}; + union snd_codec_options { struct snd_enc_wma wma; struct snd_enc_vorbis vorbis; @@ -391,6 +398,7 @@ union snd_codec_options { struct snd_dec_alac alac_dec; struct snd_dec_ape ape_dec; struct snd_dec_wma wma_dec; + struct snd_dec_aptx aptx_dec; } __attribute__((packed, aligned(4))); /** struct snd_codec_desc - description of codec capabilities