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

Commit 07ac574f authored by Banajit Goswami's avatar Banajit Goswami Committed by Saravana Kannan
Browse files

ANDROID: GKI: 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.

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>
Bug: 151372815
(cherry picked from commit 2315eec8)
Signed-off-by: default avatarSaravana Kannan <saravanak@google.com>
parent 4d4eb9da
Loading
Loading
Loading
Loading
+7 −0
Original line number Diff line number Diff line
@@ -241,8 +241,15 @@

struct snd_enc_wma {
	__u32 super_block_align; /* WMA Type-specific data */
	__u32 bits_per_sample;
	__u32 channelmask;
	__u32 encodeopt;
	__u32 encodeopt1;
	__u32 encodeopt2;
	__u32 avg_bit_rate;
};

#define SND_ENC_WMA_EXTENTED_SUPPORT

/**
 * struct snd_enc_vorbis