Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 270569
b: refs/heads/master
c: 283e42e
h: refs/heads/master
i:
  270567: 3d9ed76
v: v3
  • Loading branch information
Lu Guanqun authored and Mark Brown committed Sep 8, 2011
1 parent 2aec83a commit 30537f7
Show file tree
Hide file tree
Showing 2 changed files with 7 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: 22be504aaa4a3133d81e3fb0c4287960aea19c37
refs/heads/master: 283e42e0114aba331b0055839f6277a4a7cfbc64
8 changes: 6 additions & 2 deletions trunk/sound/soc/mid-x86/sst_platform.c
Original file line number Diff line number Diff line change
Expand Up @@ -233,6 +233,10 @@ static int sst_platform_open(struct snd_pcm_substream *substream)
pr_debug("sst_platform_open called\n");

snd_soc_set_runtime_hwparams(substream, &sst_platform_pcm_hw);
ret_val = snd_pcm_hw_constraint_integer(runtime,
SNDRV_PCM_HW_PARAM_PERIODS);
if (ret_val < 0)
return ret_val;

stream = kzalloc(sizeof(*stream), GFP_KERNEL);
if (!stream)
Expand Down Expand Up @@ -260,8 +264,8 @@ static int sst_platform_open(struct snd_pcm_substream *substream)
return ret_val;
}
runtime->private_data = stream;
return snd_pcm_hw_constraint_integer(runtime,
SNDRV_PCM_HW_PARAM_PERIODS);

return 0;
}

static int sst_platform_close(struct snd_pcm_substream *substream)
Expand Down

0 comments on commit 30537f7

Please sign in to comment.