Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 26ea5a19 authored by Banajit Goswami's avatar Banajit Goswami Committed by Meng Wang
Browse files

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: default avatarAviral Gupta <aviralg@codeaurora.org>
Signed-off-by: default avatarBanajit Goswami <bgoswami@codeaurora.org>
Signed-off-by: default avatarMeng Wang <mwang@codeaurora.org>
parent a70116e1
Loading
Loading
Loading
Loading
+11 −0
Original line number Diff line number Diff line
@@ -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