diff options
| -rw-r--r-- | sound/soc/sh/rcar/core.c | 13 | ||||
| -rw-r--r-- | sound/soc/sh/rcar/scu.c | 2 |
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 | ||
| 208 | int rsnd_dma_available(struct rsnd_dma *dma) | 207 | int 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 | /* |
