diff options
author | Kuninori Morimoto <kuninori.morimoto.gx@renesas.com> | 2017-10-31 03:39:45 +0300 |
---|---|---|
committer | Mark Brown <broonie@kernel.org> | 2017-10-31 14:06:49 +0300 |
commit | 8fce974bc4d5478d4ddee2443a3e268532ab35a8 (patch) | |
tree | 8d3251d1bd37affa13fd8b322b29ec2d794fa3d0 /sound/soc/sh | |
parent | ed3ac14ca90074d51f365dba5ed535e76ea155ea (diff) | |
download | linux-8fce974bc4d5478d4ddee2443a3e268532ab35a8.tar.xz |
ASoC: rsnd: use snd_pcm_running() in rsnd_io_is_working()
Let's use more common style to checking running/working
Signed-off-by: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com>
Signed-off-by: Mark Brown <broonie@kernel.org>
Diffstat (limited to 'sound/soc/sh')
-rw-r--r-- | sound/soc/sh/rcar/core.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/sound/soc/sh/rcar/core.c b/sound/soc/sh/rcar/core.c index 0216d3f53097..b36832ef7342 100644 --- a/sound/soc/sh/rcar/core.c +++ b/sound/soc/sh/rcar/core.c @@ -199,7 +199,10 @@ void rsnd_mod_interrupt(struct rsnd_mod *mod, int rsnd_io_is_working(struct rsnd_dai_stream *io) { /* see rsnd_dai_stream_init/quit() */ - return !!io->substream; + if (io->substream) + return snd_pcm_running(io->substream); + + return 0; } int rsnd_runtime_channel_original(struct rsnd_dai_stream *io) |