[alsa-devel] [RFC V2 PATCH 4/5] ALSA: hda - add in_use flag in hda_pcm

Yang, Libin libin.yang at intel.com
Wed Nov 25 07:50:59 CET 2015


> -----Original Message-----
> From: Takashi Iwai [mailto:tiwai at suse.de]
> Sent: Monday, November 23, 2015 11:50 PM
> To: libin.yang at linux.intel.com
> Cc: alsa-devel at alsa-project.org; mengdong.lin at linux.intel.com; Yang,
> Libin
> Subject: Re: [alsa-devel] [RFC V2 PATCH 4/5] ALSA: hda - add in_use flag
> in hda_pcm
> 
> On Mon, 23 Nov 2015 15:09:33 +0100,
> libin.yang at linux.intel.com wrote:
> >
> > From: Libin Yang <libin.yang at linux.intel.com>
> >
> > Add in_use flag in struct hda_pcm for HD Audio dynamic PCM
> assignment.
> >
> > Signed-off-by: Libin Yang <libin.yang at linux.intel.com>
> 
> This should be folded into the last patch.  The addition of the flag
> alone doesn't make much sense.

Get it. Thanks.

Regards,
Libin

> 
> 
> Takashi
> 
> > ---
> >  sound/pci/hda/hda_codec.h | 1 +
> >  1 file changed, 1 insertion(+)
> >
> > diff --git a/sound/pci/hda/hda_codec.h b/sound/pci/hda/hda_codec.h
> > index 373fcad..ee97401 100644
> > --- a/sound/pci/hda/hda_codec.h
> > +++ b/sound/pci/hda/hda_codec.h
> > @@ -167,6 +167,7 @@ enum {
> >  /* for PCM creation */
> >  struct hda_pcm {
> >  	char *name;
> > +	bool in_use;
> >  	struct hda_pcm_stream stream[2];
> >  	unsigned int pcm_type;	/* HDA_PCM_TYPE_XXX */
> >  	int device;		/* device number to assign */
> > --
> > 1.9.1
> >


More information about the Alsa-devel mailing list