All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] ASoC: pcm3168a: Call clk_set_rate in pcm3168a_set_dai_sysclk
@ 2016-01-28 16:54 Damien Horsley
  2016-01-28 23:15 ` Mark Brown
  2016-01-29  0:16 ` Applied "ASoC: pcm3168a: Call clk_set_rate in pcm3168a_set_dai_sysclk" to the asoc tree Mark Brown
  0 siblings, 2 replies; 3+ messages in thread
From: Damien Horsley @ 2016-01-28 16:54 UTC (permalink / raw)
  To: alsa-devel
  Cc: Liam Girdwood, linux-kernel, Takashi Iwai, Mark Brown, Damien.Horsley

From: "Damien.Horsley" <Damien.Horsley@imgtec.com>

Call clk_set_rate in pcm3168a_set_dai_sysclk

Signed-off-by: Damien.Horsley <Damien.Horsley@imgtec.com>
---
 sound/soc/codecs/pcm3168a.c | 5 +++++
 1 file changed, 5 insertions(+)

diff --git a/sound/soc/codecs/pcm3168a.c b/sound/soc/codecs/pcm3168a.c
index 44b268a..0c7248a 100644
--- a/sound/soc/codecs/pcm3168a.c
+++ b/sound/soc/codecs/pcm3168a.c
@@ -299,10 +299,15 @@ static int pcm3168a_set_dai_sysclk(struct snd_soc_dai *dai,
 				  int clk_id, unsigned int freq, int dir)
 {
 	struct pcm3168a_priv *pcm3168a = snd_soc_codec_get_drvdata(dai->codec);
+	int ret;
 
 	if (freq > PCM1368A_MAX_SYSCLK)
 		return -EINVAL;
 
+	ret = clk_set_rate(pcm3168a->scki, freq);
+	if (ret)
+		return ret;
+
 	pcm3168a->sysclk = freq;
 
 	return 0;
-- 
2.1.4

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

* Re: [PATCH] ASoC: pcm3168a: Call clk_set_rate in pcm3168a_set_dai_sysclk
  2016-01-28 16:54 [PATCH] ASoC: pcm3168a: Call clk_set_rate in pcm3168a_set_dai_sysclk Damien Horsley
@ 2016-01-28 23:15 ` Mark Brown
  2016-01-29  0:16 ` Applied "ASoC: pcm3168a: Call clk_set_rate in pcm3168a_set_dai_sysclk" to the asoc tree Mark Brown
  1 sibling, 0 replies; 3+ messages in thread
From: Mark Brown @ 2016-01-28 23:15 UTC (permalink / raw)
  To: Damien Horsley
  Cc: alsa-devel, Liam Girdwood, Jaroslav Kysela, Takashi Iwai, linux-kernel

[-- Attachment #1: Type: text/plain, Size: 329 bytes --]

On Thu, Jan 28, 2016 at 04:54:20PM +0000, Damien Horsley wrote:

> +	ret = clk_set_rate(pcm3168a->scki, freq);
> +	if (ret)
> +		return ret;
> +
>  	pcm3168a->sysclk = freq;

Since the clock appears to be mandatory in this driver (good!) why are
we even storing sysclk?  Just remove it, the driver never actually used
it anyway.

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 473 bytes --]

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

* Applied "ASoC: pcm3168a: Call clk_set_rate in pcm3168a_set_dai_sysclk" to the asoc tree
  2016-01-28 16:54 [PATCH] ASoC: pcm3168a: Call clk_set_rate in pcm3168a_set_dai_sysclk Damien Horsley
  2016-01-28 23:15 ` Mark Brown
@ 2016-01-29  0:16 ` Mark Brown
  1 sibling, 0 replies; 3+ messages in thread
From: Mark Brown @ 2016-01-29  0:16 UTC (permalink / raw)
  To: Damien.Horsley, Mark Brown; +Cc: alsa-devel

The patch

   ASoC: pcm3168a: Call clk_set_rate in pcm3168a_set_dai_sysclk

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 f1188b898ec5aa2e94da8fb998648a2738f4fb3b Mon Sep 17 00:00:00 2001
From: "Damien.Horsley" <Damien.Horsley@imgtec.com>
Date: Thu, 28 Jan 2016 16:54:20 +0000
Subject: [PATCH] ASoC: pcm3168a: Call clk_set_rate in pcm3168a_set_dai_sysclk

Call clk_set_rate in pcm3168a_set_dai_sysclk

Signed-off-by: Damien.Horsley <Damien.Horsley@imgtec.com>
Signed-off-by: Mark Brown <broonie@kernel.org>
---
 sound/soc/codecs/pcm3168a.c | 5 +++++
 1 file changed, 5 insertions(+)

diff --git a/sound/soc/codecs/pcm3168a.c b/sound/soc/codecs/pcm3168a.c
index 44b268a..0c7248a 100644
--- a/sound/soc/codecs/pcm3168a.c
+++ b/sound/soc/codecs/pcm3168a.c
@@ -299,10 +299,15 @@ static int pcm3168a_set_dai_sysclk(struct snd_soc_dai *dai,
 				  int clk_id, unsigned int freq, int dir)
 {
 	struct pcm3168a_priv *pcm3168a = snd_soc_codec_get_drvdata(dai->codec);
+	int ret;
 
 	if (freq > PCM1368A_MAX_SYSCLK)
 		return -EINVAL;
 
+	ret = clk_set_rate(pcm3168a->scki, freq);
+	if (ret)
+		return ret;
+
 	pcm3168a->sysclk = freq;
 
 	return 0;
-- 
2.6.4

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

end of thread, other threads:[~2016-01-29  0:17 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2016-01-28 16:54 [PATCH] ASoC: pcm3168a: Call clk_set_rate in pcm3168a_set_dai_sysclk Damien Horsley
2016-01-28 23:15 ` Mark Brown
2016-01-29  0:16 ` Applied "ASoC: pcm3168a: Call clk_set_rate in pcm3168a_set_dai_sysclk" 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.