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

Michael Trimarchi michael at amarulasolutions.com
Sat Apr 18 14:19:37 CEST 2015


Hi

On Apr 18, 2015 8:11 PM, "Mark Brown" <broonie at kernel.org> wrote:
>
> 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.
>

This was my "English" suggestion

Thanks

Michael

> _______________________________________________
> Alsa-devel mailing list
> Alsa-devel at alsa-project.org
> http://mailman.alsa-project.org/mailman/listinfo/alsa-devel
>


More information about the Alsa-devel mailing list