Skip to content

Commit

Permalink
[media] tm6000: remove a check for NO_PCM_LOCK
Browse files Browse the repository at this point in the history
This was likely used by some test. There's no sense on keeping it
upstream.

Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
  • Loading branch information
Mauro Carvalho Chehab committed Jul 27, 2011
1 parent bca3ba7 commit 51b6d71
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions drivers/staging/tm6000/tm6000-alsa.c
Original file line number Diff line number Diff line change
Expand Up @@ -254,9 +254,7 @@ static int tm6000_fillbuf(struct tm6000_core *core, char *buf, int size)
memcpy(runtime->dma_area + buf_pos * stride, buf,
length * stride);

#ifndef NO_PCM_LOCK
snd_pcm_stream_lock(substream);
#endif

chip->buf_pos += length;
if (chip->buf_pos >= runtime->buffer_size)
Expand All @@ -268,9 +266,7 @@ static int tm6000_fillbuf(struct tm6000_core *core, char *buf, int size)
period_elapsed = 1;
}

#ifndef NO_PCM_LOCK
snd_pcm_stream_unlock(substream);
#endif

if (period_elapsed)
snd_pcm_period_elapsed(substream);
Expand Down

0 comments on commit 51b6d71

Please sign in to comment.