[PATCH AUTOSEL 5.15 41/44] ALSA: pcm: Rewrite recalculate_boundary() to avoid costly loop