public inbox for stable@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH 4.4.y] ASoC: rsnd: src: add rsnd_src_halt()
@ 2017-08-24  8:17 Nhan Nguyen
  2017-08-28  7:00 ` Greg KH
  0 siblings, 1 reply; 3+ messages in thread
From: Nhan Nguyen @ 2017-08-24  8:17 UTC (permalink / raw)
  To: greg
  Cc: toru.oishi.zj, thongsyho, stable, Kuninori Morimoto, Mark Brown,
	Nhan Nguyen

From: thongsyho <thong.ho.px@rvc.renesas.com>

commit 475a361a6f2c7c690fd59a8f5224615e781cc3bd upstream.

Based on datasheet process

Cc: stable@vger.kernel.org
Signed-off-by: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com>
Signed-off-by: Mark Brown <broonie@kernel.org>
Signed-off-by: Thong Ho <thong.ho.px@rvc.renesas.com>
Signed-off-by: Nhan Nguyen <nhan.nguyen.yb@renesas.com>
---
 sound/soc/sh/rcar/src.c | 8 ++++++++
 1 file changed, 8 insertions(+)

diff --git a/sound/soc/sh/rcar/src.c b/sound/soc/sh/rcar/src.c
index 460d29c..8f2679c 100644
--- a/sound/soc/sh/rcar/src.c
+++ b/sound/soc/sh/rcar/src.c
@@ -132,6 +132,12 @@ static void __rsnd_src_initialize_lock(struct rsnd_mod *mod, u32 enable)
 	rsnd_mod_write(mod, SRC_SRCIR, enable);
 }
 
+static void rsnd_src_halt(struct rsnd_mod *mod)
+{
+	rsnd_mod_write(mod, SRC_SRCIR, 1);
+	rsnd_mod_write(mod, SRC_SWRSR, 0);
+}
+
 static struct dma_chan *rsnd_src_dma_req(struct rsnd_dai_stream *io,
 					 struct rsnd_mod *mod)
 {
@@ -373,6 +379,8 @@ static int rsnd_src_quit(struct rsnd_mod *mod,
 	struct rsnd_src *src = rsnd_mod_to_src(mod);
 	struct device *dev = rsnd_priv_to_dev(priv);
 
+	rsnd_src_halt(mod);
+
 	rsnd_mod_power_off(mod);
 
 	if (src->err)
-- 
1.9.1

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

end of thread, other threads:[~2017-09-01  8:01 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2017-08-24  8:17 [PATCH 4.4.y] ASoC: rsnd: src: add rsnd_src_halt() Nhan Nguyen
2017-08-28  7:00 ` Greg KH
2017-09-01  8:01   ` Nhan Ngoc. Nguyen

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox