diff options
author | Srinivas Kandagatla <srinivas.kandagatla@linaro.org> | 2023-06-19 10:28:05 +0100 |
---|---|---|
committer | Takashi Iwai <tiwai@suse.de> | 2023-06-21 07:28:31 +0200 |
commit | 7ea9ee0064281ef630e038f8dd2f6e8f4030a696 (patch) | |
tree | b091aafb960d17c45d6c6f5561e328fffecde3b1 /Documentation/sound | |
parent | 79597c8bf64ca99eab385115743131d260339da5 (diff) | |
download | lwn-7ea9ee0064281ef630e038f8dd2f6e8f4030a696.tar.gz lwn-7ea9ee0064281ef630e038f8dd2f6e8f4030a696.zip |
ALSA: compress: allow setting codec params after next track
For gapless playback it is possible that each track can have different
codec profile with same decoder, for example we have WMA album,
we may have different tracks as WMA v9, WMA v10 and so on
Or if DSP's like QDSP have abililty to switch decoders on single stream
for each track, then this call could be used to set new codec parameters.
Existing code does not allow to change this profile while doing gapless
playback.
Reuse existing SNDRV_COMPRESS_SET_PARAMS to set this new track params along
some additional checks to enforce proper state machine.
With this new changes now the user can call SNDRV_COMPRESS_SET_PARAMS
anytime after setting next track and additional check in write should
also ensure that params are set before writing new data.
Signed-off-by: Srinivas Kandagatla <srinivas.kandagatla@linaro.org>
Acked-by: Vinod Koul <vkoul@kernel.org>
Link: https://lore.kernel.org/r/20230619092805.21649-1-srinivas.kandagatla@linaro.org
Signed-off-by: Takashi Iwai <tiwai@suse.de>
Diffstat (limited to 'Documentation/sound')
-rw-r--r-- | Documentation/sound/designs/compress-offload.rst | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/Documentation/sound/designs/compress-offload.rst b/Documentation/sound/designs/compress-offload.rst index 935f325dbc77..655624f77092 100644 --- a/Documentation/sound/designs/compress-offload.rst +++ b/Documentation/sound/designs/compress-offload.rst @@ -268,11 +268,12 @@ with setting of meta_data and signalling for next track :: | | | V | +----------+ - | | | - | |NEXT_TRACK| - | | | - | +----------+ - | | + | compr_set_params() | | + | +-----------|NEXT_TRACK| + | | | | + | | +--+-------+ + | | | | + | +--------------+ | | | | | compr_partial_drain() | | |