mirror of
https://github.com/AuxXxilium/linux_dsm_epyc7002.git
synced 2025-01-22 09:54:43 +07: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
@ -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…
Reference in New Issue
Block a user