Merge branch 'devel' of git.alsa-project.org:alsa-kernel into topic/misc

This commit is contained in:
Takashi Iwai
2010-07-19 17:42:09 +02:00
4 changed files with 17 additions and 5 deletions

View File

@@ -67,6 +67,8 @@ void snd_pcm_playback_silence(struct snd_pcm_substream *substream, snd_pcm_ufram
} else {
if (new_hw_ptr == ULONG_MAX) { /* initialization */
snd_pcm_sframes_t avail = snd_pcm_playback_hw_avail(runtime);
if (avail > runtime->buffer_size)
avail = runtime->buffer_size;
runtime->silence_filled = avail > 0 ? avail : 0;
runtime->silence_start = (runtime->status->hw_ptr +
runtime->silence_filled) %