Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1724126 > unrolled thread

Re: [PATCH 2/9] ASoC: max98927: Added controls for Envelope tracking

Started byMark Brown <broonie@kernel.org>
First post2017-08-31 13:50 +0200
Last post2017-09-01 23:40 +0200
Articles 2 — 2 participants

Back to article view | Back to linux.kernel

This discussion starts older than the indexed window; earlier articles aren't shown. The article labeled Started by below is the oldest one visible, not the original post.


Contents

  Re: [PATCH 2/9] ASoC: max98927: Added controls for Envelope tracking Mark Brown <broonie@kernel.org> - 2017-08-31 13:50 +0200
    RE: [PATCH 2/9] ASoC: max98927: Added controls for Envelope tracking Ryan Lee <RyanS.Lee@maximintegrated.com> - 2017-09-01 23:40 +0200

#1724126 — Re: [PATCH 2/9] ASoC: max98927: Added controls for Envelope tracking

FromMark Brown <broonie@kernel.org>
Date2017-08-31 13:50 +0200
SubjectRe: [PATCH 2/9] ASoC: max98927: Added controls for Envelope tracking
Message-ID<ukw8W-55Z-11@gated-at.bofh.it>

[Multipart message — attachments visible in raw view] — view raw

On Mon, Aug 28, 2017 at 04:30:54PM -0700, Ryan Lee wrote:

>  	/* Envelope Tracking configuration */
>  	regmap_write(max98927->regmap,
>  		MAX98927_R0082_ENV_TRACK_VOUT_HEADROOM,
> -		0x08);
> +		0x0A);
>  	regmap_write(max98927->regmap,
>  		MAX98927_R0086_ENV_TRACK_CTRL,
>  		0x01);
> -	regmap_write(max98927->regmap,
> -		MAX98927_R0087_ENV_TRACK_BOOST_VOUT_READ,
> -		0x10);

Why are we changing the defaults here?  It was understandable to have a
fixed default that differed from the chip value when there was no
control but now there is a control and we're changing the default again
for some undocumented reason.  It'd be better to leave the values here
to avoid breaking compatibility with existing users and let users who
need different values change things using the newly added controls.

[toc] | [next] | [standalone]


#1725361

FromRyan Lee <RyanS.Lee@maximintegrated.com>
Date2017-09-01 23:40 +0200
Message-ID<ul1Ps-2fo-29@gated-at.bofh.it>
In reply to#1724126
>-----Original Message-----
>From: Mark Brown [mailto:broonie@kernel.org]
>Sent: Thursday, August 31, 2017 4:44 AM
>To: Ryan Lee <RyanS.Lee@maximintegrated.com>
>Cc: lgirdwood@gmail.com; perex@perex.cz; tiwai@suse.com;
>kuninori.morimoto.gx@renesas.com; alsa-devel@alsa-project.org; linux-
>kernel@vger.kernel.org; ryan.lee.maxim@gmail.com
>Subject: Re: [PATCH 2/9] ASoC: max98927: Added controls for Envelope tracking
>
>On Mon, Aug 28, 2017 at 04:30:54PM -0700, Ryan Lee wrote:
>
>>  	/* Envelope Tracking configuration */
>>  	regmap_write(max98927->regmap,
>>  		MAX98927_R0082_ENV_TRACK_VOUT_HEADROOM,
>> -		0x08);
>> +		0x0A);
>>  	regmap_write(max98927->regmap,
>>  		MAX98927_R0086_ENV_TRACK_CTRL,
>>  		0x01);
>> -	regmap_write(max98927->regmap,
>> -		MAX98927_R0087_ENV_TRACK_BOOST_VOUT_READ,
>> -		0x10);
>
>Why are we changing the defaults here?  It was understandable to have a fixed
>default that differed from the chip value when there was no control but now
>there is a control and we're changing the default again for some undocumented
>reason.  It'd be better to leave the values here to avoid breaking compatibility
>with existing users and let users who need different values change things using
>the newly added controls.

Thank you for feedback. Let me keep existing value.
I still need to remove regmap_write for R:0x87 because it is read-only register.

[toc] | [prev] | [standalone]


Back to top | Article view | linux.kernel


csiph-web