[alsa-devel] [PATCH] ASoC: Intel: fix a compiling issue

Mark Brown broonie at kernel.org
Sat Apr 18 14:11:06 CEST 2015


On Mon, Apr 13, 2015 at 10:47:30AM +0800, Jie Yang wrote:
> Fix the compiling issue that we don't have snd_soc_suspend/resume()
> when CONFIG_PM_SLEEP is not defined.

> +#ifdef CONFIG_PM_SLEEP
>  	snd_soc_resume(pdata->soc_card->dev);
> -
> +#endif

Rather than have the ifdefs in the users it seems like it'd be better to
fix this by providing static inline stub functions in the headers.  That
way nothing else will run into the same trouble.
-------------- 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/20150418/2a0fa45f/attachment.sig>


More information about the Alsa-devel mailing list