Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 148487
b: refs/heads/master
c: ab1863f
h: refs/heads/master
i:
  148485: 2b50520
  148483: cfec85c
  148479: 177b498
v: v3
  • Loading branch information
Takashi Iwai committed Jun 7, 2009
1 parent b94b1d3 commit 772d95f
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: d86bf92313bfd47885a92c7de63bde392d585f95
refs/heads/master: ab1863fc9bc18c806338564124b1e5e7e3ef53d1
3 changes: 2 additions & 1 deletion trunk/sound/core/pcm_lib.c
Original file line number Diff line number Diff line change
Expand Up @@ -299,6 +299,8 @@ static int snd_pcm_update_hw_ptr_interrupt(struct snd_pcm_substream *substream)
hw_ptr_interrupt =
new_hw_ptr - new_hw_ptr % runtime->period_size;
}
runtime->hw_ptr_interrupt = hw_ptr_interrupt;

if (substream->stream == SNDRV_PCM_STREAM_PLAYBACK &&
runtime->silence_size > 0)
snd_pcm_playback_silence(substream, new_hw_ptr);
Expand All @@ -309,7 +311,6 @@ static int snd_pcm_update_hw_ptr_interrupt(struct snd_pcm_substream *substream)
runtime->hw_ptr_base = hw_base;
runtime->status->hw_ptr = new_hw_ptr;
runtime->hw_ptr_jiffies = jiffies;
runtime->hw_ptr_interrupt = hw_ptr_interrupt;
if (runtime->tstamp_mode == SNDRV_PCM_TSTAMP_ENABLE)
snd_pcm_gettime(runtime, (struct timespec *)&runtime->status->tstamp);

Expand Down

0 comments on commit 772d95f

Please sign in to comment.