ASoC: samsung: Check to see if we managed to allocate a channel
Subsystems (4)
Mark Brown
maintainerPATCH 1/1 ASoC: samsung: Check to see if we managed to allocate a channel
From: Mark Brown <[email protected]>
Signed-off-by Mark Brown <[email protected]>
--- sound/soc/samsung/dma.c | 4 ++++ 1 file changed, 4 insertions(+)
sound/soc/samsung/dma.c +4 -0
@@ -183,6 +183,10 @@ static int dma_hw_params(struct snd_pcm_substream *substream, prtd->params->ch = prtd->params->ops->request ( prtd->params->channel, &req, rtd->cpu_dai->dev, prtd->params->ch_name); +if (!prtd->params->ch) { +pr_err ("Failed to allocate DMA channel\n" ); +return -ENXIO ; + } prtd->params->ops->config (prtd->params->ch, &config); }
Signature · 1 line
1.8.4.rc3
Quoted 5 lines · Mark Brown
Subject: [alsa-devel] [PATCH] ASoC: samsung: Check to see if we managed to allocate a channel
From: Mark Brown <[email protected]>
Signed-off-by Mark Brown <[email protected]>
Acked-by Sangbeom Kim <[email protected]>
Thanks,
Sangbeom.