[alsa-devel] [PATCH] Allow passing platform_data to devices attached to AC97 bus

Takashi Iwai tiwai at suse.de
Tue Jul 21 17:17:03 CEST 2009


At Tue, 21 Jul 2009 17:11:03 +0200,
Robert Jarzmik wrote:
> 
> Marek Vasut <marek.vasut at gmail.com> writes:
> 
> > diff --git a/arch/arm/mach-pxa/include/mach/audio.h b/arch/arm/mach-pxa/include/mach/audio.h
> > index 16eb025..8825b18 100644
> > --- a/arch/arm/mach-pxa/include/mach/audio.h
> > +++ b/arch/arm/mach-pxa/include/mach/audio.h
> > @@ -20,6 +20,7 @@ typedef struct {
> >  	void (*resume)(void *);
> >  	void *priv;
> >  	int reset_gpio;
> > +	void *codec_pdata[4];
> I don't understand where that '4' comes from. Would you explain ?

It's defacto-standard max of AC97 slots.  But, yes, a magic number
should be defined explicitly.


Takashi


More information about the Alsa-devel mailing list