Skip to content

Commit 4b47ab4

Browse files
committed
Merge remote-tracking branch 'asoc/fix/rcar' into asoc-linus
2 parents cde4d75 + a0d32bc commit 4b47ab4

File tree

2 files changed

+6
-9
lines changed

2 files changed

+6
-9
lines changed

sound/soc/sh/rcar/core.c

Lines changed: 5 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -200,9 +200,8 @@ static void rsnd_dma_do_work(struct work_struct *work)
200200
return;
201201
}
202202

203+
dma_async_issue_pending(dma->chan);
203204
}
204-
205-
dma_async_issue_pending(dma->chan);
206205
}
207206

208207
int rsnd_dma_available(struct rsnd_dma *dma)
@@ -288,15 +287,13 @@ int rsnd_dai_connect(struct rsnd_dai *rdai,
288287
struct rsnd_mod *mod,
289288
struct rsnd_dai_stream *io)
290289
{
291-
struct rsnd_priv *priv = rsnd_mod_to_priv(mod);
292-
struct device *dev = rsnd_priv_to_dev(priv);
293-
294-
if (!mod) {
295-
dev_err(dev, "NULL mod\n");
290+
if (!mod)
296291
return -EIO;
297-
}
298292

299293
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+
300297
dev_err(dev, "%s%d is not empty\n",
301298
rsnd_mod_name(mod),
302299
rsnd_mod_id(mod));

sound/soc/sh/rcar/scu.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ static int rsnd_scu_set_route(struct rsnd_priv *priv,
6868
return 0;
6969

7070
id = rsnd_mod_id(mod);
71-
if (id < 0 || id > ARRAY_SIZE(routes))
71+
if (id < 0 || id >= ARRAY_SIZE(routes))
7272
return -EIO;
7373

7474
/*

0 commit comments

Comments
 (0)