From mboxrd@z Thu Jan 1 00:00:00 1970 From: Lu Guanqun Subject: Re: [PATCH 03/19] ASoC: mrst_machine: add moorestown machine driver Date: Wed, 4 May 2011 23:25:27 +0800 Message-ID: <20110504152527.GF1671@qtel.sh.intel.com> References: <20110504133756.32443.6282.stgit@localhost> <20110504134509.32443.32365.stgit@localhost> <20110504145517.GB7366@opensource.wolfsonmicro.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: Received: from mga01.intel.com (mga01.intel.com [192.55.52.88]) by alsa0.perex.cz (Postfix) with ESMTP id E218910395D for ; Wed, 4 May 2011 17:26:41 +0200 (CEST) Content-Disposition: inline In-Reply-To: <20110504145517.GB7366@opensource.wolfsonmicro.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: Dimitris Papastamos Cc: ALSA , Takashi Iwai , Mark Brown , "Wang, Xingchao" , "Koul, Vinod" , Liam Girdwood List-Id: alsa-devel@alsa-project.org On Wed, May 04, 2011 at 10:55:17PM +0800, Dimitris Papastamos wrote: > On Wed, May 04, 2011 at 09:45:09PM +0800, Lu Guanqun wrote: > > This machine driver glues upd9976 codec driver and sst_platform driver. > > > > Signed-off-by: Lu Guanqun > > Signed-off-by: Wang Xingchao > > > +static int mrst_hw_params(struct snd_pcm_substream *substream, > > + struct snd_pcm_hw_params *params) > > +{ > > + struct snd_soc_pcm_runtime *rtd = substream->private_data; > > + struct snd_soc_dai *codec_dai = rtd->codec_dai; > > + int ret; > > + > > + ret = snd_soc_dai_set_fmt(codec_dai, > > + SND_SOC_DAIFMT_I2S | SND_SOC_DAIFMT_CBM_CFM); > > + > > + return ret; > > +} > > Should we not be letting know the CPU that the CODEC is master? Or is > it by default slave? by default, the corresponding bit is 0 and it's slave mode. we should change it to master somewhere. no sure about your first question... > > Thanks, > Dimitris > _______________________________________________ > Alsa-devel mailing list > Alsa-devel@alsa-project.org > http://mailman.alsa-project.org/mailman/listinfo/alsa-devel -- guanqun