[alsa-devel] [RFC] ASoC: wm8962: Allow codec to work when CONFIG_PM=n

Mark Brown broonie at kernel.org
Tue Dec 30 17:22:03 CET 2014


On Tue, Dec 30, 2014 at 01:58:16PM -0200, Fabio Estevam wrote:

> +	if (!IS_ENABLED(CONFIG_PM))
> +		wm8962_runtime_resume(&i2c->dev);
> +

A much neater idiom for this is to have the probe() just default the
device to being runtime PM enabled, then if runtime PM is enabled it'll
work out that the device is idle and power it off but if runtime PM is
disabled it'll just stay powered.
-------------- 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/20141230/7c84f9cd/attachment.sig>


More information about the Alsa-devel mailing list