mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-10 06:09:23 -04:00
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 <aviralg@codeaurora.org> Signed-off-by: Banajit Goswami <bgoswami@codeaurora.org> Signed-off-by: Meng Wang <mwang@codeaurora.org>
This commit is contained in:
parent
a70116e190
commit
26ea5a19d9
1 changed files with 11 additions and 0 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in a new issue