Commit 51b6d717 authored by Mauro Carvalho Chehab's avatar Mauro Carvalho Chehab

[media] tm6000: remove a check for NO_PCM_LOCK

This was likely used by some test. There's no sense on keeping it
upstream.
Signed-off-by: default avatarMauro Carvalho Chehab <mchehab@redhat.com>
parent bca3ba79
......@@ -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)
......@@ -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);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment