| From 32a7c232b546c0e87184bc487bfff0be13e9ca91 Mon Sep 17 00:00:00 2001 |
| From: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com> |
| Date: Thu, 21 May 2015 03:49:13 +0000 |
| Subject: [PATCH 103/129] ASoC: rsnd: indicate unknown HW start |
| |
| rsnd_ssi_hw_stop() should be called after rsnd_ssi_hw_start(). |
| This patch indicates unknown hw_stop as error |
| |
| Signed-off-by: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com> |
| Tested-by: Keita Kobayashi <keita.kobayashi.ym@renesas.com> |
| Tested by: Cao Minh Hiep <cm-hiep@jinso.co.jp> |
| Signed-off-by: Mark Brown <broonie@kernel.org> |
| |
| (cherry picked from commit b847357979048f718aa7e218050982ec9c306285) |
| Signed-off-by: Simon Horman <horms+renesas@verge.net.au> |
| --- |
| sound/soc/sh/rcar/ssi.c | 4 +++- |
| 1 file changed, 3 insertions(+), 1 deletion(-) |
| |
| diff --git a/sound/soc/sh/rcar/ssi.c b/sound/soc/sh/rcar/ssi.c |
| index 5b89723c3206..927ac52a6d1e 100644 |
| --- a/sound/soc/sh/rcar/ssi.c |
| +++ b/sound/soc/sh/rcar/ssi.c |
| @@ -232,8 +232,10 @@ static void rsnd_ssi_hw_stop(struct rsnd_ssi *ssi) |
| struct device *dev = rsnd_priv_to_dev(priv); |
| u32 cr; |
| |
| - if (0 == ssi->usrcnt) /* stop might be called without start */ |
| + if (0 == ssi->usrcnt) { |
| + dev_err(dev, "%s called without starting\n", __func__); |
| return; |
| + } |
| |
| ssi->usrcnt--; |
| |
| -- |
| 2.6.2 |
| |