Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 132748
b: refs/heads/master
c: 85122ea
h: refs/heads/master
v: v3
  • Loading branch information
Takashi Iwai committed Mar 9, 2009
1 parent d82ded8 commit a25d306
Show file tree
Hide file tree
Showing 4 changed files with 1 addition and 9 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: ed3da3d9a0ef13c6fe1414ec73c9c1be12747b62
refs/heads/master: 85122ea40c4fc82af5b66b8683f525c2c4a36d1a
1 change: 0 additions & 1 deletion trunk/include/sound/pcm.h
Original file line number Diff line number Diff line change
Expand Up @@ -364,7 +364,6 @@ struct snd_pcm_substream {
/* -- timer section -- */
struct snd_timer *timer; /* timer */
unsigned timer_running: 1; /* time is running */
spinlock_t timer_lock;
/* -- next substream -- */
struct snd_pcm_substream *next;
/* -- linked substreams -- */
Expand Down
1 change: 0 additions & 1 deletion trunk/sound/core/pcm.c
Original file line number Diff line number Diff line change
Expand Up @@ -667,7 +667,6 @@ int snd_pcm_new_stream(struct snd_pcm *pcm, int stream, int substream_count)
spin_lock_init(&substream->self_group.lock);
INIT_LIST_HEAD(&substream->self_group.substreams);
list_add_tail(&substream->link_list, &substream->self_group.substreams);
spin_lock_init(&substream->timer_lock);
atomic_set(&substream->mmap_count, 0);
prev = substream;
}
Expand Down
6 changes: 0 additions & 6 deletions trunk/sound/core/pcm_timer.c
Original file line number Diff line number Diff line change
Expand Up @@ -85,25 +85,19 @@ static unsigned long snd_pcm_timer_resolution(struct snd_timer * timer)

static int snd_pcm_timer_start(struct snd_timer * timer)
{
unsigned long flags;
struct snd_pcm_substream *substream;

substream = snd_timer_chip(timer);
spin_lock_irqsave(&substream->timer_lock, flags);
substream->timer_running = 1;
spin_unlock_irqrestore(&substream->timer_lock, flags);
return 0;
}

static int snd_pcm_timer_stop(struct snd_timer * timer)
{
unsigned long flags;
struct snd_pcm_substream *substream;

substream = snd_timer_chip(timer);
spin_lock_irqsave(&substream->timer_lock, flags);
substream->timer_running = 0;
spin_unlock_irqrestore(&substream->timer_lock, flags);
return 0;
}

Expand Down

0 comments on commit a25d306

Please sign in to comment.