All of lore.kernel.org
 help / color / mirror / Atom feed
* Re: [PATCH] ASoC: Fix SOC_DOUBLE_R_SX_TLV volume mixer arguments
       [not found] <1403294418-6743-1-git-send-email-ryan.harvey@cirrus.com>
@ 2014-06-20 20:03 ` Brian Austin
  2014-06-21 10:24   ` Mark Brown
  0 siblings, 1 reply; 4+ messages in thread
From: Brian Austin @ 2014-06-20 20:03 UTC (permalink / raw)
  To: Ryan Harvey; +Cc: brian.austin, alsa-devel, broonie, lgirdwood, paul.handrigan

On Fri, 20 Jun 2014, Ryan Harvey wrote:

> Remove unnecessary bit shifts. Correct min value to match datasheet. #Steps equals number of steps between min and max.
>
> This patch depends on 8f0367b53d887726b1f4b0b39e0f09b7cca2f79f
> ASoC: cs42l56: Fix stereo channel register assignment for Headphone and
> LineOut volume mixers.
>
> Signed-off-by: Ryan Harvey <ryan.harvey@cirrus.com>
> ---
Acked-by: Brian Austin <brian.austin@cirrus.com>

Thanks,

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [PATCH] ASoC: Fix SOC_DOUBLE_R_SX_TLV volume mixer arguments
  2014-06-20 20:03 ` [PATCH] ASoC: Fix SOC_DOUBLE_R_SX_TLV volume mixer arguments Brian Austin
@ 2014-06-21 10:24   ` Mark Brown
  2014-06-21 11:58     ` Austin, Brian
  0 siblings, 1 reply; 4+ messages in thread
From: Mark Brown @ 2014-06-21 10:24 UTC (permalink / raw)
  To: Brian Austin; +Cc: alsa-devel, paul.handrigan, lgirdwood, Ryan Harvey


[-- Attachment #1.1: Type: text/plain, Size: 793 bytes --]

On Fri, Jun 20, 2014 at 03:03:58PM -0500, Brian Austin wrote:
> On Fri, 20 Jun 2014, Ryan Harvey wrote:
> 
> >Remove unnecessary bit shifts. Correct min value to match datasheet. #Steps equals number of steps between min and max.
> >
> >This patch depends on 8f0367b53d887726b1f4b0b39e0f09b7cca2f79f
> >ASoC: cs42l56: Fix stereo channel register assignment for Headphone and
> >LineOut volume mixers.
> >
> >Signed-off-by: Ryan Harvey <ryan.harvey@cirrus.com>
> >---
> Acked-by: Brian Austin <brian.austin@cirrus.com>

I don't seem to have any of these patches from Ryan - don't know what's
going on there, the message looks like it should be going to me, but
without the patches I can't apply them (and they typos in the list
address means I couldn't pick up the list copy).

[-- Attachment #1.2: Digital signature --]
[-- Type: application/pgp-signature, Size: 819 bytes --]

[-- Attachment #2: Type: text/plain, Size: 0 bytes --]



^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [PATCH] ASoC: Fix SOC_DOUBLE_R_SX_TLV volume mixer arguments
  2014-06-21 10:24   ` Mark Brown
@ 2014-06-21 11:58     ` Austin, Brian
  0 siblings, 0 replies; 4+ messages in thread
From: Austin, Brian @ 2014-06-21 11:58 UTC (permalink / raw)
  To: Mark Brown; +Cc: alsa-devel, Handrigan, Paul, lgirdwood, Harvey, Ryan



> On Jun 21, 2014, at 5:25, "Mark Brown" <broonie@kernel.org> wrote:
> 
>> On Fri, Jun 20, 2014 at 03:03:58PM -0500, Brian Austin wrote:
>>> On Fri, 20 Jun 2014, Ryan Harvey wrote:
>>> 
>>> Remove unnecessary bit shifts. Correct min value to match datasheet. #Steps equals number of steps between min and max.
>>> 
>>> This patch depends on 8f0367b53d887726b1f4b0b39e0f09b7cca2f79f
>>> ASoC: cs42l56: Fix stereo channel register assignment for Headphone and
>>> LineOut volume mixers.
>>> 
>>> Signed-off-by: Ryan Harvey <ryan.harvey@cirrus.com>
>>> ---
>> Acked-by: Brian Austin <brian.austin@cirrus.com>
> 
> I don't seem to have any of these patches from Ryan - don't know what's
> going on there, the message looks like it should be going to me, but
> without the patches I can't apply them (and they typos in the list
> address means I couldn't pick up the list copy).

I have an idea what's wrong.. IT
I'll get him to resend after weekend.

-Brian 

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [PATCH] ASoC: Fix SOC_DOUBLE_R_SX_TLV volume mixer arguments
       [not found] <1403540300-15271-1-git-send-email-ryan.harvey@cirrus.com>
@ 2014-06-23 16:25 ` Brian Austin
  0 siblings, 0 replies; 4+ messages in thread
From: Brian Austin @ 2014-06-23 16:25 UTC (permalink / raw)
  To: Ryan Harvey; +Cc: brian.austin, alsa-devel, broonie, lgirdwood, paul.handrigan

On Mon, 23 Jun 2014, Ryan Harvey wrote:

> Remove unnecessary bit shifts. Correct min value to match datasheet. #Steps equals number of steps between min and max.
>
> This patch depends on 8f0367b53d887726b1f4b0b39e0f09b7cca2f79f
> ASoC: cs42l56: Fix stereo channel register assignment for Headphone and
> LineOut volume mixers.
>
> Signed-off-by: Ryan Harvey <ryan.harvey@cirrus.com>
> ---
> sound/soc/codecs/cs42l52.c |   14 +++++++-------
> sound/soc/codecs/cs42l56.c |   12 ++++++------
> sound/soc/codecs/cs42l73.c |    2 +-
> 3 files changed, 14 insertions(+), 14 deletions(-)
>
> diff --git a/sound/soc/codecs/cs42l52.c b/sound/soc/codecs/cs42l52.c
> index c0581c5..7aed07e 100644
> --- a/sound/soc/codecs/cs42l52.c
> +++ b/sound/soc/codecs/cs42l52.c
> @@ -399,15 +399,15 @@ static const struct snd_kcontrol_new cs42l52_snd_controls[] = {
> 			      CS42L52_MASTERB_VOL, 0, 0x34, 0xE4, hl_tlv),
>
> 	SOC_DOUBLE_R_SX_TLV("Headphone Volume", CS42L52_HPA_VOL,
> -			      CS42L52_HPB_VOL, 0, 0x34, 0xCC, hpd_tlv),
> +			      CS42L52_HPB_VOL, 0, 0x34, 0xC0, hpd_tlv),
>
> 	SOC_ENUM("Headphone Analog Gain", hp_gain_enum),
>
> 	SOC_DOUBLE_R_SX_TLV("Speaker Volume", CS42L52_SPKA_VOL,
> -			      CS42L52_SPKB_VOL, 0, 0x1, 0xff, hl_tlv),
> +			      CS42L52_SPKB_VOL, 0, 0x40, 0xC0, hl_tlv),
>
> 	SOC_DOUBLE_R_SX_TLV("Bypass Volume", CS42L52_PASSTHRUA_VOL,
> -			      CS42L52_PASSTHRUB_VOL, 6, 0x18, 0x90, pga_tlv),
> +			      CS42L52_PASSTHRUB_VOL, 0, 0x88, 0x90, pga_tlv),
>
> 	SOC_DOUBLE("Bypass Mute", CS42L52_MISC_CTL, 4, 5, 1, 0),
>
> @@ -417,10 +417,10 @@ static const struct snd_kcontrol_new cs42l52_snd_controls[] = {
> 	SOC_ENUM("MIC Bias Level", mic_bias_level_enum),
>
> 	SOC_DOUBLE_R_SX_TLV("ADC Volume", CS42L52_ADCA_VOL,
> -			      CS42L52_ADCB_VOL, 7, 0x80, 0xA0, ipd_tlv),
> +			      CS42L52_ADCB_VOL, 0, 0xA0, 0x78, ipd_tlv),
> 	SOC_DOUBLE_R_SX_TLV("ADC Mixer Volume",
> 			     CS42L52_ADCA_MIXER_VOL, CS42L52_ADCB_MIXER_VOL,
> -				6, 0x7f, 0x19, ipd_tlv),
> +				0, 0x19, 0x7F, ipd_tlv),
>
> 	SOC_DOUBLE("ADC Switch", CS42L52_ADC_MISC_CTL, 0, 1, 1, 0),
>
> @@ -428,11 +428,11 @@ static const struct snd_kcontrol_new cs42l52_snd_controls[] = {
> 		     CS42L52_ADCB_MIXER_VOL, 7, 1, 1),
>
> 	SOC_DOUBLE_R_SX_TLV("PGA Volume", CS42L52_PGAA_CTL,
> -			    CS42L52_PGAB_CTL, 0, 0x28, 0x30, pga_tlv),
> +			    CS42L52_PGAB_CTL, 0, 0x28, 0x24, pga_tlv),
>
> 	SOC_DOUBLE_R_SX_TLV("PCM Mixer Volume",
> 			    CS42L52_PCMA_MIXER_VOL, CS42L52_PCMB_MIXER_VOL,
> -				0, 0x7f, 0x19, mix_tlv),
> +				0, 0x19, 0x7f, mix_tlv),
> 	SOC_DOUBLE_R("PCM Mixer Switch",
> 		     CS42L52_PCMA_MIXER_VOL, CS42L52_PCMB_MIXER_VOL, 7, 1, 1),
>
> diff --git a/sound/soc/codecs/cs42l56.c b/sound/soc/codecs/cs42l56.c
> index 8e68ef5..24fbffe 100644
> --- a/sound/soc/codecs/cs42l56.c
> +++ b/sound/soc/codecs/cs42l56.c
> @@ -421,15 +421,15 @@ static const struct soc_enum ng_delay_enum =
> static const struct snd_kcontrol_new cs42l56_snd_controls[] = {
>
> 	SOC_DOUBLE_R_SX_TLV("Master Volume", CS42L56_MASTER_A_VOLUME,
> -			      CS42L56_MASTER_B_VOLUME, 0, 0x34, 0xfd, adv_tlv),
> +			      CS42L56_MASTER_B_VOLUME, 0, 0x34, 0xE4, adv_tlv),
> 	SOC_DOUBLE("Master Mute Switch", CS42L56_DSP_MUTE_CTL, 0, 1, 1, 1),
>
> 	SOC_DOUBLE_R_SX_TLV("ADC Mixer Volume", CS42L56_ADCA_MIX_VOLUME,
> -			      CS42L56_ADCB_MIX_VOLUME, 0, 0x88, 0xa9, hl_tlv),
> +			      CS42L56_ADCB_MIX_VOLUME, 0, 0x88, 0x90, hl_tlv),
> 	SOC_DOUBLE("ADC Mixer Mute Switch", CS42L56_DSP_MUTE_CTL, 6, 7, 1, 1),
>
> 	SOC_DOUBLE_R_SX_TLV("PCM Mixer Volume", CS42L56_PCMA_MIX_VOLUME,
> -			      CS42L56_PCMB_MIX_VOLUME, 0, 0x88, 0xa9, hl_tlv),
> +			      CS42L56_PCMB_MIX_VOLUME, 0, 0x88, 0x90, hl_tlv),
> 	SOC_DOUBLE("PCM Mixer Mute Switch", CS42L56_DSP_MUTE_CTL, 4, 5, 1, 1),
>
> 	SOC_SINGLE_TLV("Analog Advisory Volume",
> @@ -438,16 +438,16 @@ static const struct snd_kcontrol_new cs42l56_snd_controls[] = {
> 			  CS42L56_DIGINPUT_ADV_VOLUME, 0, 0x00, 1, adv_tlv),
>
> 	SOC_DOUBLE_R_SX_TLV("PGA Volume", CS42L56_PGAA_MUX_VOLUME,
> -			      CS42L56_PGAB_MUX_VOLUME, 0, 0x34, 0xfd, pga_tlv),
> +			      CS42L56_PGAB_MUX_VOLUME, 0, 0x34, 0x24, pga_tlv),
> 	SOC_DOUBLE_R_TLV("ADC Volume", CS42L56_ADCA_ATTENUATOR,
> 			      CS42L56_ADCB_ATTENUATOR, 0, 0x00, 1, adc_tlv),
> 	SOC_DOUBLE("ADC Mute Switch", CS42L56_MISC_ADC_CTL, 2, 3, 1, 1),
> 	SOC_DOUBLE("ADC Boost Switch", CS42L56_GAIN_BIAS_CTL, 3, 2, 1, 1),
>
> 	SOC_DOUBLE_R_SX_TLV("Headphone Volume", CS42L56_HPA_VOLUME,
> -			      CS42L56_HPB_VOLUME, 0, 0x44, 0x55, hl_tlv),
> +			      CS42L56_HPB_VOLUME, 0, 0x84, 0x48, hl_tlv),
> 	SOC_DOUBLE_R_SX_TLV("LineOut Volume", CS42L56_LOA_VOLUME,
> -			      CS42L56_LOB_VOLUME, 0, 0x44, 0x55, hl_tlv),
> +			      CS42L56_LOB_VOLUME, 0, 0x84, 0x48, hl_tlv),
>
> 	SOC_SINGLE_TLV("Bass Shelving Volume", CS42L56_TONE_CTL,
> 			0, 0x00, 1, tone_tlv),
> diff --git a/sound/soc/codecs/cs42l73.c b/sound/soc/codecs/cs42l73.c
> index 7f28c58..bdb8316 100644
> --- a/sound/soc/codecs/cs42l73.c
> +++ b/sound/soc/codecs/cs42l73.c
> @@ -401,7 +401,7 @@ static const struct snd_kcontrol_new cs42l73_snd_controls[] = {
> 			CS42L73_LOBAVOL, 0, 0x41, 0x4B, hpaloa_tlv),
>
> 	SOC_DOUBLE_R_SX_TLV("Input PGA Analog Volume", CS42L73_MICAPREPGAAVOL,
> -			CS42L73_MICBPREPGABVOL, 5, 0x34,
> +			CS42L73_MICBPREPGABVOL, 0, 0x34,
> 			0x24, micpga_tlv),
>
> 	SOC_DOUBLE_R("MIC Preamp Switch", CS42L73_MICAPREPGAAVOL,
> -- 
> 1.7.9.5
>
>
Acked-by: Brian Austin <brian.austin@cirrus.com>

Thanks,

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2014-06-23 16:23 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
     [not found] <1403294418-6743-1-git-send-email-ryan.harvey@cirrus.com>
2014-06-20 20:03 ` [PATCH] ASoC: Fix SOC_DOUBLE_R_SX_TLV volume mixer arguments Brian Austin
2014-06-21 10:24   ` Mark Brown
2014-06-21 11:58     ` Austin, Brian
     [not found] <1403540300-15271-1-git-send-email-ryan.harvey@cirrus.com>
2014-06-23 16:25 ` Brian Austin

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.