ALSA: pcm: simplify top-up mode init in snd_pcm_playback_silence()
authorOswald Buddenhagen <oswald.buddenhagen@gmx.de>
Fri, 5 May 2023 15:52:43 +0000 (17:52 +0200)
committerTakashi Iwai <tiwai@suse.de>
Fri, 5 May 2023 16:23:52 +0000 (18:23 +0200)
commit6ffa6f397e80bc196ed554e4dabfe43ecc0fe7c1
tree37f68f31ed698eea723bd7ba0cc8185d3e82a673
parent6d8d56db0cd14c415c26e27d949c615750c40d70
ALSA: pcm: simplify top-up mode init in snd_pcm_playback_silence()

Inline the remaining call of snd_pcm_playback_hw_avail(). This makes
the top-up branch more congruent with the thresholded one, and allows
simplifying the handling of the corner cases.

Signed-off-by: Oswald Buddenhagen <oswald.buddenhagen@gmx.de>
Link: https://lore.kernel.org/r/20230505155244.2312199-6-oswald.buddenhagen@gmx.de
Signed-off-by: Takashi Iwai <tiwai@suse.de>
sound/core/pcm_lib.c