Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.kernel > #1414541
| From | Clemens Gruber <clemens.gruber@pqgruber.com> |
|---|---|
| Newsgroups | linux.kernel |
| Subject | Re: [alsa-devel] [PATCH] ASoC: sgtl5000: only check VDDD-supply, not revision |
| Date | 2016-06-06 01:20 +0200 |
| Message-ID | <rGPuN-4Kp-5@gated-at.bofh.it> (permalink) |
| References | (1 earlier) <rFD2G-7GN-11@gated-at.bofh.it> <rG08W-5za-11@gated-at.bofh.it> <rGca6-4Ez-15@gated-at.bofh.it> <rGfKF-6Wc-7@gated-at.bofh.it> <rGPuN-4Kp-7@gated-at.bofh.it> |
| Organization | linux.* mail to news gateway |
Hi Eric, Fabio, Mark, On Sat, Jun 04, 2016 at 07:15:25PM +0200, Clemens Gruber wrote: > please don't merge the patch yet, I just observed a strange effect when > resetting the board during playback / just after playback stops. > At next boot time, sometimes the following error occurs: > imx-sgtl5000 sound: ASoc: CODEC DAI sgtl5000 not registered > imx-sgtl5000 sound: snd_soc_register_card failed (-517) I looked into this today and discovered the following: With my patch applied, if I reset the board just after playback, at the next boot, the sgtl5000_fill_defaults function does not succeed: Writing the default value 0x7060 to register 0x30 (CHIP_ANA_POWER) fails. How did CHIP_ANA_POWER change with my patch: Before, only LINREG_SIMPLE_POWERUP was cleared as is recommended in the datasheet when using the internal LDO, now both LINREG_SIMPLE_POWERUP and STARTUP_POWERUP are cleared, as is recommended when using external VDDD. But why does the SGTL5000 nack that default write to CHIP_ANA_POWER after a reboot, which interrupted the playback? The following patch from Eric solved the problem; one write fails but it continues setting the other registers and thus even if resetting a board during playback, the sound still works after reboot: http://mailman.alsa-project.org/pipermail/alsa-devel/2015-February/088356.html Another workaround might be to not even write a default value to CHIP_ANA_POWER, as in this patch from Eric: http://mailman.alsa-project.org/pipermail/alsa-devel/2015-February/088355.html What do you think we should do? Regards, Clemens
Back to linux.kernel | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
[PATCH] ASoC: sgtl5000: only check VDDD-supply, not revision Clemens Gruber <clemens.gruber@pqgruber.com> - 2016-06-02 14:50 +0200
Re: [PATCH] ASoC: sgtl5000: only check VDDD-supply, not revision Fabio Estevam <festevam@gmail.com> - 2016-06-02 17:50 +0200
Re: [PATCH] ASoC: sgtl5000: only check VDDD-supply, not revision Mark Brown <broonie@kernel.org> - 2016-06-02 19:00 +0200
Re: [PATCH] ASoC: sgtl5000: only check VDDD-supply, not revision Clemens Gruber <clemens.gruber@pqgruber.com> - 2016-06-03 18:00 +0200
Re: [PATCH] ASoC: sgtl5000: only check VDDD-supply, not revision Eric Nelson <eric@nelint.com> - 2016-06-03 18:30 +0200
Re: [PATCH] ASoC: sgtl5000: only check VDDD-supply, not revision Eric Nelson <eric@nelint.com> - 2016-06-04 07:20 +0200
Re: [PATCH] ASoC: sgtl5000: only check VDDD-supply, not revision Clemens Gruber <clemens.gruber@pqgruber.com> - 2016-06-04 11:10 +0200
Re: [alsa-devel] [PATCH] ASoC: sgtl5000: only check VDDD-supply, not revision Clemens Gruber <clemens.gruber@pqgruber.com> - 2016-06-06 01:20 +0200
Re: [alsa-devel] [PATCH] ASoC: sgtl5000: only check VDDD-supply, not revision Fabio Estevam <festevam@gmail.com> - 2016-06-06 03:30 +0200
Re: [alsa-devel] [PATCH] ASoC: sgtl5000: only check VDDD-supply, not revision Clemens Gruber <clemens.gruber@pqgruber.com> - 2016-06-06 18:50 +0200
Re: [alsa-devel] [PATCH] ASoC: sgtl5000: only check VDDD-supply, not revision Fabio Estevam <festevam@gmail.com> - 2016-06-06 19:20 +0200
Re: [PATCH] ASoC: sgtl5000: only check VDDD-supply, not revision Mark Brown <broonie@kernel.org> - 2016-06-06 20:00 +0200
csiph-web