aboutsummaryrefslogtreecommitdiffstats
path: root/sound/soc/s6000/s6000-pcm.c
diff options
context:
space:
mode:
Diffstat (limited to 'sound/soc/s6000/s6000-pcm.c')
-rw-r--r--sound/soc/s6000/s6000-pcm.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/sound/soc/s6000/s6000-pcm.c b/sound/soc/s6000/s6000-pcm.c
index 43c014f362f6..716da861c629 100644
--- a/sound/soc/s6000/s6000-pcm.c
+++ b/sound/soc/s6000/s6000-pcm.c
@@ -435,7 +435,8 @@ static void s6000_pcm_free(struct snd_pcm *pcm)
435{ 435{
436 struct snd_soc_pcm_runtime *runtime = pcm->private_data; 436 struct snd_soc_pcm_runtime *runtime = pcm->private_data;
437 struct s6000_pcm_dma_params *params = 437 struct s6000_pcm_dma_params *params =
438 snd_soc_dai_get_dma_data(runtime->cpu_dai, pcm->streams[0].substream); 438 snd_soc_dai_get_dma_data(runtime->cpu_dai,
439 pcm->streams[SNDRV_PCM_STREAM_PLAYBACK].substream);
439 440
440 free_irq(params->irq, pcm); 441 free_irq(params->irq, pcm);
441 snd_pcm_lib_preallocate_free_for_all(pcm); 442 snd_pcm_lib_preallocate_free_for_all(pcm);
@@ -451,7 +452,7 @@ static int s6000_pcm_new(struct snd_soc_pcm_runtime *runtime)
451 int res; 452 int res;
452 453
453 params = snd_soc_dai_get_dma_data(runtime->cpu_dai, 454 params = snd_soc_dai_get_dma_data(runtime->cpu_dai,
454 pcm->streams[0].substream); 455 pcm->streams[SNDRV_PCM_STREAM_PLAYBACK].substream);
455 456
456 if (!card->dev->dma_mask) 457 if (!card->dev->dma_mask)
457 card->dev->dma_mask = &s6000_pcm_dmamask; 458 card->dev->dma_mask = &s6000_pcm_dmamask;