All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] ASoC: rsnd: enable SRC sync even FIN = FOUT
       [not found] ` <redmine.journal-830088.20161027002954.c1c606834ab55497@dm.renesas.com>
@ 2016-10-27  1:05   ` Kuninori Morimoto
  2016-10-27 16:47     ` Applied "ASoC: rsnd: enable SRC sync even FIN = FOUT" to the asoc tree Mark Brown
  0 siblings, 1 reply; 2+ messages in thread
From: Kuninori Morimoto @ 2016-10-27  1:05 UTC (permalink / raw)
  To: Mark Brown
  Cc: tomoharu.fukawa.eb, Linux-ALSA, tomohiro.komagata.aj,
	mitsuhiro.kimura.kc, triet.huynh.jy, hideya.tanaka.nx,
	naoya.shiiba.nx, yuta.wakasawa.pv, ryo.kodama.vz, hien.dang.eb,
	takeshi.kihara.df, ryo.kataoka.wt, hiroshige.abe.zc,
	hiroyuki.yokoyama.vx, yuichi.takagi.uh, Chris.Paterson2,
	kouei.abe.cp, ren.imaoka.vj, Simon, takahiko.gomi.yn,
	satoshi.okada.wz, yoshifumi.hosoya.wj, takamitsu.honda.pv,
	khiem.nguyen.xt, naohiro.nishikawa.uj, harunobu.kurokawa.dn


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

Current SRC (= Sampling Rate Converter) is supporting
SYNC mode and ASYNC mode. Current src.c cares SRC if FIN != FOUT.
Here, SYNC mode will be used for tweak, so it will be used
even FIN = FOUT. This patch enables SRC sync in such situation

Signed-off-by: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com>
Tested-by: Hiroyuki Yokoyama <hiroyuki.yokoyama.vx@renesas.com>
Tested-by: Yuichi Takagi <yuichi.takagi.uh@renesas.com>
---
 sound/soc/sh/rcar/src.c | 7 +++++--
 1 file changed, 5 insertions(+), 2 deletions(-)

diff --git a/sound/soc/sh/rcar/src.c b/sound/soc/sh/rcar/src.c
index 969a516..1e9ca57 100644
--- a/sound/soc/sh/rcar/src.c
+++ b/sound/soc/sh/rcar/src.c
@@ -189,6 +189,7 @@ static void rsnd_src_set_convert_rate(struct rsnd_dai_stream *io,
 	struct rsnd_priv *priv = rsnd_mod_to_priv(mod);
 	struct device *dev = rsnd_priv_to_dev(priv);
 	struct snd_pcm_runtime *runtime = rsnd_io_to_runtime(io);
+	int use_src = 0;
 	u32 fin, fout;
 	u32 ifscr, fsrate, adinr;
 	u32 cr, route;
@@ -214,6 +215,8 @@ static void rsnd_src_set_convert_rate(struct rsnd_dai_stream *io,
 		return;
 	}
 
+	use_src = (fin != fout) | rsnd_src_sync_is_enabled(mod);
+
 	/*
 	 *	SRC_ADINR
 	 */
@@ -225,7 +228,7 @@ static void rsnd_src_set_convert_rate(struct rsnd_dai_stream *io,
 	 */
 	ifscr = 0;
 	fsrate = 0;
-	if (fin != fout) {
+	if (use_src) {
 		u64 n;
 
 		ifscr = 1;
@@ -239,7 +242,7 @@ static void rsnd_src_set_convert_rate(struct rsnd_dai_stream *io,
 	 */
 	cr	= 0x00011110;
 	route	= 0x0;
-	if (fin != fout) {
+	if (use_src) {
 		route	= 0x1;
 
 		if (rsnd_src_sync_is_enabled(mod)) {
-- 
1.9.1

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

* Applied "ASoC: rsnd: enable SRC sync even FIN = FOUT" to the asoc tree
  2016-10-27  1:05   ` [PATCH] ASoC: rsnd: enable SRC sync even FIN = FOUT Kuninori Morimoto
@ 2016-10-27 16:47     ` Mark Brown
  0 siblings, 0 replies; 2+ messages in thread
From: Mark Brown @ 2016-10-27 16:47 UTC (permalink / raw)
  To: Kuninori Morimoto
  Cc: tomoharu.fukawa.eb, Linux-ALSA, tomohiro.komagata.aj,
	mitsuhiro.kimura.kc, triet.huynh.jy, hideya.tanaka.nx,
	naoya.shiiba.nx, hien.dang.eb, ryo.kodama.vz, takeshi.kihara.df,
	ryo.kataoka.wt, hiroshige.abe.zc, hiroyuki.yokoyama.vx,
	yuichi.takagi.uh, Chris.Paterson2, kouei.abe.cp, ren.imaoka.vj,
	Simon, takahiko.gomi.yn, satoshi.okada.wz, yoshifumi.hosoya.wj,
	takamitsu.honda.pv, khiem.nguyen.xt, yuta.wakasawa.pv,
	Mark Brown, naohiro.nishikawa.uj, harunobu.kurokawa.dn

The patch

   ASoC: rsnd: enable SRC sync even FIN = FOUT

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 67923f779b8d9d210c5ec98ffb68d9fe5a68df18 Mon Sep 17 00:00:00 2001
From: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com>
Date: Thu, 27 Oct 2016 01:05:21 +0000
Subject: [PATCH] ASoC: rsnd: enable SRC sync even FIN = FOUT

Current SRC (= Sampling Rate Converter) is supporting
SYNC mode and ASYNC mode. Current src.c cares SRC if FIN != FOUT.
Here, SYNC mode will be used for tweak, so it will be used
even FIN = FOUT. This patch enables SRC sync in such situation

Signed-off-by: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com>
Tested-by: Hiroyuki Yokoyama <hiroyuki.yokoyama.vx@renesas.com>
Tested-by: Yuichi Takagi <yuichi.takagi.uh@renesas.com>
Signed-off-by: Mark Brown <broonie@kernel.org>
---
 sound/soc/sh/rcar/src.c | 7 +++++--
 1 file changed, 5 insertions(+), 2 deletions(-)

diff --git a/sound/soc/sh/rcar/src.c b/sound/soc/sh/rcar/src.c
index aa24258b9b14..3a8f65bd1bf9 100644
--- a/sound/soc/sh/rcar/src.c
+++ b/sound/soc/sh/rcar/src.c
@@ -189,6 +189,7 @@ static void rsnd_src_set_convert_rate(struct rsnd_dai_stream *io,
 	struct rsnd_priv *priv = rsnd_mod_to_priv(mod);
 	struct device *dev = rsnd_priv_to_dev(priv);
 	struct snd_pcm_runtime *runtime = rsnd_io_to_runtime(io);
+	int use_src = 0;
 	u32 fin, fout;
 	u32 ifscr, fsrate, adinr;
 	u32 cr, route;
@@ -214,6 +215,8 @@ static void rsnd_src_set_convert_rate(struct rsnd_dai_stream *io,
 		return;
 	}
 
+	use_src = (fin != fout) | rsnd_src_sync_is_enabled(mod);
+
 	/*
 	 *	SRC_ADINR
 	 */
@@ -225,7 +228,7 @@ static void rsnd_src_set_convert_rate(struct rsnd_dai_stream *io,
 	 */
 	ifscr = 0;
 	fsrate = 0;
-	if (fin != fout) {
+	if (use_src) {
 		u64 n;
 
 		ifscr = 1;
@@ -239,7 +242,7 @@ static void rsnd_src_set_convert_rate(struct rsnd_dai_stream *io,
 	 */
 	cr	= 0x00011110;
 	route	= 0x0;
-	if (fin != fout) {
+	if (use_src) {
 		route	= 0x1;
 
 		if (rsnd_src_sync_is_enabled(mod)) {
-- 
2.8.1

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

end of thread, other threads:[~2016-10-27 16:47 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
     [not found] <redmine.issue-98994.20160803055210@dm.renesas.com>
     [not found] ` <redmine.journal-830088.20161027002954.c1c606834ab55497@dm.renesas.com>
2016-10-27  1:05   ` [PATCH] ASoC: rsnd: enable SRC sync even FIN = FOUT Kuninori Morimoto
2016-10-27 16:47     ` Applied "ASoC: rsnd: enable SRC sync even FIN = FOUT" 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.