From 26ea5a19d9fc87fa39f1d40416f715a5ae6e649d Mon Sep 17 00:00:00 2001 From: Banajit Goswami Date: Sat, 23 Aug 2014 15:51:20 -0700 Subject: [PATCH] ASoC: msm: Update the encode option and sample rate Populate the sample rate, encode option in wma config params. WMA V9 and WMA Pro tunnel-mode supports are added to compressed driver. It allows user-space application to decode WMA V9 and WMA Pro audio stream through QDSP6. Codec specific metadata is sent only for first stream in gapless playback. This causes incorrect configuration to be set for second stream and distortions are observed due to framedrops in adsp. Add support to send codec specific format during start of next stream in gapless. Add bit rate to wma codec data structure as it can vary between streams in gapless. CRs-Fixed: 367243, 367242 Change-Id: Ieeb9d302454d3935faa51cac77021e7c1d77012c Signed-off-by: Aviral Gupta Signed-off-by: Banajit Goswami Signed-off-by: Meng Wang --- include/uapi/sound/compress_params.h | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/include/uapi/sound/compress_params.h b/include/uapi/sound/compress_params.h index a49c29fc2e30..89ab4b739a08 100644 --- a/include/uapi/sound/compress_params.h +++ b/include/uapi/sound/compress_params.h @@ -253,8 +253,19 @@ struct snd_enc_wma { __u32 super_block_align; /* WMA Type-specific data */ +#ifdef CONFIG_AUDIO_QGKI + __u32 bits_per_sample; + __u32 channelmask; + __u32 encodeopt; + __u32 encodeopt1; + __u32 encodeopt2; + __u32 avg_bit_rate; +#endif }; +#ifdef CONFIG_AUDIO_QGKI +#define SND_ENC_WMA_EXTENTED_SUPPORT +#endif /** * struct snd_enc_vorbis