All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] ASoC: samsung: Check to see if we managed to allocate a channel
@ 2013-08-19 19:34 Mark Brown
  2013-08-19 23:13 ` [alsa-devel] " Sangbeom Kim
  0 siblings, 1 reply; 2+ messages in thread
From: Mark Brown @ 2013-08-19 19:34 UTC (permalink / raw)
  To: Sangbeom Kim, Liam Girdwood
  Cc: alsa-devel, linux-samsung-soc, linaro-kernel, Mark Brown

From: Mark Brown <broonie@linaro.org>

Signed-off-by: Mark Brown <broonie@linaro.org>
---
 sound/soc/samsung/dma.c | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/sound/soc/samsung/dma.c b/sound/soc/samsung/dma.c
index 6e2b2b4..d54df85 100644
--- a/sound/soc/samsung/dma.c
+++ b/sound/soc/samsung/dma.c
@@ -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);
 	}
 
-- 
1.8.4.rc3

^ permalink raw reply related	[flat|nested] 2+ messages in thread

* RE: [alsa-devel] [PATCH] ASoC: samsung: Check to see if we managed to allocate a channel
  2013-08-19 19:34 [PATCH] ASoC: samsung: Check to see if we managed to allocate a channel Mark Brown
@ 2013-08-19 23:13 ` Sangbeom Kim
  0 siblings, 0 replies; 2+ messages in thread
From: Sangbeom Kim @ 2013-08-19 23:13 UTC (permalink / raw)
  To: 'Mark Brown', 'Liam Girdwood'
  Cc: alsa-devel, linux-samsung-soc, linaro-kernel,
	'Mark Brown'

On Tuesday, August 20, 2013 4:35 AM, Mark Brown wrote:

> Subject: [alsa-devel] [PATCH] ASoC: samsung: Check to see if we managed to allocate a channel
> 
> From: Mark Brown <broonie@linaro.org>
> 
> Signed-off-by: Mark Brown <broonie@linaro.org>

Acked-by: Sangbeom Kim <sbkim73@samsung.com>

Thanks,
Sangbeom.

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2013-08-19 23:13 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-08-19 19:34 [PATCH] ASoC: samsung: Check to see if we managed to allocate a channel Mark Brown
2013-08-19 23:13 ` [alsa-devel] " Sangbeom Kim

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.