Alsa-Devel Archive on lore.kernel.org
 help / color / mirror / Atom feed
From: Marek Vasut <marex@denx.de>
To: Estevam Fabio-R49496 <r49496@freescale.com>
Cc: "alsa-devel@alsa-project.org" <alsa-devel@alsa-project.org>,
	Mark Brown <broonie@kernel.org>,
	"festevam@gmail.com" <festevam@gmail.com>
Subject: Re: [PATCH] ASoC: sgtl5000: Do not read registers prior to turning on the supplies
Date: Fri, 31 May 2013 17:32:23 +0200	[thread overview]
Message-ID: <201305311732.24103.marex@denx.de> (raw)
In-Reply-To: <86D15885F63D1143A519F161FB828EAF265F56@039-SN2MPN1-013.039d.mgd.msft.net>

Hello Fabio,

> Hi Marek,
> 
> (Sorry for the top-posting here)
> 
> There is a delay of 23 seconds, which is 1 second for each sgtl500-
> register write.
> 
> This is an I2C issue and we have already talked about this on the
> linux-arm-kernel list.
> 
> Alexandre Belloni also sees this 1 second on another I2C device connected
> to mx28.

There was no problem without these patches though. With your patches, I see NAK 
happening on the I2C lines upon first 2-byte write.

> Regards,
> 
> Fabio Estevam
> ________________________________________
> From: Marek Vasut [marex@denx.de]
> Sent: Thursday, May 30, 2013 5:36 PM
> To: alsa-devel@alsa-project.org
> Cc: Mark Brown; Estevam Fabio-R49496
> Subject: Re: [alsa-devel] [PATCH] ASoC: sgtl5000: Do not read registers
> prior to turning on the supplies
> 
> Hi Mark, Fabio,
> 
> > On Tue, May 28, 2013 at 11:04:18AM -0300, Fabio Estevam wrote:
> > > Commit b871f1ad (ASoC: sgtl5000: Read SGTL5000_CHIP_ID in i2c_probe())
> > > placed the code for reading the codec revision prior to turning on the
> > > power supplies.
> > > 
> > > Even though this works on some systems that always have the codec power
> > > supplies enabled, this is not correct, so revert this commit.
> > 
> > It seems like a better fix for this is to just enable the supplies while
> > doing the device identification?
> 
> This patch does kinda fix it for me, but the system takes quite some time
> to init the soundcard now (a few seconds). After reverting these two
> patches, the soundcard works just fine (like before):
> 
>     ASoC: sgtl5000: Fix driver probe after reset
>     ASoC: sgtl5000: Read SGTL5000_CHIP_ID in i2c_probe()
> 
> Best regards,
> Marek Vasut

Best regards,
Marek Vasut

  reply	other threads:[~2013-05-31 15:32 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-05-28 14:04 [PATCH] ASoC: sgtl5000: Do not read registers prior to turning on the supplies Fabio Estevam
2013-05-28 14:32 ` Mark Brown
2013-05-30 22:36   ` Marek Vasut
2013-05-31  5:09     ` Estevam Fabio-R49496
2013-05-31 15:32       ` Marek Vasut [this message]
2013-05-31 15:36         ` Fabio Estevam
2013-05-31 15:45           ` Marek Vasut
2013-05-31 15:52             ` Fabio Estevam
2013-05-31 17:20               ` Marek Vasut

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=201305311732.24103.marex@denx.de \
    --to=marex@denx.de \
    --cc=alsa-devel@alsa-project.org \
    --cc=broonie@kernel.org \
    --cc=festevam@gmail.com \
    --cc=r49496@freescale.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox