]> git.baikalelectronics.ru Git - kernel.git/commit
ASoC: da7219: Add recalc_rate function to return DAI clock rate
authorAdam Thomson <Adam.Thomson.Opensource@diasemi.com>
Tue, 8 Jan 2019 09:13:28 +0000 (09:13 +0000)
committerMark Brown <broonie@kernel.org>
Wed, 9 Jan 2019 14:39:19 +0000 (14:39 +0000)
commit8ff12a09230d5a55e6336aa69dd0b1dd9c2b8de3
treee3f33598829d112cd5740c5dd84e3b17817e3e88
parent631846e2890b23c015fd16d179a998a669bfc788
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>
sound/soc/codecs/da7219.c
sound/soc/codecs/da7219.h