ASoC: rsnd: indicate unknown HW start
authorKuninori Morimoto <kuninori.morimoto.gx@renesas.com>
Thu, 21 May 2015 03:49:13 +0000 (03:49 +0000)
committerMark Brown <broonie@kernel.org>
Thu, 21 May 2015 10:46:00 +0000 (11:46 +0100)
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>
sound/soc/sh/rcar/ssi.c

index 5b89723..927ac52 100644 (file)
@@ -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--;