This is a split of changes for both patches (the first with the missing top-up mode + later fix with mixups) proposed by Oswald. The aim was to pick only real code changes. Only the first two patches after revert fixes the current silencing issues. The last two are just cleanups with the extra optimization in the last patch moving the common code to a function. Cc: Oswald Buddenhagen <oswald.buddenhagen@xxxxxx> Cc: Jeff Chua <jeff.chua.linux@xxxxxxxxx> Jaroslav Kysela (5): ALSA: pcm: Revert "ALSA: pcm: rewrite snd_pcm_playback_silence()" ALSA: pcm: fix playback silence - use the actual new_hw_ptr for the threshold mode ALSA: pcm: fix playback silence - correct the incremental silencing ALSA: pcm: playback silence - remove extra code ALSA: pcm: playback silence - move silence variables updates to separate function sound/core/pcm_lib.c | 91 +++++++++++++++++++++++++---------------- sound/core/pcm_local.h | 3 +- sound/core/pcm_native.c | 6 +-- 3 files changed, 61 insertions(+), 39 deletions(-) -- 2.39.2