projects
/
profile
/
common
/
kernel-common.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
6418365
)
ASoC: samsung: Check to see if we managed to allocate a channel
author
Mark Brown
<broonie@linaro.org>
Mon, 19 Aug 2013 19:33:20 +0000
(20:33 +0100)
committer
Mark Brown
<broonie@linaro.org>
Tue, 20 Aug 2013 09:36:00 +0000
(10:36 +0100)
Signed-off-by: Mark Brown <broonie@linaro.org>
Acked-by: Sangbeom Kim <sbkim73@samsung.com>
sound/soc/samsung/dma.c
patch
|
blob
|
history
diff --git
a/sound/soc/samsung/dma.c
b/sound/soc/samsung/dma.c
index
21b7926
..
50c1eb6
100644
(file)
--- a/
sound/soc/samsung/dma.c
+++ b/
sound/soc/samsung/dma.c
@@
-176,6
+176,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);
}