diff options
Diffstat (limited to 'sound/soc/mid-x86')
-rw-r--r-- | sound/soc/mid-x86/sst_platform.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/sound/soc/mid-x86/sst_platform.c b/sound/soc/mid-x86/sst_platform.c index d99f2535dc4c..af666ae671ae 100644 --- a/sound/soc/mid-x86/sst_platform.c +++ b/sound/soc/mid-x86/sst_platform.c | |||
@@ -226,13 +226,14 @@ static int sst_platform_init_stream(struct snd_pcm_substream *substream) | |||
226 | 226 | ||
227 | static int sst_platform_open(struct snd_pcm_substream *substream) | 227 | static int sst_platform_open(struct snd_pcm_substream *substream) |
228 | { | 228 | { |
229 | struct snd_pcm_runtime *runtime; | 229 | struct snd_pcm_runtime *runtime = substream->runtime; |
230 | struct sst_runtime_stream *stream; | 230 | struct sst_runtime_stream *stream; |
231 | int ret_val = 0; | 231 | int ret_val = 0; |
232 | 232 | ||
233 | pr_debug("sst_platform_open called\n"); | 233 | pr_debug("sst_platform_open called\n"); |
234 | runtime = substream->runtime; | 234 | |
235 | runtime->hw = sst_platform_pcm_hw; | 235 | snd_soc_set_runtime_hwparams(substream, &sst_platform_pcm_hw); |
236 | |||
236 | stream = kzalloc(sizeof(*stream), GFP_KERNEL); | 237 | stream = kzalloc(sizeof(*stream), GFP_KERNEL); |
237 | if (!stream) | 238 | if (!stream) |
238 | return -ENOMEM; | 239 | return -ENOMEM; |