diff options
author | Adam Thomson <Adam.Thomson.Opensource@diasemi.com> | 2019-01-08 09:13:28 +0000 |
---|---|---|
committer | Mark Brown <broonie@kernel.org> | 2019-01-09 14:39:19 +0000 |
commit | a58943abcb08cfbe6c36648602d796c5834ee8a9 (patch) | |
tree | e3f33598829d112cd5740c5dd84e3b17817e3e88 /sound/soc/codecs/da7219.h | |
parent | a6028cc60aad18d5d7c25d99b5cb8c24399387c3 (diff) | |
download | linux-a58943abcb08cfbe6c36648602d796c5834ee8a9.tar.gz linux-a58943abcb08cfbe6c36648602d796c5834ee8a9.tar.bz2 linux-a58943abcb08cfbe6c36648602d796c5834ee8a9.zip |
ASoC: da7219: Add recalc_rate function to return DAI clock rate
By making MCLK parent of DAI clocks, when querying the rate of the
clock the rate returned is now given from the parent clock so
gives the MCLK rate rather than 0 as previously returned. This is
a bit misleading, and actually there's no major reason why we can't
at least return the DAI WCLK rate, as set in HW, so that's what we
now do.
Signed-off-by: Adam Thomson <Adam.Thomson.Opensource@diasemi.com>
Signed-off-by: Mark Brown <broonie@kernel.org>
Diffstat (limited to 'sound/soc/codecs/da7219.h')
-rw-r--r-- | sound/soc/codecs/da7219.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/sound/soc/codecs/da7219.h b/sound/soc/codecs/da7219.h index 3a006862f0e7..366cf46118a0 100644 --- a/sound/soc/codecs/da7219.h +++ b/sound/soc/codecs/da7219.h @@ -809,6 +809,7 @@ struct da7219_aad_priv; /* Private data */ struct da7219_priv { + struct snd_soc_component *component; struct da7219_aad_priv *aad; struct da7219_pdata *pdata; |