diff options
author | Kuninori Morimoto <kuninori.morimoto.gx@renesas.com> | 2015-05-20 23:49:13 -0400 |
---|---|---|
committer | Mark Brown <broonie@kernel.org> | 2015-05-21 06:46:00 -0400 |
commit | b847357979048f718aa7e218050982ec9c306285 (patch) | |
tree | 6ac5c10b97f608e3ea9bedaed4c070351183e4c4 /sound/soc/sh | |
parent | ae11a9be5a9bfc085ab3e0b7d2ea7cd01bc1d477 (diff) |
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>
Diffstat (limited to 'sound/soc/sh')
-rw-r--r-- | sound/soc/sh/rcar/ssi.c | 4 |
1 files changed, 3 insertions, 1 deletions
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) | |||
232 | struct device *dev = rsnd_priv_to_dev(priv); | 232 | struct device *dev = rsnd_priv_to_dev(priv); |
233 | u32 cr; | 233 | u32 cr; |
234 | 234 | ||
235 | if (0 == ssi->usrcnt) /* stop might be called without start */ | 235 | if (0 == ssi->usrcnt) { |
236 | dev_err(dev, "%s called without starting\n", __func__); | ||
236 | return; | 237 | return; |
238 | } | ||
237 | 239 | ||
238 | ssi->usrcnt--; | 240 | ssi->usrcnt--; |
239 | 241 | ||