linux/Documentation/sound
Oswald Buddenhagen 9f656705c5 ALSA: pcm: rewrite snd_pcm_playback_silence()
The auto-silencer supports two modes: "thresholded" to fill up "just
enough", and "top-up" to fill up "as much as possible". The two modes
used rather distinct code paths, which this patch unifies. The only
remaining distinction is how much we actually want to fill.

This fixes a bug in thresholded mode, where we failed to use new_hw_ptr,
resulting in under-fill.

Top-up mode is now more well-behaved and much easier to understand in
corner cases.

This also updates comments in the proximity of silencing-related data
structures.

Signed-off-by: Oswald Buddenhagen <oswald.buddenhagen@gmx.de>
Reviewed-by: Jaroslav Kysela <perex@perex.cz>
Link: https://lore.kernel.org/r/20230420113324.877164-1-oswald.buddenhagen@gmx.de
Signed-off-by: Takashi Iwai <tiwai@suse.de>
2023-04-21 12:21:04 +02:00
..
cards ALSA: emu10k1: documentation updates 2023-04-06 10:14:23 +02:00
designs Documentation: sound: correct spelling 2023-01-29 09:23:45 +01:00
hd-audio It has been a moderately calm cycle for documentation; the significant 2023-02-22 12:00:20 -08:00
kernel-api ALSA: pcm: rewrite snd_pcm_playback_silence() 2023-04-21 12:21:04 +02:00
soc ASoC: Merge up fixes 2022-07-11 15:51:01 +01:00
alsa-configuration.rst ALSA: emu10k1: documentation updates 2023-04-06 10:14:23 +02:00
index.rst Docs/sound/index: Add missing SPDX License Identifier 2023-01-24 15:28:52 -07:00