Skip to content

Commit

Permalink
ASoC: atmel_ssc_dai: Fix DMA params for different SSC
Browse files Browse the repository at this point in the history
follow-up patch from c706f2e ASoC: atmel_ssc_dai: distinguish the
different SSC

cpu_dai id is always 0, use platform_device id to distinguish DMA
parameters of SSCs

Signed-off-by: Peter Meerwald-Stadler <p.meerwald@bct-electronic.com>
Signed-off-by: Mark Brown <broonie@kernel.org>
  • Loading branch information
Peter Meerwald authored and Mark Brown committed Jul 7, 2016
1 parent fef5b2b commit e401029
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion sound/soc/atmel/atmel_ssc_dai.c
Original file line number Diff line number Diff line change
Expand Up @@ -321,7 +321,7 @@ static int atmel_ssc_startup(struct snd_pcm_substream *substream,
return ret;
}

dma_params = &ssc_dma_params[dai->id][dir];
dma_params = &ssc_dma_params[pdev->id][dir];
dma_params->ssc = ssc_p->ssc;
dma_params->substream = substream;

Expand Down

0 comments on commit e401029

Please sign in to comment.