diff options
Diffstat (limited to 'sound/soc/intel/atom/sst-mfld-platform-pcm.c')
| -rw-r--r-- | sound/soc/intel/atom/sst-mfld-platform-pcm.c | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/sound/soc/intel/atom/sst-mfld-platform-pcm.c b/sound/soc/intel/atom/sst-mfld-platform-pcm.c index afc559866095..91a2436ce952 100644 --- a/sound/soc/intel/atom/sst-mfld-platform-pcm.c +++ b/sound/soc/intel/atom/sst-mfld-platform-pcm.c | |||
| @@ -399,7 +399,13 @@ static int sst_media_hw_params(struct snd_pcm_substream *substream, | |||
| 399 | struct snd_pcm_hw_params *params, | 399 | struct snd_pcm_hw_params *params, |
| 400 | struct snd_soc_dai *dai) | 400 | struct snd_soc_dai *dai) |
| 401 | { | 401 | { |
| 402 | snd_pcm_lib_malloc_pages(substream, params_buffer_bytes(params)); | 402 | int ret; |
| 403 | |||
| 404 | ret = | ||
| 405 | snd_pcm_lib_malloc_pages(substream, | ||
| 406 | params_buffer_bytes(params)); | ||
| 407 | if (ret) | ||
| 408 | return ret; | ||
| 403 | memset(substream->runtime->dma_area, 0, params_buffer_bytes(params)); | 409 | memset(substream->runtime->dma_area, 0, params_buffer_bytes(params)); |
| 404 | return 0; | 410 | return 0; |
| 405 | } | 411 | } |
