Re: [PATCH 2/5] ASoC: da7213: Add checking of SRM lock status before enabling DAI

2016-05-10 Thread Mark Brown
On Tue, May 10, 2016 at 07:21:43PM +0100, Mark Brown wrote: > On Tue, May 10, 2016 at 04:11:05PM +0100, Adam Thomson wrote: > > > + /* Slave mode, if SRM not enabled no need for status checks */ > > + pll_ctrl = snd_soc_read(codec, DA7213_PLL_CTRL); > > + if

Re: [PATCH 2/5] ASoC: da7213: Add checking of SRM lock status before enabling DAI

2016-05-10 Thread Mark Brown
On Tue, May 10, 2016 at 07:21:43PM +0100, Mark Brown wrote: > On Tue, May 10, 2016 at 04:11:05PM +0100, Adam Thomson wrote: > > > + /* Slave mode, if SRM not enabled no need for status checks */ > > + pll_ctrl = snd_soc_read(codec, DA7213_PLL_CTRL); > > + if

Re: [PATCH 2/5] ASoC: da7213: Add checking of SRM lock status before enabling DAI

2016-05-10 Thread Mark Brown
On Tue, May 10, 2016 at 04:11:05PM +0100, Adam Thomson wrote: > + /* Slave mode, if SRM not enabled no need for status checks */ > + pll_ctrl = snd_soc_read(codec, DA7213_PLL_CTRL); > + if (!(pll_ctrl & DA7213_PLL_SRM_EN)) > + return 0;

Re: [PATCH 2/5] ASoC: da7213: Add checking of SRM lock status before enabling DAI

2016-05-10 Thread Mark Brown
On Tue, May 10, 2016 at 04:11:05PM +0100, Adam Thomson wrote: > + /* Slave mode, if SRM not enabled no need for status checks */ > + pll_ctrl = snd_soc_read(codec, DA7213_PLL_CTRL); > + if (!(pll_ctrl & DA7213_PLL_SRM_EN)) > + return 0;

[PATCH 2/5] ASoC: da7213: Add checking of SRM lock status before enabling DAI

2016-05-10 Thread Adam Thomson
When the codec is DAI clk slave, and the SRM feature of the PLL is being used, the enabling of the DAI should occur only after the PLL has locked to the incoming WCLK. This update adds checking to the the DAI widget event, so it waits for SRM to lock. There is also a timeout if that lock doesn't

[PATCH 2/5] ASoC: da7213: Add checking of SRM lock status before enabling DAI

2016-05-10 Thread Adam Thomson
When the codec is DAI clk slave, and the SRM feature of the PLL is being used, the enabling of the DAI should occur only after the PLL has locked to the incoming WCLK. This update adds checking to the the DAI widget event, so it waits for SRM to lock. There is also a timeout if that lock doesn't