]> git.baikalelectronics.ru Git - kernel.git/commit
ALSA: compress: add flac decoder params
authorVinod Koul <vkoul@kernel.org>
Fri, 15 Nov 2019 10:27:03 +0000 (15:57 +0530)
committerMark Brown <broonie@kernel.org>
Mon, 18 Nov 2019 13:02:25 +0000 (13:02 +0000)
commit5ff152ee5f31becfd8cb69e3dd1538a1529ad701
treeb83d5385f1c4ad60ee2e365c7896bf438cb1170f
parentc4e2ce605d95a3894c7a9b0fd6a2ccef340398b8
ALSA: compress: add flac decoder params

The current design of sending codec parameters assumes that decoders
will have parsers so they can parse the encoded stream for parameters
and configure the decoder.

But this assumption may not be universally true and we know some DSPs
which do not contain the parsers so additional parameters are required
to be passed.

So add these parameters starting with FLAC decoder. The size of
snd_codec_options is still 120 bytes after this change (due to this
being a union)

Co-developed-by: Srinivas Kandagatla <srinivas.kandagatla@linaro.org>
Signed-off-by: Srinivas Kandagatla <srinivas.kandagatla@linaro.org>
Signed-off-by: Vinod Koul <vkoul@kernel.org>
Link: https://lore.kernel.org/r/20191115102705.649976-2-vkoul@kernel.org
Acked-by: Takashi Iwai <tiwai@suse.de>
Signed-off-by: Mark Brown <broonie@kernel.org>
include/uapi/sound/compress_params.h