All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH 0/5] ASoC: rsnd: small tidyups for Renesas sound
@ 2017-10-31  0:37 Kuninori Morimoto
  2017-10-31  0:38 ` [PATCH 1/5] ASoC: rsnd: don't use io->mod[] directly Kuninori Morimoto
                   ` (4 more replies)
  0 siblings, 5 replies; 11+ messages in thread
From: Kuninori Morimoto @ 2017-10-31  0:37 UTC (permalink / raw)
  To: Mark Brown; +Cc: Linux-ALSA, Simon, Yokoyama (Renesas)


Hi Mark

These are small tidyups for Renesas sound driver.

Kuninori Morimoto (5):
  ASoC: rsnd: don't use io->mod[] directly
  ASoC: rsnd: tidyup rsnd_mod_next() for loop method
  ASoC: rsnd: NULL check is not needed for clk_unprepare()
  ASoC: rsnd: use snd_pcm_running() in rsnd_io_is_working()
  ASoC: rsnd: Don't check SSISR::DIRQ when Capture

 sound/soc/sh/rcar/core.c | 16 ++++++++--------
 sound/soc/sh/rcar/ssi.c  | 15 +++++++++------
 2 files changed, 17 insertions(+), 14 deletions(-)

-- 
1.9.1

^ permalink raw reply	[flat|nested] 11+ messages in thread

* [PATCH 1/5] ASoC: rsnd: don't use io->mod[] directly
  2017-10-31  0:37 [PATCH 0/5] ASoC: rsnd: small tidyups for Renesas sound Kuninori Morimoto
@ 2017-10-31  0:38 ` 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
                   ` (3 subsequent siblings)
  4 siblings, 1 reply; 11+ messages in thread
From: Kuninori Morimoto @ 2017-10-31  0:38 UTC (permalink / raw)
  To: Mark Brown; +Cc: Linux-ALSA, Simon, Yokoyama (Renesas)


From: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com>

We have rsnd_io_to_mod() macro. Let's use it

Signed-off-by: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com>
---
 sound/soc/sh/rcar/core.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/sound/soc/sh/rcar/core.c b/sound/soc/sh/rcar/core.c
index 15d304d..1ef7003 100644
--- a/sound/soc/sh/rcar/core.c
+++ b/sound/soc/sh/rcar/core.c
@@ -407,7 +407,7 @@ struct rsnd_mod *rsnd_mod_next(int *iterator,
 
 	for (; *iterator < max; (*iterator)++) {
 		type = (array) ? array[*iterator] : *iterator;
-		mod = io->mod[type];
+		mod = rsnd_io_to_mod(io, type);
 		if (!mod)
 			continue;
 
-- 
1.9.1

^ permalink raw reply related	[flat|nested] 11+ messages in thread

* [PATCH 2/5] ASoC: rsnd: tidyup rsnd_mod_next() for loop method
  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  0:38 ` 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
                   ` (2 subsequent siblings)
  4 siblings, 1 reply; 11+ messages in thread
From: Kuninori Morimoto @ 2017-10-31  0:38 UTC (permalink / raw)
  To: Mark Brown; +Cc: Linux-ALSA, Simon, Yokoyama (Renesas)


From: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com>

Let's remove point less "continue"

Signed-off-by: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com>
---
 sound/soc/sh/rcar/core.c | 6 ++----
 1 file changed, 2 insertions(+), 4 deletions(-)

diff --git a/sound/soc/sh/rcar/core.c b/sound/soc/sh/rcar/core.c
index 1ef7003..23bf313 100644
--- a/sound/soc/sh/rcar/core.c
+++ b/sound/soc/sh/rcar/core.c
@@ -408,10 +408,8 @@ struct rsnd_mod *rsnd_mod_next(int *iterator,
 	for (; *iterator < max; (*iterator)++) {
 		type = (array) ? array[*iterator] : *iterator;
 		mod = rsnd_io_to_mod(io, type);
-		if (!mod)
-			continue;
-
-		return mod;
+		if (mod)
+			return mod;
 	}
 
 	return NULL;
-- 
1.9.1

^ permalink raw reply related	[flat|nested] 11+ messages in thread

* [PATCH 3/5] ASoC: rsnd: NULL check is not needed for clk_unprepare()
  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  0:38 ` [PATCH 2/5] ASoC: rsnd: tidyup rsnd_mod_next() for loop method Kuninori Morimoto
@ 2017-10-31  0:39 ` 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  0:40 ` [PATCH 5/5] ASoC: rsnd: Don't check SSISR::DIRQ when Capture Kuninori Morimoto
  4 siblings, 1 reply; 11+ messages in thread
From: Kuninori Morimoto @ 2017-10-31  0:39 UTC (permalink / raw)
  To: Mark Brown; +Cc: Linux-ALSA, Simon, Yokoyama (Renesas)


From: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com>

clk_unprepare() is checking parameter by IS_ERR_OR_NULL().
clk NULL check is not needed on rsnd_mod_quit()

Signed-off-by: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com>
---
 sound/soc/sh/rcar/core.c | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/sound/soc/sh/rcar/core.c b/sound/soc/sh/rcar/core.c
index 23bf313..b27112d 100644
--- a/sound/soc/sh/rcar/core.c
+++ b/sound/soc/sh/rcar/core.c
@@ -172,8 +172,7 @@ int rsnd_mod_init(struct rsnd_priv *priv,
 
 void rsnd_mod_quit(struct rsnd_mod *mod)
 {
-	if (mod->clk)
-		clk_unprepare(mod->clk);
+	clk_unprepare(mod->clk);
 	mod->clk = NULL;
 }
 
-- 
1.9.1

^ permalink raw reply related	[flat|nested] 11+ messages in thread

* [PATCH 4/5] ASoC: rsnd: use snd_pcm_running() in rsnd_io_is_working()
  2017-10-31  0:37 [PATCH 0/5] ASoC: rsnd: small tidyups for Renesas sound Kuninori Morimoto
                   ` (2 preceding siblings ...)
  2017-10-31  0:39 ` [PATCH 3/5] ASoC: rsnd: NULL check is not needed for clk_unprepare() Kuninori Morimoto
@ 2017-10-31  0:39 ` Kuninori Morimoto
  2017-10-31 11:21   ` Applied "ASoC: rsnd: use snd_pcm_running() in rsnd_io_is_working()" to the asoc tree Mark Brown
  2017-10-31  0:40 ` [PATCH 5/5] ASoC: rsnd: Don't check SSISR::DIRQ when Capture Kuninori Morimoto
  4 siblings, 1 reply; 11+ messages in thread
From: Kuninori Morimoto @ 2017-10-31  0:39 UTC (permalink / raw)
  To: Mark Brown; +Cc: Linux-ALSA, Simon, Yokoyama (Renesas)


From: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com>

Let's use more common style to checking running/working

Signed-off-by: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com>
---
 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 b27112d..0ef730b1 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)
-- 
1.9.1

^ permalink raw reply related	[flat|nested] 11+ messages in thread

* [PATCH 5/5] ASoC: rsnd: Don't check SSISR::DIRQ when Capture
  2017-10-31  0:37 [PATCH 0/5] ASoC: rsnd: small tidyups for Renesas sound Kuninori Morimoto
                   ` (3 preceding siblings ...)
  2017-10-31  0:39 ` [PATCH 4/5] ASoC: rsnd: use snd_pcm_running() in rsnd_io_is_working() Kuninori Morimoto
@ 2017-10-31  0:40 ` Kuninori Morimoto
  2017-10-31 11:21   ` Applied "ASoC: rsnd: Don't check SSISR::DIRQ when Capture" to the asoc tree Mark Brown
  4 siblings, 1 reply; 11+ messages in thread
From: Kuninori Morimoto @ 2017-10-31  0:40 UTC (permalink / raw)
  To: Mark Brown; +Cc: Linux-ALSA, Simon, Yokoyama (Renesas)


From: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com>

When stop case, it was Playback, it need to check all data were
completely sent. But in Capture case, it might not receive data
anymore. SSISR::DIRQ check is not need for Capture case.

Reported-by: Hiroyuki Yokoyama <hiroyuki.yokoyama.vx@renesas.com>
Signed-off-by: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com>
---
 sound/soc/sh/rcar/ssi.c | 15 +++++++++------
 1 file changed, 9 insertions(+), 6 deletions(-)

diff --git a/sound/soc/sh/rcar/ssi.c b/sound/soc/sh/rcar/ssi.c
index 4ed8871..47f78a5 100644
--- a/sound/soc/sh/rcar/ssi.c
+++ b/sound/soc/sh/rcar/ssi.c
@@ -598,15 +598,18 @@ static int rsnd_ssi_stop(struct rsnd_mod *mod,
 	if (rsnd_ssi_is_parent(mod, io))
 		return 0;
 
-	/*
-	 * disable all IRQ,
-	 * and, wait all data was sent
-	 */
 	cr  =	ssi->cr_own	|
 		ssi->cr_clk;
 
-	rsnd_mod_write(mod, SSICR, cr | EN);
-	rsnd_ssi_status_check(mod, DIRQ);
+	/*
+	 * disable all IRQ,
+	 * Playback: Wait all data was sent
+	 * Capture:  It might not receave data. Do nothing
+	 */
+	if (rsnd_io_is_play(io)) {
+		rsnd_mod_write(mod, SSICR, cr | EN);
+		rsnd_ssi_status_check(mod, DIRQ);
+	}
 
 	/*
 	 * disable SSI,
-- 
1.9.1

^ permalink raw reply related	[flat|nested] 11+ messages in thread

* Applied "ASoC: rsnd: Don't check SSISR::DIRQ when Capture" to the asoc tree
  2017-10-31  0:40 ` [PATCH 5/5] ASoC: rsnd: Don't check SSISR::DIRQ when Capture Kuninori Morimoto
@ 2017-10-31 11:21   ` Mark Brown
  0 siblings, 0 replies; 11+ messages in thread
From: Mark Brown @ 2017-10-31 11:21 UTC (permalink / raw)
  To: Kuninori Morimoto; +Cc: alsa-devel, Mark Brown, Yokoyama (Renesas), Simon

The patch

   ASoC: rsnd: Don't check SSISR::DIRQ when Capture

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 ce548931207c0d0059bd90171e2c458f897354d7 Mon Sep 17 00:00:00 2001
From: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com>
Date: Tue, 31 Oct 2017 00:40:32 +0000
Subject: [PATCH] ASoC: rsnd: Don't check SSISR::DIRQ when Capture

When stop case, it was Playback, it need to check all data were
completely sent. But in Capture case, it might not receive data
anymore. SSISR::DIRQ check is not need for Capture case.

Reported-by: Hiroyuki Yokoyama <hiroyuki.yokoyama.vx@renesas.com>
Signed-off-by: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com>
Signed-off-by: Mark Brown <broonie@kernel.org>
---
 sound/soc/sh/rcar/ssi.c | 15 +++++++++------
 1 file changed, 9 insertions(+), 6 deletions(-)

diff --git a/sound/soc/sh/rcar/ssi.c b/sound/soc/sh/rcar/ssi.c
index 61b4ce20ee2b..58e3420a1f05 100644
--- a/sound/soc/sh/rcar/ssi.c
+++ b/sound/soc/sh/rcar/ssi.c
@@ -598,15 +598,18 @@ static int rsnd_ssi_stop(struct rsnd_mod *mod,
 	if (rsnd_ssi_is_parent(mod, io))
 		return 0;
 
-	/*
-	 * disable all IRQ,
-	 * and, wait all data was sent
-	 */
 	cr  =	ssi->cr_own	|
 		ssi->cr_clk;
 
-	rsnd_mod_write(mod, SSICR, cr | EN);
-	rsnd_ssi_status_check(mod, DIRQ);
+	/*
+	 * disable all IRQ,
+	 * Playback: Wait all data was sent
+	 * Capture:  It might not receave data. Do nothing
+	 */
+	if (rsnd_io_is_play(io)) {
+		rsnd_mod_write(mod, SSICR, cr | EN);
+		rsnd_ssi_status_check(mod, DIRQ);
+	}
 
 	/*
 	 * disable SSI,
-- 
2.15.0.rc2

^ permalink raw reply related	[flat|nested] 11+ messages in thread

* Applied "ASoC: rsnd: use snd_pcm_running() in rsnd_io_is_working()" to the asoc tree
  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
  0 siblings, 0 replies; 11+ messages in thread
From: Mark Brown @ 2017-10-31 11:21 UTC (permalink / raw)
  To: Kuninori Morimoto; +Cc: alsa-devel, Mark Brown, Yokoyama (Renesas), Simon

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

^ permalink raw reply related	[flat|nested] 11+ messages in thread

* Applied "ASoC: rsnd: NULL check is not needed for clk_unprepare()" to the asoc tree
  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   ` Mark Brown
  0 siblings, 0 replies; 11+ messages in thread
From: Mark Brown @ 2017-10-31 11:21 UTC (permalink / raw)
  To: Kuninori Morimoto; +Cc: alsa-devel, Mark Brown, Yokoyama (Renesas), Simon

The patch

   ASoC: rsnd: NULL check is not needed for clk_unprepare()

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 ed3ac14ca90074d51f365dba5ed535e76ea155ea Mon Sep 17 00:00:00 2001
From: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com>
Date: Tue, 31 Oct 2017 00:39:17 +0000
Subject: [PATCH] ASoC: rsnd: NULL check is not needed for clk_unprepare()

clk_unprepare() is checking parameter by IS_ERR_OR_NULL().
clk NULL check is not needed on rsnd_mod_quit()

Signed-off-by: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com>
Signed-off-by: Mark Brown <broonie@kernel.org>
---
 sound/soc/sh/rcar/core.c | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/sound/soc/sh/rcar/core.c b/sound/soc/sh/rcar/core.c
index 8fc3bf2b20f5..0216d3f53097 100644
--- a/sound/soc/sh/rcar/core.c
+++ b/sound/soc/sh/rcar/core.c
@@ -172,8 +172,7 @@ int rsnd_mod_init(struct rsnd_priv *priv,
 
 void rsnd_mod_quit(struct rsnd_mod *mod)
 {
-	if (mod->clk)
-		clk_unprepare(mod->clk);
+	clk_unprepare(mod->clk);
 	mod->clk = NULL;
 }
 
-- 
2.15.0.rc2

^ permalink raw reply related	[flat|nested] 11+ messages in thread

* Applied "ASoC: rsnd: tidyup rsnd_mod_next() for loop method" to the asoc tree
  2017-10-31  0:38 ` [PATCH 2/5] ASoC: rsnd: tidyup rsnd_mod_next() for loop method Kuninori Morimoto
@ 2017-10-31 11:21   ` Mark Brown
  0 siblings, 0 replies; 11+ messages in thread
From: Mark Brown @ 2017-10-31 11:21 UTC (permalink / raw)
  To: Kuninori Morimoto; +Cc: alsa-devel, Mark Brown, Yokoyama (Renesas), Simon

The patch

   ASoC: rsnd: tidyup rsnd_mod_next() for loop method

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 b12f1e3a798e19727ca632d92abe619b418ad0d0 Mon Sep 17 00:00:00 2001
From: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com>
Date: Tue, 31 Oct 2017 00:38:36 +0000
Subject: [PATCH] ASoC: rsnd: tidyup rsnd_mod_next() for loop method

Let's remove point less "continue"

Signed-off-by: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com>
Signed-off-by: Mark Brown <broonie@kernel.org>
---
 sound/soc/sh/rcar/core.c | 6 ++----
 1 file changed, 2 insertions(+), 4 deletions(-)

diff --git a/sound/soc/sh/rcar/core.c b/sound/soc/sh/rcar/core.c
index b338c0009506..8fc3bf2b20f5 100644
--- a/sound/soc/sh/rcar/core.c
+++ b/sound/soc/sh/rcar/core.c
@@ -408,10 +408,8 @@ struct rsnd_mod *rsnd_mod_next(int *iterator,
 	for (; *iterator < max; (*iterator)++) {
 		type = (array) ? array[*iterator] : *iterator;
 		mod = rsnd_io_to_mod(io, type);
-		if (!mod)
-			continue;
-
-		return mod;
+		if (mod)
+			return mod;
 	}
 
 	return NULL;
-- 
2.15.0.rc2

^ permalink raw reply related	[flat|nested] 11+ messages in thread

* Applied "ASoC: rsnd: don't use io->mod[] directly" to the asoc tree
  2017-10-31  0:38 ` [PATCH 1/5] ASoC: rsnd: don't use io->mod[] directly Kuninori Morimoto
@ 2017-10-31 11:21   ` Mark Brown
  0 siblings, 0 replies; 11+ messages in thread
From: Mark Brown @ 2017-10-31 11:21 UTC (permalink / raw)
  To: Kuninori Morimoto; +Cc: alsa-devel, Mark Brown, Yokoyama (Renesas), Simon

The patch

   ASoC: rsnd: don't use io->mod[] directly

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 138f878647f2ac0d7700f669b860cb130306e062 Mon Sep 17 00:00:00 2001
From: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com>
Date: Tue, 31 Oct 2017 00:38:09 +0000
Subject: [PATCH] ASoC: rsnd: don't use io->mod[] directly

We have rsnd_io_to_mod() macro. Let's use it

Signed-off-by: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com>
Signed-off-by: Mark Brown <broonie@kernel.org>
---
 sound/soc/sh/rcar/core.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/sound/soc/sh/rcar/core.c b/sound/soc/sh/rcar/core.c
index e9b0b0f5f0ee..b338c0009506 100644
--- a/sound/soc/sh/rcar/core.c
+++ b/sound/soc/sh/rcar/core.c
@@ -407,7 +407,7 @@ struct rsnd_mod *rsnd_mod_next(int *iterator,
 
 	for (; *iterator < max; (*iterator)++) {
 		type = (array) ? array[*iterator] : *iterator;
-		mod = io->mod[type];
+		mod = rsnd_io_to_mod(io, type);
 		if (!mod)
 			continue;
 
-- 
2.15.0.rc2

^ permalink raw reply related	[flat|nested] 11+ messages in thread

end of thread, other threads:[~2017-10-31 11:21 UTC | newest]

Thread overview: 11+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
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   ` Applied "ASoC: rsnd: use snd_pcm_running() in rsnd_io_is_working()" to the asoc tree Mark Brown
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

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.