[alsa-devel] [PATCH] ASoC: add config to enable/disable asoc compress

Jie, Yang yang.jie at intel.com
Wed Jun 3 07:30:34 CEST 2015


> -----Original Message-----
> From: Takashi Iwai [mailto:tiwai at suse.de]
> Sent: Tuesday, June 02, 2015 8:01 PM
> To: Mark Brown
> Cc: Jie, Yang; alsa-devel at alsa-project.org; Girdwood, Liam R; Zhang, Vivian
> Subject: Re: [PATCH] ASoC: add config to enable/disable asoc compress
> 
> At Tue, 2 Jun 2015 11:58:14 +0100,
> Mark Brown wrote:
> >
> > On Sat, May 30, 2015 at 09:28:31PM +0800, Jie Yang wrote:
> >
> > > +ifneq ($(CONFIG_SND_SOC_COMPRESS),) snd-soc-core-objs +=
> > > +soc-compress.o endif
> >
> > If you want to make this optional why not make it a module so that the
> > Makefile looks more idiomatic?
> 
> Only about Makefile, it can be simplified like
> 
> snd-soc-core-$(CONFIG_SND_SOC_COMPRESS) += soc-compress.o
 
Got it, thanks.

> 
> But I agree with Mark.  It would make more sense to split a module, as soc-
> compress.c isn't so small.  For a small object, it's often better to keep in, as a
> module consumes more memory (it needs a page size).
> For a large size object, it's worth to consider to split.
 
Make it a module sounds good idea, I can change it in next version.

~Keyon

> 
> 
> Takashi


More information about the Alsa-devel mailing list