diff options
author | Kuninori Morimoto <kuninori.morimoto.gx@renesas.com> | 2017-10-30 20:39:45 -0400 |
---|---|---|
committer | Mark Brown <broonie@kernel.org> | 2017-10-31 07:06:49 -0400 |
commit | 8fce974bc4d5478d4ddee2443a3e268532ab35a8 (patch) | |
tree | 8d3251d1bd37affa13fd8b322b29ec2d794fa3d0 | |
parent | ed3ac14ca90074d51f365dba5ed535e76ea155ea (diff) |
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>
-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, | |||
199 | int rsnd_io_is_working(struct rsnd_dai_stream *io) | 199 | int rsnd_io_is_working(struct rsnd_dai_stream *io) |
200 | { | 200 | { |
201 | /* see rsnd_dai_stream_init/quit() */ | 201 | /* see rsnd_dai_stream_init/quit() */ |
202 | return !!io->substream; | 202 | if (io->substream) |
203 | return snd_pcm_running(io->substream); | ||
204 | |||
205 | return 0; | ||
203 | } | 206 | } |
204 | 207 | ||
205 | int rsnd_runtime_channel_original(struct rsnd_dai_stream *io) | 208 | int rsnd_runtime_channel_original(struct rsnd_dai_stream *io) |