Skip to content

Commit

Permalink
Merge remote-tracking branch 'asoc/fix/rcar' into asoc-linus
Browse files Browse the repository at this point in the history
  • Loading branch information
Mark Brown committed Nov 20, 2013
2 parents cde4d75 + a0d32bc commit 4b47ab4
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 9 deletions.
13 changes: 5 additions & 8 deletions sound/soc/sh/rcar/core.c
Original file line number Diff line number Diff line change
Expand Up @@ -200,9 +200,8 @@ static void rsnd_dma_do_work(struct work_struct *work)
return;
}

dma_async_issue_pending(dma->chan);
}

dma_async_issue_pending(dma->chan);
}

int rsnd_dma_available(struct rsnd_dma *dma)
Expand Down Expand Up @@ -288,15 +287,13 @@ int rsnd_dai_connect(struct rsnd_dai *rdai,
struct rsnd_mod *mod,
struct rsnd_dai_stream *io)
{
struct rsnd_priv *priv = rsnd_mod_to_priv(mod);
struct device *dev = rsnd_priv_to_dev(priv);

if (!mod) {
dev_err(dev, "NULL mod\n");
if (!mod)
return -EIO;
}

if (!list_empty(&mod->list)) {
struct rsnd_priv *priv = rsnd_mod_to_priv(mod);
struct device *dev = rsnd_priv_to_dev(priv);

dev_err(dev, "%s%d is not empty\n",
rsnd_mod_name(mod),
rsnd_mod_id(mod));
Expand Down
2 changes: 1 addition & 1 deletion sound/soc/sh/rcar/scu.c
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ static int rsnd_scu_set_route(struct rsnd_priv *priv,
return 0;

id = rsnd_mod_id(mod);
if (id < 0 || id > ARRAY_SIZE(routes))
if (id < 0 || id >= ARRAY_SIZE(routes))
return -EIO;

/*
Expand Down

0 comments on commit 4b47ab4

Please sign in to comment.