linux/include/uapi/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
..
intel/avs ASoC: Intel: avs: Parse control tuples 2022-12-25 23:33:03 +00:00
sof ASoC: SOF: Add DAI configuration support for AMD platforms. 2022-11-29 12:56:09 +00:00
asequencer.h ALSA: seq: fix undefined behavior in bit shift for SNDRV_SEQ_FILTER_USE_EVENT 2022-11-23 07:57:35 +01:00
asoc.h ALSA: Remove some left-over license text in include/uapi/sound/ 2022-09-27 08:42:50 +02:00
asound.h ALSA: pcm: rewrite snd_pcm_playback_silence() 2023-04-21 12:21:04 +02:00
asound_fm.h ALSA: Remove some left-over license text in include/uapi/sound/ 2022-09-27 08:42:50 +02:00
compress_offload.h ALSA: Remove some left-over license text in include/uapi/sound/ 2022-09-27 08:42:50 +02:00
compress_params.h ALSA: Remove some left-over license text in include/uapi/sound/ 2022-09-27 08:42:50 +02:00
emu10k1.h ALSA: Remove some left-over license text in include/uapi/sound/ 2022-09-27 08:42:50 +02:00
firewire.h ALSA: fireface: add field for the number of messages copied to user space 2023-02-04 09:35:17 +01:00
hdsp.h ALSA: Remove some left-over license text in include/uapi/sound/ 2022-09-27 08:42:50 +02:00
hdspm.h ALSA: Remove some left-over license text in include/uapi/sound/ 2022-09-27 08:42:50 +02:00
sb16_csp.h ALSA: Remove some left-over license text in include/uapi/sound/ 2022-09-27 08:42:50 +02:00
sfnt_info.h ALSA: Remove some left-over license text in include/uapi/sound/ 2022-09-27 08:42:50 +02:00
skl-tplg-interface.h treewide: uapi: Replace zero-length arrays with flexible-array members 2022-06-28 21:26:05 +02:00
snd_ar_tokens.h ASoC: qdsp6: audioreach: add support for more port connections 2022-10-28 17:19:22 +01:00
snd_sst_tokens.h ALSA: Remove some left-over license text in include/uapi/sound/ 2022-09-27 08:42:50 +02:00
tlv.h ALSA: Remove some left-over license text in include/uapi/sound/ 2022-09-27 08:42:50 +02:00
usb_stream.h ALSA: Remove some left-over license text in include/uapi/sound/ 2022-09-27 08:42:50 +02:00