mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [PATCH linux-next 1/1] ASoC: rsnd: ssiu: reset SSI_MODE register
@ 2017-10-26 15:07 jiada_wang
  2017-10-29 23:38 ` Kuninori Morimoto
  0 siblings, 1 reply; 4+ messages in thread
From: jiada_wang @ 2017-10-26 15:07 UTC (permalink / raw)
  To: lgirdwood, broonie, perex, tiwai, kuninori.morimoto.gx, gustavo
  Cc: alsa-devel, linux-kernel, jiada_wang

From: Jiada Wang <jiada_wang@mentor.com>

register SSI_MODE is set when SSI works in TDM Extended or
TDM (Ex-)Split mode, but it isn't reset after SSI stops.
this will cause issue, if SSI starts to work in other modes
which requie SSI_MODE to have different value.

This patch resets SSI_MODE register in .stop callback,
when last stream calls .stop.

Fixes: 186fadc132f0 ("ASoC: rsnd: add TDM Extend Mode support")
Signed-off-by: Jiada Wang <jiada_wang@mentor.com>
---
 sound/soc/sh/rcar/ssiu.c |    2 ++
 1 file changed, 2 insertions(+)

diff --git a/sound/soc/sh/rcar/ssiu.c b/sound/soc/sh/rcar/ssiu.c
index 4d94875..eff9f3b 100644
--- a/sound/soc/sh/rcar/ssiu.c
+++ b/sound/soc/sh/rcar/ssiu.c
@@ -217,6 +217,8 @@ static int rsnd_ssiu_stop_gen2(struct rsnd_mod *mod,
 	if (rsnd_ssi_multi_slaves_runtime(io))
 		rsnd_mod_write(mod, SSI_CONTROL, 0);
 
+	rsnd_mod_write(mod, SSI_MODE, 0);
+
 	return 0;
 }
 
-- 
1.7.9.5

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

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

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-10-26 15:07 [PATCH linux-next 1/1] ASoC: rsnd: ssiu: reset SSI_MODE register jiada_wang
2017-10-29 23:38 ` Kuninori Morimoto
2017-10-30  8:08   ` Jiada Wang
2017-10-30  8:10     ` Kuninori Morimoto

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

all inboxes | Powered by JetHome®