[alsa-devel] [PATCH] ASoC: davinci-mcasp: Allow complete shutdown of McASP when not in use

Mark Brown broonie at kernel.org
Wed Mar 4 12:30:04 CET 2015


On Wed, Mar 04, 2015 at 12:12:36PM +0200, Peter Ujfalusi wrote:
> On 03/03/2015 05:07 PM, Mark Brown wrote:

> > I see there's actually a balanced put in the resume path...  I see
> > what's going on here but I'm thinking that perhaps something more
> > explicit that calls the ops directly and checks pm_runtime_is_enabled()
> > might be clearer?

> The issue with the pm_runtime_is_enabled() is going to be in the resume path,
> as I did get_sync() it will return true at the end all the time.

You can just store the state before you do the enable...
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 473 bytes
Desc: Digital signature
URL: <http://mailman.alsa-project.org/pipermail/alsa-devel/attachments/20150304/28788641/attachment.sig>


More information about the Alsa-devel mailing list