summaryrefslogtreecommitdiff
path: root/sound
diff options
context:
space:
mode:
authorDamien.Horsley <Damien.Horsley@imgtec.com>2016-01-28 16:54:20 +0000
committerMark Brown <broonie@kernel.org>2016-01-29 00:16:51 +0100
commitf1188b898ec5aa2e94da8fb998648a2738f4fb3b (patch)
tree6d320be1c6191b09b31b252524d9249f116ab2f5 /sound
parent92e963f50fc74041b5e9e744c330dca48e04f08d (diff)
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>
Diffstat (limited to 'sound')
-rw-r--r--sound/soc/codecs/pcm3168a.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/sound/soc/codecs/pcm3168a.c b/sound/soc/codecs/pcm3168a.c
index 44b268aa4dd8..0c7248ab6a37 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;