All of lore.kernel.org
 help / color / mirror / Atom feed
From: Mark Brown <broonie@kernel.org>
To: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com>
Cc: alsa-devel@alsa-project.org, Mark Brown <broonie@kernel.org>,
	"Yokoyama (Renesas)" <hiroyuki.yokoyama.vx@renesas.com>,
	Simon <horms@verge.net.au>
Subject: Applied "ASoC: rsnd: use snd_pcm_running() in rsnd_io_is_working()" to the asoc tree
Date: Tue, 31 Oct 2017 11:21:23 +0000	[thread overview]
Message-ID: <E1e9Ubj-0002o9-AS@debutante> (raw)
In-Reply-To: <87vaiwxind.wl%kuninori.morimoto.gx@renesas.com>

The patch

   ASoC: rsnd: use snd_pcm_running() in rsnd_io_is_working()

has been applied to the asoc tree at

   git://git.kernel.org/pub/scm/linux/kernel/git/broonie/sound.git 

All being well this means that it will be integrated into the linux-next
tree (usually sometime in the next 24 hours) and sent to Linus during
the next merge window (or sooner if it is a bug fix), however if
problems are discovered then the patch may be dropped or reverted.  

You may get further e-mails resulting from automated or manual testing
and review of the tree, please engage with people reporting problems and
send followup patches addressing any issues that are reported if needed.

If any updates are required or you are submitting further changes they
should be sent as incremental updates against current git, existing
patches will not be replaced.

Please add any relevant lists and maintainers to the CCs when replying
to this mail.

Thanks,
Mark

>From 8fce974bc4d5478d4ddee2443a3e268532ab35a8 Mon Sep 17 00:00:00 2001
From: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com>
Date: Tue, 31 Oct 2017 00:39:45 +0000
Subject: [PATCH] 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>
---
 sound/soc/sh/rcar/core.c | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

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)
-- 
2.15.0.rc2

  reply	other threads:[~2017-10-31 11:21 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-10-31  0:37 [PATCH 0/5] ASoC: rsnd: small tidyups for Renesas sound Kuninori Morimoto
2017-10-31  0:38 ` [PATCH 1/5] ASoC: rsnd: don't use io->mod[] directly Kuninori Morimoto
2017-10-31 11:21   ` Applied "ASoC: rsnd: don't use io->mod[] directly" to the asoc tree Mark Brown
2017-10-31  0:38 ` [PATCH 2/5] ASoC: rsnd: tidyup rsnd_mod_next() for loop method Kuninori Morimoto
2017-10-31 11:21   ` Applied "ASoC: rsnd: tidyup rsnd_mod_next() for loop method" to the asoc tree Mark Brown
2017-10-31  0:39 ` [PATCH 3/5] ASoC: rsnd: NULL check is not needed for clk_unprepare() Kuninori Morimoto
2017-10-31 11:21   ` Applied "ASoC: rsnd: NULL check is not needed for clk_unprepare()" to the asoc tree Mark Brown
2017-10-31  0:39 ` [PATCH 4/5] ASoC: rsnd: use snd_pcm_running() in rsnd_io_is_working() Kuninori Morimoto
2017-10-31 11:21   ` Mark Brown [this message]
2017-10-31  0:40 ` [PATCH 5/5] ASoC: rsnd: Don't check SSISR::DIRQ when Capture Kuninori Morimoto
2017-10-31 11:21   ` Applied "ASoC: rsnd: Don't check SSISR::DIRQ when Capture" to the asoc tree Mark Brown

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=E1e9Ubj-0002o9-AS@debutante \
    --to=broonie@kernel.org \
    --cc=alsa-devel@alsa-project.org \
    --cc=hiroyuki.yokoyama.vx@renesas.com \
    --cc=horms@verge.net.au \
    --cc=kuninori.morimoto.gx@renesas.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.