mirror of
git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2025-08-05 16:54:27 +00:00
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>
This commit is contained in:
parent
92e963f50f
commit
f1188b898e
1 changed files with 5 additions and 0 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Reference in a new issue