Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 206608
b: refs/heads/master
c: 51b6dfb
h: refs/heads/master
v: v3
  • Loading branch information
Kulikov Vasiliy authored and Mark Brown committed Jul 17, 2010
1 parent b47861a commit 0a22015
Show file tree
Hide file tree
Showing 2 changed files with 6 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: 55938b106ff4028f9e8b23b1bcb16d7cd615bee7
refs/heads/master: 51b6dfb627d785ee92c2bd1e159e2de47cdc29c3
6 changes: 5 additions & 1 deletion trunk/sound/soc/imx/imx-pcm-dma-mx2.c
Original file line number Diff line number Diff line change
Expand Up @@ -292,12 +292,16 @@ static int snd_imx_open(struct snd_pcm_substream *substream)
int ret;

iprtd = kzalloc(sizeof(*iprtd), GFP_KERNEL);
if (iprtd == NULL)
return -ENOMEM;
runtime->private_data = iprtd;

ret = snd_pcm_hw_constraint_integer(substream->runtime,
SNDRV_PCM_HW_PARAM_PERIODS);
if (ret < 0)
if (ret < 0) {
kfree(iprtd);
return ret;
}

snd_soc_set_runtime_hwparams(substream, &snd_imx_hardware);
return 0;
Expand Down

0 comments on commit 0a22015

Please sign in to comment.