Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 262946
b: refs/heads/master
c: a96edd5
h: refs/heads/master
v: v3
  • Loading branch information
Stephen Warren authored and Mark Brown committed Aug 9, 2011
1 parent 7415174 commit a0b5d7c
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 3 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: 7cb0aa21a560595ba36ab8230a210471f330288f
refs/heads/master: a96edd59b2bc88b3d1ea47e0ba48076d65db9302
9 changes: 7 additions & 2 deletions trunk/sound/soc/tegra/tegra_pcm.c
Original file line number Diff line number Diff line change
Expand Up @@ -309,9 +309,14 @@ static int tegra_pcm_preallocate_dma_buffer(struct snd_pcm *pcm, int stream)

static void tegra_pcm_deallocate_dma_buffer(struct snd_pcm *pcm, int stream)
{
struct snd_pcm_substream *substream = pcm->streams[stream].substream;
struct snd_dma_buffer *buf = &substream->dma_buffer;
struct snd_pcm_substream *substream;
struct snd_dma_buffer *buf;

substream = pcm->streams[stream].substream;
if (!substream)
return;

buf = &substream->dma_buffer;
if (!buf->area)
return;

Expand Down

0 comments on commit a0b5d7c

Please sign in to comment.