projects
/
GitHub
/
moto-9609
/
android_kernel_motorola_exynos9610.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
92e963f
)
ASoC: pcm3168a: Call clk_set_rate in pcm3168a_set_dai_sysclk
author
Damien.Horsley
<Damien.Horsley@imgtec.com>
Thu, 28 Jan 2016 16:54:20 +0000
(16:54 +0000)
committer
Mark Brown
<broonie@kernel.org>
Thu, 28 Jan 2016 23:16:51 +0000
(
00:16
+0100)
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
patch
|
blob
|
blame
|
history
diff --git
a/sound/soc/codecs/pcm3168a.c
b/sound/soc/codecs/pcm3168a.c
index 44b268aa4dd88e0cee6ac4c4a60663d51df0d1ab..0c7248ab6a374498c01980d40d82a4f03843180c 100644
(file)
--- 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;