mbox series

[0/2] ASoC: da7219: Improvements to DAI clocks handling in driver

Message ID cover.1546876084.git.Adam.Thomson.Opensource@diasemi.com (mailing list archive)
Headers show
Series ASoC: da7219: Improvements to DAI clocks handling in driver | expand

Message

Adam Thomson Jan. 7, 2019, 4:11 p.m. UTC
This small patchset provides improvements to CCF based clock handling relating
to the DAI clocks. In the first patch MCLK is made parent of DAI clocks, if MCLK
has been provided to the driver, which means that MCLK will automatically be
enabled as a prerequisite to DAI clocks. The second patch adds the ability to
read the WCLK rate provided by the codec when DAI clocks are featured. This is
more useful than the returned rate simply being the rate of the parent clock,
which in this case would be MCLK.

Adam Thomson (2):
  ASoC: da7219: MCLK should be enabled before DAI clocks
  ASoC: da7219: Add recalc_rate function to return DAI clock rate

 sound/soc/codecs/da7219.c | 77 ++++++++++++++++++++++++++++++++++++++++-------
 sound/soc/codecs/da7219.h |  1 +
 2 files changed, 67 insertions(+), 11 deletions(-)

Comments

Adam Thomson Jan. 9, 2019, 2:38 p.m. UTC | #1
On 08 January 2019 09:13, Adam Thomson wrote:

> This small patchset provides improvements to CCF based clock handling relating
> to the DAI clocks. In the first patch MCLK is made parent of DAI clocks, if MCLK
> has been provided to the driver, which means that MCLK will automatically be
> enabled as a prerequisite to DAI clocks. The second patch adds the ability to read
> the WCLK rate provided by the codec when DAI clocks are featured. This is more
> useful than the returned rate simply being the rate of the parent clock, which in
> this case would be MCLK.

Apologies for repeat submissions. Had some glitches with mail servers here.
 
> Adam Thomson (2):
>   ASoC: da7219: MCLK should be enabled before DAI clocks
>   ASoC: da7219: Add recalc_rate function to return DAI clock rate
> 
>  sound/soc/codecs/da7219.c | 77
> ++++++++++++++++++++++++++++++++++++++++-------
>  sound/soc/codecs/da7219.h |  1 +
>  2 files changed, 67 insertions(+), 11 deletions(-)
> 
> --
> 1.9.1