Re: [alsa-devel] [RFC PATCH 0/3] ALSA: compress: Add support for FLAC

From: Pierre-Louis Bossart
Date: Fri Nov 15 2019 - 09:55:32 EST




On 11/15/19 4:27 AM, Vinod Koul wrote:
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.

that's not quite correct. It's rather than there was no need so far for existing implementations to have parameters on decode, this was never a limitation of the design, see e.g. the comments below:

/* AAC modes are required for encoders and decoders */

/*
* IEC modes are mandatory for decoders. Format autodetection
* will only happen on the DSP side with mode 0. The PCM mode should
* not be used, the PCM codec should be used instead.
*/