Fixed XRUN detection condition in avail() callback

This commit is contained in:
Jaroslav Kysela 2002-02-21 08:14:44 +00:00
parent 15357a9875
commit 20bfec221e

View file

@ -635,7 +635,7 @@ static snd_pcm_sframes_t snd_pcm_hw_avail_update(snd_pcm_t *pcm)
return err;
}
}
if (avail > pcm->buffer_size)
if (avail >= pcm->stop_threshold)
return -EPIPE;
return avail;
}