Re: [PATCH] Allow passing platform_data to devices attached to AC97 bus

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



At Tue, 21 Jul 2009 17:11:03 +0200,
Robert Jarzmik wrote:
> 
> Marek Vasut <marek.vasut@xxxxxxxxx> 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
_______________________________________________
Alsa-devel mailing list
Alsa-devel@xxxxxxxxxxxxxxxx
http://mailman.alsa-project.org/mailman/listinfo/alsa-devel

[Index of Archives]     [ALSA User]     [Linux Audio Users]     [Kernel Archive]     [Asterisk PBX]     [Photo Sharing]     [Linux Sound]     [Video 4 Linux]     [Gimp]     [Yosemite News]

  Powered by Linux