From: Takashi Iwai Subject: Re: [PATCH] Allow passing platform_data to devices attached to AC97 bus Date: Tue, 21 Jul 2009 17:17:03 +0200 Message-ID: References: <200907211633.14388.marek.vasut@gmail.com> <87ocre2hrs.fsf@free.fr> Mime-Version: 1.0 (generated by SEMI 1.14.6 - "Maruoka") Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: Received: from mx1.suse.de (cantor.suse.de [195.135.220.2]) by alsa0.perex.cz (Postfix) with ESMTP id 7F1B12438D for ; Tue, 21 Jul 2009 17:17:05 +0200 (CEST) In-Reply-To: <87ocre2hrs.fsf@free.fr> List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: alsa-devel-bounces@alsa-project.org Errors-To: alsa-devel-bounces@alsa-project.org To: Robert Jarzmik Cc: Marek Vasut , alsa-devel@alsa-project.org, Mark Brown List-Id: alsa-devel@alsa-project.org At Tue, 21 Jul 2009 17:11:03 +0200, Robert Jarzmik wrote: > > Marek Vasut 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