OpenCloudOS-Kernel/Documentation/sound
Srinivas Kandagatla 7ea9ee0064 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>
2023-06-21 07:28:31 +02:00
..
cards docs: sound: add 'pcmtest' driver documentation 2023-06-07 13:08:35 +02:00
designs ALSA: compress: allow setting codec params after next track 2023-06-21 07:28:31 +02:00
hd-audio Merge branch 'for-linus' into for-next 2023-04-27 14:21:18 +02:00
kernel-api ALSA: docs: Fix code block indentation in ALSA driver example 2023-05-03 08:08:25 +02:00
soc ASoC: Merge up fixes 2022-07-11 15:51:01 +01:00
alsa-configuration.rst ALSA: docs: Extend module parameters description 2023-05-03 08:06:37 +02:00
index.rst Docs/sound/index: Add missing SPDX License Identifier 2023-01-24 15:28:52 -07:00