aboutsummaryrefslogtreecommitdiffstats
path: root/sound
diff options
context:
space:
mode:
authorMark Brown <broonie@linaro.org>2013-11-20 10:20:38 -0500
committerMark Brown <broonie@linaro.org>2013-11-20 10:20:38 -0500
commit4b47ab4265c9f7164f9c897792551d4640eaf9ab (patch)
tree5d904b60e62d1cb13a69225fddf35ffdd659a69f /sound
parentcde4d7596c838e073ad0f1f9bd04e7ac01778d34 (diff)
parenta0d32bca511fd6b570e964ca38a0c3dcd9eacafb (diff)
Merge remote-tracking branch 'asoc/fix/rcar' into asoc-linus
Diffstat (limited to 'sound')
-rw-r--r--sound/soc/sh/rcar/core.c13
-rw-r--r--sound/soc/sh/rcar/scu.c2
2 files changed, 6 insertions, 9 deletions
diff --git a/sound/soc/sh/rcar/core.c b/sound/soc/sh/rcar/core.c
index 78c35b44fc04..b3653d37f75f 100644
--- a/sound/soc/sh/rcar/core.c
+++ b/sound/soc/sh/rcar/core.c
@@ -200,9 +200,8 @@ static void rsnd_dma_do_work(struct work_struct *work)
200 return; 200 return;
201 } 201 }
202 202
203 dma_async_issue_pending(dma->chan);
203 } 204 }
204
205 dma_async_issue_pending(dma->chan);
206} 205}
207 206
208int rsnd_dma_available(struct rsnd_dma *dma) 207int rsnd_dma_available(struct rsnd_dma *dma)
@@ -288,15 +287,13 @@ int rsnd_dai_connect(struct rsnd_dai *rdai,
288 struct rsnd_mod *mod, 287 struct rsnd_mod *mod,
289 struct rsnd_dai_stream *io) 288 struct rsnd_dai_stream *io)
290{ 289{
291 struct rsnd_priv *priv = rsnd_mod_to_priv(mod); 290 if (!mod)
292 struct device *dev = rsnd_priv_to_dev(priv);
293
294 if (!mod) {
295 dev_err(dev, "NULL mod\n");
296 return -EIO; 291 return -EIO;
297 }
298 292
299 if (!list_empty(&mod->list)) { 293 if (!list_empty(&mod->list)) {
294 struct rsnd_priv *priv = rsnd_mod_to_priv(mod);
295 struct device *dev = rsnd_priv_to_dev(priv);
296
300 dev_err(dev, "%s%d is not empty\n", 297 dev_err(dev, "%s%d is not empty\n",
301 rsnd_mod_name(mod), 298 rsnd_mod_name(mod),
302 rsnd_mod_id(mod)); 299 rsnd_mod_id(mod));
diff --git a/sound/soc/sh/rcar/scu.c b/sound/soc/sh/rcar/scu.c
index 1ab1bce6be7f..5e46ef2e8bb8 100644
--- a/sound/soc/sh/rcar/scu.c
+++ b/sound/soc/sh/rcar/scu.c
@@ -68,7 +68,7 @@ static int rsnd_scu_set_route(struct rsnd_priv *priv,
68 return 0; 68 return 0;
69 69
70 id = rsnd_mod_id(mod); 70 id = rsnd_mod_id(mod);
71 if (id < 0 || id > ARRAY_SIZE(routes)) 71 if (id < 0 || id >= ARRAY_SIZE(routes))
72 return -EIO; 72 return -EIO;
73 73
74 /* 74 /*