• Jaroslav Kysela's avatar
    ALSA: pcm_native - fix runtime->boundary calculation · 7910b4a1
    Jaroslav Kysela authored
    The code in pcm_lib updating runtime->hw_ptr_interrupt expects
    that runtime->boundary is divisible with runtime->period_size.
    Thanks are going to Clemens Ladisch for the notice.
    
    Fix the runtime->boundary calculation using buffer_size * period_size
    as base and find a least common multiple for 32bit platforms when
    the expression might overflow.
    Signed-off-by: default avatarJaroslav Kysela <perex@perex.cz>
    7910b4a1
pcm_native.c 93 KB