Skip to content

Commit c0aaddf

Browse files
morimotoDinh Nguyen
authored andcommitted
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 <[email protected]> Tested-by: Keita Kobayashi <[email protected]> Tested by: Cao Minh Hiep <[email protected]> Signed-off-by: Mark Brown <[email protected]> (cherry picked from commit b847357) Signed-off-by: Simon Horman <[email protected]>
1 parent d674223 commit c0aaddf

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

sound/soc/sh/rcar/ssi.c

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -232,8 +232,10 @@ static void rsnd_ssi_hw_stop(struct rsnd_ssi *ssi)
232232
struct device *dev = rsnd_priv_to_dev(priv);
233233
u32 cr;
234234

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__);
236237
return;
238+
}
237239

238240
ssi->usrcnt--;
239241

0 commit comments

Comments
 (0)