* [PATCH] ASoC: sgtl5000: Mark CHIP_ANA_POWER as volatile
@ 2013-05-07 20:20 Fabio Estevam
2013-05-08 10:40 ` Mark Brown
0 siblings, 1 reply; 2+ messages in thread
From: Fabio Estevam @ 2013-05-07 20:20 UTC (permalink / raw)
To: broonie; +Cc: Fabio Estevam, matt, alsa-devel, eric.nelson
Register CHIP_ANA_POWER (address: 0x0030) contains all of the power down
controls for the analog blocks.
Mark it as a volatile register, so that sgtl5000 can be functional after a
reset.
Without this patch the following error happens after a audio playback followed
by a reset:
sgtl5000 0-000a: Device with ID register ffff is not a sgtl5000
sgtl5000 0-000a: ASoC: failed to probe CODEC -19
imx-sgtl5000 sound.12: ASoC: failed to instantiate card -19
imx-sgtl5000 sound.12: snd_soc_register_card failed (-19)
Signed-off-by: Fabio Estevam <fabio.estevam@freescale.com>
---
sound/soc/codecs/sgtl5000.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/sound/soc/codecs/sgtl5000.c b/sound/soc/codecs/sgtl5000.c
index 327b443..8b704ff 100644
--- a/sound/soc/codecs/sgtl5000.c
+++ b/sound/soc/codecs/sgtl5000.c
@@ -965,6 +965,7 @@ static bool sgtl5000_volatile(struct device *dev, unsigned int reg)
switch (reg) {
case SGTL5000_CHIP_ID:
case SGTL5000_CHIP_ADCDAC_CTRL:
+ case SGTL5000_CHIP_ANA_POWER:
case SGTL5000_CHIP_ANA_STATUS:
return true;
}
--
1.7.9.5
^ permalink raw reply related [flat|nested] 2+ messages in thread* Re: [PATCH] ASoC: sgtl5000: Mark CHIP_ANA_POWER as volatile
2013-05-07 20:20 [PATCH] ASoC: sgtl5000: Mark CHIP_ANA_POWER as volatile Fabio Estevam
@ 2013-05-08 10:40 ` Mark Brown
0 siblings, 0 replies; 2+ messages in thread
From: Mark Brown @ 2013-05-08 10:40 UTC (permalink / raw)
To: Fabio Estevam; +Cc: matt, alsa-devel, eric.nelson
[-- Attachment #1.1: Type: text/plain, Size: 549 bytes --]
On Tue, May 07, 2013 at 05:20:12PM -0300, Fabio Estevam wrote:
> Register CHIP_ANA_POWER (address: 0x0030) contains all of the power down
> controls for the analog blocks.
> Mark it as a volatile register, so that sgtl5000 can be functional after a
> reset.
Is this register actually volatile - in what situations does the chip
autonomously change its power state?
> Without this patch the following error happens after a audio playback followed
> by a reset:
What is the mechanism by which this change fixes the error you quote?
[-- Attachment #1.2: Digital signature --]
[-- Type: application/pgp-signature, Size: 836 bytes --]
[-- Attachment #2: Type: text/plain, Size: 0 bytes --]
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2013-05-08 10:40 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-05-07 20:20 [PATCH] ASoC: sgtl5000: Mark CHIP_ANA_POWER as volatile Fabio Estevam
2013-05-08 10:40 ` Mark Brown
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox