[PATCH AUTOSEL 6.15 76/80] ALSA: pcm: Rewrite recalculate_boundary() to avoid costly loop