Message ID | 20200911173140.29984-1-miquel.raynal@bootlin.com |
---|---|
Headers | show |
Series | tlv320aic3xx4 updates | expand |
On Tue, Sep 15, 2020 at 03:02:07PM +0200, Alexandre Belloni wrote: > On 15/09/2020 12:50:34+0100, Mark Brown wrote: > > On Tue, Sep 15, 2020 at 10:26:02AM +0200, Alexandre Belloni wrote: > > > On 11/09/2020 19:31:40+0200, Miquel Raynal wrote: > > > > + /* > > > > + * Enable the fast charging feature and ensure the needed 40ms ellapsed > > > > + * before using the analog circuits. > > > > + */ > > > > + snd_soc_component_write(component, AIC32X4_REFPOWERUP, > > > > + AIC32X4_REFPOWERUP_40MS); > > > > + msleep(40); > > > > + > > > Maybe the actual REFPOWERUP value could be exposed as a control so > > > userspace has a way to set the policy? > > We very rarely do this, there's not usially anything > Could you suggest something then? This mainly changes the power > codec power consumption. I guess people will want to trade latency > for less consumption. Is it increasing steady state power consumption or is it just drawing more power during the ramp (ie, peak current consumption is bigger)? Usually this is trading off clean ramps for fast ramps rather than affecting steady state. If it's affecting steady state a control seems sensible.
On 15/09/2020 16:14:01+0200, Miquel Raynal wrote: > Mark Brown <broonie@kernel.org> wrote on Tue, 15 Sep 2020 15:10:25 > +0100: > > > On Tue, Sep 15, 2020 at 03:02:07PM +0200, Alexandre Belloni wrote: > > > On 15/09/2020 12:50:34+0100, Mark Brown wrote: > > > > On Tue, Sep 15, 2020 at 10:26:02AM +0200, Alexandre Belloni wrote: > > > > > On 11/09/2020 19:31:40+0200, Miquel Raynal wrote: > > > > > > > > + /* > > > > > > + * Enable the fast charging feature and ensure the needed 40ms ellapsed > > > > > > + * before using the analog circuits. > > > > > > + */ > > > > > > + snd_soc_component_write(component, AIC32X4_REFPOWERUP, > > > > > > + AIC32X4_REFPOWERUP_40MS); > > > > > > + msleep(40); > > > > > > + > > > > > > > Maybe the actual REFPOWERUP value could be exposed as a control so > > > > > userspace has a way to set the policy? > > > > > > We very rarely do this, there's not usially anything > > > > > Could you suggest something then? This mainly changes the power > > > codec power consumption. I guess people will want to trade latency > > > for less consumption. > > > > Is it increasing steady state power consumption or is it just drawing > > more power during the ramp (ie, peak current consumption is bigger)? > > Usually this is trading off clean ramps for fast ramps rather than > > affecting steady state. If it's affecting steady state a control seems > > sensible. > > Indeed, it is just affecting the ramp (peak current is bigger). > However, forcing powerup at probe time versus at play time means that you consume power even when not playing audio.
On Fri, 11 Sep 2020 19:31:37 +0200, Miquel Raynal wrote: > While doing a kernel update on a sama5-based board I figured out the > sound system was not working anymore, the debug session led me to the > following commits. As I am not an audio expert at all, I am fully open > to comments and suggestions. > > Thanks, > Miquèl > > [...] Applied to https://git.kernel.org/pub/scm/linux/kernel/git/broonie/sound.git for-next Thanks! [1/3] ASoC: tlv320aic32x4: Ensure a minimum delay before clock stabilization commit: 5b4458ebb4c8007dae7eaeb88cb52b2bb4879894 [2/3] ASoC: tlv320aic32x4: Fix bdiv clock rate derivation commit: 40b37136287ba6b34aa2f1f6123f3d6d205dc2f0 [3/3] ASoC: tlv320aic32x4: Enable fast charge commit: ec96690de82cee2cb028c07b1e72cb4a446ad03a All being well this means that it will be integrated into the linux-next tree (usually sometime in the next 24 hours) and sent to Linus during the next merge window (or sooner if it is a bug fix), however if problems are discovered then the patch may be dropped or reverted. You may get further e-mails resulting from automated or manual testing and review of the tree, please engage with people reporting problems and send followup patches addressing any issues that are reported if needed. If any updates are required or you are submitting further changes they should be sent as incremental updates against current git, existing patches will not be replaced. Please add any relevant lists and maintainers to the CCs when replying to this mail. Thanks, Mark