From mboxrd@z Thu Jan 1 00:00:00 1970 From: Marek Vasut Subject: Re: [PATCH] ASoC: sgtl5000: Do not read registers prior to turning on the supplies Date: Fri, 31 May 2013 17:45:50 +0200 Message-ID: <201305311745.50326.marex@denx.de> References: <1369749858-21579-1-git-send-email-fabio.estevam@freescale.com> <201305311732.24103.marex@denx.de> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: Received: from mail-out.m-online.net (mail-out.m-online.net [212.18.0.10]) by alsa0.perex.cz (Postfix) with ESMTP id 4987526173C for ; Fri, 31 May 2013 17:45:51 +0200 (CEST) In-Reply-To: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: alsa-devel-bounces@alsa-project.org Sender: alsa-devel-bounces@alsa-project.org To: Fabio Estevam Cc: Estevam Fabio-R49496 , "alsa-devel@alsa-project.org" , Mark Brown List-Id: alsa-devel@alsa-project.org Hi Fabio, > On Fri, May 31, 2013 at 12:32 PM, Marek Vasut wrote: > > There was no problem without these patches though. With your patches, I > > see NAK happening on the I2C lines upon first 2-byte write. > > Yes, but prior to these patches there were no register writes in sgtl5000. How would volume adjustment work with no writes ? ;-) > These addditional writes does work and solve the reset issues on > mx6qsabrelite/mx51evk. > > It is only on mx28evk that we have this timeout issue. > > I think we need to turn on the SAIF clock (that connects to the > sgtl5000 MCLK) prior to doing the I2C writes. Ah, that's _very_ likely. I think the chip will NAK I2C communication without having clock supplied to it. I did look into this stuff with an LA yesterday night and I saw the 2-byte write followed by I2C NAK. Best regards, Marek Vasut