From: Lu Guanqun Subject: Re: [PATCH] ASoC: factor out intel_scu_ipc related read/write Date: Mon, 9 May 2011 13:02:27 +0800 Message-ID: <20110509050227.GB13372@qtel.sh.intel.com> References: <20110507134318.4225.54478.stgit@localhost> <20110507134830.GB13216@qtel.sh.intel.com> <1304910863.32447.3.camel@vkoul-udesk3> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: Received: from mga02.intel.com (mga02.intel.com [134.134.136.20]) by alsa0.perex.cz (Postfix) with ESMTP id B3F0824142 for ; Mon, 9 May 2011 07:03:43 +0200 (CEST) Content-Disposition: inline In-Reply-To: <1304910863.32447.3.camel@vkoul-udesk3> 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: Takashi Iwai , ALSA , Mark Brown , "alan@linux.intel.com" List-Id: alsa-devel@alsa-project.org On Mon, May 09, 2011 at 11:14:23AM +0800, Koul, Vinod wrote: > On Sat, 2011-05-07 at 19:18 +0530, Lu, Guanqun wrote: > > Hi Mark, > > > > How do you think of this approach? > > > > Hi Vinod, > > > > I don't have the mfld hardware, so it's a not tested patch. I want your > > ack or dis-ack on this. :) > > > > > + case SND_SOC_INTEL_SCU: > > > + if (io_types[i].addr_bits != 16 || io_types[i].data_bits != 8) > > > + return -EINVAL; > > > + > > > + codec->hw_read = snd_soc_16_8_intel_scu_read; > > > + codec->hw_write = snd_soc_16_8_intel_scu_write; > > > + codec->control_data = codec; > > > > Another way to do this to simply override codec->read and codec->write > > with the intel_scu_read/write stuff. But then I realize we may later > > take advantage of soc cache, therefore it's not appropriate to simply > > override these two operations. > Let me test it out... > > Meanwhile, i am not sure if this is a good idea. > We can try enabling cache but will it help? Have you tried that on mrst? As the first step, we can bypass the soc cache... I haven't tried it on mrst yet. > > The reason for my paranoia is the SCU API, in past it had issues when we > do block writes it, something which syncing the cache can cause. > + Alan for his comments... > > > -- > ~Vinod > -- guanqun