mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-26 06:33:19 -04:00
ASoC: compress: add support for Vorbis and amrwb_plus
Add Vorbis and amrwb_plus to supported offload formats, update alac and ape snd_codec_options names to match with userspace and send media format block for both formats through compress driver. Change-Id: Ibec74c4d3f44a4676b49fa03133fd5d31dd5182d Signed-off-by: Meng Wang <mengw@codeaurora.org>
This commit is contained in:
parent
567264c6cb
commit
5c51c207d3
1 changed files with 16 additions and 2 deletions
|
|
@ -398,6 +398,16 @@ struct snd_dec_aptx {
|
|||
__u32 nap;
|
||||
};
|
||||
|
||||
#ifdef CONFIG_AUDIO_QGKI
|
||||
struct snd_dec_vorbis {
|
||||
__u32 bit_stream_fmt;
|
||||
};
|
||||
|
||||
struct snd_dec_amrwb_plus {
|
||||
__u32 bit_stream_fmt;
|
||||
};
|
||||
#endif
|
||||
|
||||
union snd_codec_options {
|
||||
struct snd_enc_wma wma;
|
||||
struct snd_enc_vorbis vorbis;
|
||||
|
|
@ -406,10 +416,14 @@ union snd_codec_options {
|
|||
struct snd_enc_generic generic;
|
||||
struct snd_dec_aac aac_dec;
|
||||
struct snd_dec_flac flac_dec;
|
||||
struct snd_dec_alac alac_dec;
|
||||
struct snd_dec_ape ape_dec;
|
||||
struct snd_dec_alac alac;
|
||||
struct snd_dec_ape ape;
|
||||
struct snd_dec_wma wma_dec;
|
||||
struct snd_dec_aptx aptx_dec;
|
||||
#ifdef CONFIG_AUDIO_QGKI
|
||||
struct snd_dec_vorbis vorbis_dec;
|
||||
struct snd_dec_amrwb_plus amrwbplus;
|
||||
#endif
|
||||
} __attribute__((packed, aligned(4)));
|
||||
|
||||
/** struct snd_codec_desc - description of codec capabilities
|
||||
|
|
|
|||
Loading…
Reference in a new issue