From mboxrd@z Thu Jan 1 00:00:00 1970 From: Mark Brown Subject: Re: [PATCH 3/4] ASoC: mid-x86: Add support for capture in machine driver Date: Wed, 19 Jan 2011 16:36:53 +0000 Message-ID: <20110119163653.GA17150@opensource.wolfsonmicro.com> References: <1295441221-32132-1-git-send-email-priya.harsha@intel.com> <20110119142423.GA16328@opensource.wolfsonmicro.com> <438BB0150E931F4B9CE701519A446301084470BBD4@bgsmsx502.gar.corp.intel.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: Received: from opensource2.wolfsonmicro.com (opensource.wolfsonmicro.com [80.75.67.52]) by alsa0.perex.cz (Postfix) with ESMTP id AC51E244B8 for ; Wed, 19 Jan 2011 17:36:58 +0100 (CET) Content-Disposition: inline In-Reply-To: <438BB0150E931F4B9CE701519A446301084470BBD4@bgsmsx502.gar.corp.intel.com> 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: "Koul, Vinod" Cc: "tiwai@suse.de" , "alsa-devel@alsa-project.org" , "Harsha, Priya" , "lrg@slimlogic.co.uk" List-Id: alsa-devel@alsa-project.org On Wed, Jan 19, 2011 at 09:59:59PM +0530, Koul, Vinod wrote: > > > + /* we are using DMICs here so configure how the clock and out pin is set > > */ > > > + snd_soc_write(codec, SN95031_DMICBUF0123, 0x85); > > > + snd_soc_write(codec, SN95031_DMICBUF45, 0x02); > > > + snd_soc_update_bits(codec, SN95031_DMICMUX, 0x7, 0x07); > > This looks like something which would more normally be done with > > platform data than with writes in the machine driver. > This is actually optional. The DMIC can be used as GPO or DMIC. This is user option. > Wanted to explicitly code here as this machine DMICs are used. I'm not saying it shouldn't be optional, I'm saying it should be passed into the driver using platform data instead.