]> git.proxmox.com Git - mirror_ubuntu-jammy-kernel.git/commitdiff
ALSA: compress: Add wma decoder params
authorVinod Koul <vkoul@kernel.org>
Mon, 16 Mar 2020 05:52:14 +0000 (11:22 +0530)
committerMark Brown <broonie@kernel.org>
Mon, 16 Mar 2020 17:52:05 +0000 (17:52 +0000)
Some WMA decoders like WMAv10 etc need some additional encoder option
parameters, so add these as WMA decoder params.

Signed-off-by: Vinod Koul <vkoul@kernel.org>
Reviewed-by: Takashi Iwai <tiwai@suse.de>
Link: https://lore.kernel.org/r/20200316055221.1944464-3-vkoul@kernel.org
Signed-off-by: Mark Brown <broonie@kernel.org>
include/uapi/sound/compress_params.h

index a47d9df0fd7b59c23c17e70433689426f0b9a7a2..bf6f7155e775e75cd40107da6d6317603c2bc1e7 100644 (file)
@@ -329,6 +329,13 @@ struct snd_dec_flac {
        __u16 reserved;
 } __attribute__((packed, aligned(4)));
 
+struct snd_dec_wma {
+       __u32 encoder_option;
+       __u32 adv_encoder_option;
+       __u32 adv_encoder_option2;
+       __u32 reserved;
+} __attribute__((packed, aligned(4)));
+
 union snd_codec_options {
        struct snd_enc_wma wma;
        struct snd_enc_vorbis vorbis;
@@ -336,6 +343,7 @@ union snd_codec_options {
        struct snd_enc_flac flac;
        struct snd_enc_generic generic;
        struct snd_dec_flac flac_d;
+       struct snd_dec_wma wma_d;
 } __attribute__((packed, aligned(4)));
 
 /** struct snd_codec_desc - description of codec capabilities