Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 206683
b: refs/heads/master
c: 9e216e8
h: refs/heads/master
i:
  206681: 15816db
  206679: c57e7df
v: v3
  • Loading branch information
Jaroslav Kysela committed Jul 19, 2010
1 parent 45faee9 commit cc2dc0e
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 79c944ad136c4d14388d803b51113dcaaa1d179d
refs/heads/master: 9e216e8a40428cbf689222148c28d0256fbd0186
2 changes: 2 additions & 0 deletions trunk/sound/core/pcm_lib.c
Original file line number Diff line number Diff line change
Expand Up @@ -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) %
Expand Down

0 comments on commit cc2dc0e

Please sign in to comment.