* [PATCH] ASoC: rsnd: need to call nolock_stop if nolock_start was failed
[not found] ` <87a86b53ct.wl%kuninori.morimoto.gx@renesas.com>
@ 2017-05-17 7:59 ` Kuninori Morimoto
2017-05-17 8:10 ` Kuninori Morimoto
2017-05-17 9:52 ` Applied "ASoC: rsnd: need to call nolock_stop if nolock_start was failed" to the asoc tree Mark Brown
0 siblings, 2 replies; 3+ messages in thread
From: Kuninori Morimoto @ 2017-05-17 7:59 UTC (permalink / raw)
To: Mark Brown; +Cc: Linux-ALSA, Simon, linux-renesas-soc, Hiroyuki Yokoyama
From: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com>
rsnd_dai_call() is counting the called number of start/stop functions.
nolock_stop should be called if nolock_start was failed.
Otherwise, nolock_start doesn't called in 2nd play.
This patch solved this issue.
Signed-off-by: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com>
Tested-by: Hiroyuki Yokoyama <hiroyuki.yokoyama.vx@renesas.com>
---
sound/soc/sh/rcar/core.c | 7 ++++++-
1 file changed, 6 insertions(+), 1 deletion(-)
diff --git a/sound/soc/sh/rcar/core.c b/sound/soc/sh/rcar/core.c
index 8c1f4e2..e16f723 100644
--- a/sound/soc/sh/rcar/core.c
+++ b/sound/soc/sh/rcar/core.c
@@ -766,11 +766,16 @@ static int rsnd_soc_dai_startup(struct snd_pcm_substream *substream,
{
struct rsnd_dai *rdai = rsnd_dai_to_rdai(dai);
struct rsnd_dai_stream *io = rsnd_rdai_to_io(rdai, substream);
+ int ret;
/*
* call rsnd_dai_call without spinlock
*/
- return rsnd_dai_call(nolock_start, io, priv);
+ ret = rsnd_dai_call(nolock_start, io, priv);
+ if (ret < 0)
+ rsnd_dai_call(nolock_stop, io, priv);
+
+ return ret;
}
static void rsnd_soc_dai_shutdown(struct snd_pcm_substream *substream,
--
1.9.1
^ permalink raw reply related [flat|nested] 3+ messages in thread
* Re: [PATCH] ASoC: rsnd: need to call nolock_stop if nolock_start was failed
2017-05-17 7:59 ` [PATCH] ASoC: rsnd: need to call nolock_stop if nolock_start was failed Kuninori Morimoto
@ 2017-05-17 8:10 ` Kuninori Morimoto
2017-05-17 9:52 ` Applied "ASoC: rsnd: need to call nolock_stop if nolock_start was failed" to the asoc tree Mark Brown
1 sibling, 0 replies; 3+ messages in thread
From: Kuninori Morimoto @ 2017-05-17 8:10 UTC (permalink / raw)
To: Mark Brown; +Cc: linux-renesas-soc, Linux-ALSA, Simon, Hiroyuki Yokoyama
Hi
> From: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com>
>
> rsnd_dai_call() is counting the called number of start/stop functions.
> nolock_stop should be called if nolock_start was failed.
> Otherwise, nolock_start doesn't called in 2nd play.
> This patch solved this issue.
>
> Signed-off-by: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com>
> Tested-by: Hiroyuki Yokoyama <hiroyuki.yokoyama.vx@renesas.com>
This was
Reported-by: Hiroyuki Yokoyama <hiroyuki.yokoyama.vx@renesas.com>
Mark, please let me know if v2 was required
> ---
> sound/soc/sh/rcar/core.c | 7 ++++++-
> 1 file changed, 6 insertions(+), 1 deletion(-)
>
> diff --git a/sound/soc/sh/rcar/core.c b/sound/soc/sh/rcar/core.c
> index 8c1f4e2..e16f723 100644
> --- a/sound/soc/sh/rcar/core.c
> +++ b/sound/soc/sh/rcar/core.c
> @@ -766,11 +766,16 @@ static int rsnd_soc_dai_startup(struct snd_pcm_substream *substream,
> {
> struct rsnd_dai *rdai = rsnd_dai_to_rdai(dai);
> struct rsnd_dai_stream *io = rsnd_rdai_to_io(rdai, substream);
> + int ret;
>
> /*
> * call rsnd_dai_call without spinlock
> */
> - return rsnd_dai_call(nolock_start, io, priv);
> + ret = rsnd_dai_call(nolock_start, io, priv);
> + if (ret < 0)
> + rsnd_dai_call(nolock_stop, io, priv);
> +
> + return ret;
> }
>
> static void rsnd_soc_dai_shutdown(struct snd_pcm_substream *substream,
> --
> 1.9.1
>
^ permalink raw reply [flat|nested] 3+ messages in thread
* Applied "ASoC: rsnd: need to call nolock_stop if nolock_start was failed" to the asoc tree
2017-05-17 7:59 ` [PATCH] ASoC: rsnd: need to call nolock_stop if nolock_start was failed Kuninori Morimoto
2017-05-17 8:10 ` Kuninori Morimoto
@ 2017-05-17 9:52 ` Mark Brown
1 sibling, 0 replies; 3+ messages in thread
From: Mark Brown @ 2017-05-17 9:52 UTC (permalink / raw)
To: Kuninori Morimoto; +Cc: Hiroyuki Yokoyama
The patch
ASoC: rsnd: need to call nolock_stop if nolock_start was failed
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 2adcea7e22d382e2becf5671e92296f79672b957 Mon Sep 17 00:00:00 2001
From: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com>
Date: Wed, 17 May 2017 07:59:20 +0000
Subject: [PATCH] ASoC: rsnd: need to call nolock_stop if nolock_start was
failed
rsnd_dai_call() is counting the called number of start/stop functions.
nolock_stop should be called if nolock_start was failed.
Otherwise, nolock_start doesn't called in 2nd play.
This patch solved this issue.
Signed-off-by: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com>
Reported-by: Hiroyuki Yokoyama <hiroyuki.yokoyama.vx@renesas.com>
Tested-by: Hiroyuki Yokoyama <hiroyuki.yokoyama.vx@renesas.com>
Signed-off-by: Mark Brown <broonie@kernel.org>
---
sound/soc/sh/rcar/core.c | 7 ++++++-
1 file changed, 6 insertions(+), 1 deletion(-)
diff --git a/sound/soc/sh/rcar/core.c b/sound/soc/sh/rcar/core.c
index 1744015408c3..3c47af1990cb 100644
--- a/sound/soc/sh/rcar/core.c
+++ b/sound/soc/sh/rcar/core.c
@@ -715,11 +715,16 @@ static int rsnd_soc_dai_startup(struct snd_pcm_substream *substream,
{
struct rsnd_dai *rdai = rsnd_dai_to_rdai(dai);
struct rsnd_dai_stream *io = rsnd_rdai_to_io(rdai, substream);
+ int ret;
/*
* call rsnd_dai_call without spinlock
*/
- return rsnd_dai_call(nolock_start, io, priv);
+ ret = rsnd_dai_call(nolock_start, io, priv);
+ if (ret < 0)
+ rsnd_dai_call(nolock_stop, io, priv);
+
+ return ret;
}
static void rsnd_soc_dai_shutdown(struct snd_pcm_substream *substream,
--
2.11.0
^ permalink raw reply related [flat|nested] 3+ messages in thread
end of thread, other threads:[~2017-05-17 9:52 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
[not found] <87o9us3zjh.wl%kuninori.morimoto.gx@renesas.com>
[not found] ` <201705170751.AA01815@RI117011.renesas.com>
[not found] ` <87a86b53ct.wl%kuninori.morimoto.gx@renesas.com>
2017-05-17 7:59 ` [PATCH] ASoC: rsnd: need to call nolock_stop if nolock_start was failed Kuninori Morimoto
2017-05-17 8:10 ` Kuninori Morimoto
2017-05-17 9:52 ` Applied "ASoC: rsnd: need to call nolock_stop if nolock_start was failed" to the asoc tree Mark Brown
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox