* [PATCH 00/14] Fix wrong ctl value references in ASoC codecs
@ 2015-03-10 11:39 Takashi Iwai
2015-03-10 11:39 ` [PATCH 01/14] ASoC: adav80x: Fix wrong value references for boolean kctl Takashi Iwai
` (14 more replies)
0 siblings, 15 replies; 27+ messages in thread
From: Takashi Iwai @ 2015-03-10 11:39 UTC (permalink / raw)
To: Mark Brown
Cc: alsa-devel, Lars-Peter Clausen, Brian Austin, Paul Handrigan,
Liam Girdwood, Charles Keepax
Hi,
while looking through the ASoC codec codes, I noticed that lots of
drivers refer to the wrong union value type for boolean controls.
They should be value.integer.value[], but the code accesses to
value.enumerated.item[]. They haven't been noticed so far maybe just
because both are same on 32bit architectures. But they are
incompatible on 64bit architectures, thus must be fixed.
Takashi
===
Takashi Iwai (14):
ASoC: adav80x: Fix wrong value references for boolean kctl
ASoC: ak4641: Fix wrong value references for boolean kctl
ASoC: cs4271: Fix wrong value references for boolean kctl
ASoC: es8238: Fix wrong value references for boolean kctl
ASoC: pcm1681: Fix wrong value references for boolean kctl
ASoC: tas5086: Fix wrong value references for boolean kctl
ASoC: wm2000: Fix wrong value references for boolean kctl
ASoC: wm8731: Fix wrong value references for boolean kctl
ASoC: wm8903: Fix wrong value references for boolean kctl
ASoC: wm8904: Fix wrong value references for boolean kctl
ASoC: wm8955: Fix wrong value references for boolean kctl
ASoC: wm8960: Fix wrong value references for boolean kctl
ASoC: wm9712: Fix wrong value references for boolean kctl
ASoC: wm9713: Fix wrong value references for boolean kctl
sound/soc/codecs/adav80x.c | 4 ++--
sound/soc/codecs/ak4641.c | 4 ++--
sound/soc/codecs/cs4271.c | 4 ++--
sound/soc/codecs/es8328.c | 4 ++--
sound/soc/codecs/pcm1681.c | 4 ++--
sound/soc/codecs/tas5086.c | 4 ++--
sound/soc/codecs/wm2000.c | 8 ++++----
sound/soc/codecs/wm8731.c | 4 ++--
sound/soc/codecs/wm8903.c | 4 ++--
sound/soc/codecs/wm8904.c | 4 ++--
sound/soc/codecs/wm8955.c | 4 ++--
sound/soc/codecs/wm8960.c | 4 ++--
sound/soc/codecs/wm9712.c | 6 +++---
sound/soc/codecs/wm9713.c | 6 +++---
14 files changed, 32 insertions(+), 32 deletions(-)
--
2.3.2
^ permalink raw reply [flat|nested] 27+ messages in thread
* [PATCH 01/14] ASoC: adav80x: Fix wrong value references for boolean kctl
2015-03-10 11:39 [PATCH 00/14] Fix wrong ctl value references in ASoC codecs Takashi Iwai
@ 2015-03-10 11:39 ` Takashi Iwai
2015-03-10 11:42 ` Lars-Peter Clausen
2015-03-10 11:39 ` [PATCH 02/14] ASoC: ak4641: " Takashi Iwai
` (13 subsequent siblings)
14 siblings, 1 reply; 27+ messages in thread
From: Takashi Iwai @ 2015-03-10 11:39 UTC (permalink / raw)
To: Mark Brown
Cc: alsa-devel, Lars-Peter Clausen, Brian Austin, Paul Handrigan,
Liam Girdwood, Charles Keepax
The correct values referred by a boolean control are
value.integer.value[], not value.enumerated.item[].
The former is long while the latter is int, so it's even incompatible
on 64bit architectures.
Cc: <stable@vger.kernel.org>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
---
sound/soc/codecs/adav80x.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/sound/soc/codecs/adav80x.c b/sound/soc/codecs/adav80x.c
index b67480f1b1aa..4373ada95648 100644
--- a/sound/soc/codecs/adav80x.c
+++ b/sound/soc/codecs/adav80x.c
@@ -317,7 +317,7 @@ static int adav80x_put_deemph(struct snd_kcontrol *kcontrol,
{
struct snd_soc_codec *codec = snd_soc_kcontrol_codec(kcontrol);
struct adav80x *adav80x = snd_soc_codec_get_drvdata(codec);
- unsigned int deemph = ucontrol->value.enumerated.item[0];
+ unsigned int deemph = ucontrol->value.integer.value[0];
if (deemph > 1)
return -EINVAL;
@@ -333,7 +333,7 @@ static int adav80x_get_deemph(struct snd_kcontrol *kcontrol,
struct snd_soc_codec *codec = snd_soc_kcontrol_codec(kcontrol);
struct adav80x *adav80x = snd_soc_codec_get_drvdata(codec);
- ucontrol->value.enumerated.item[0] = adav80x->deemph;
+ ucontrol->value.integer.value[0] = adav80x->deemph;
return 0;
};
--
2.3.2
^ permalink raw reply related [flat|nested] 27+ messages in thread
* [PATCH 02/14] ASoC: ak4641: Fix wrong value references for boolean kctl
2015-03-10 11:39 [PATCH 00/14] Fix wrong ctl value references in ASoC codecs Takashi Iwai
2015-03-10 11:39 ` [PATCH 01/14] ASoC: adav80x: Fix wrong value references for boolean kctl Takashi Iwai
@ 2015-03-10 11:39 ` Takashi Iwai
2015-03-10 11:39 ` [PATCH 03/14] ASoC: cs4271: " Takashi Iwai
` (12 subsequent siblings)
14 siblings, 0 replies; 27+ messages in thread
From: Takashi Iwai @ 2015-03-10 11:39 UTC (permalink / raw)
To: Mark Brown
Cc: alsa-devel, Lars-Peter Clausen, Brian Austin, Paul Handrigan,
Liam Girdwood, Charles Keepax
The correct values referred by a boolean control are
value.integer.value[], not value.enumerated.item[].
The former is long while the latter is int, so it's even incompatible
on 64bit architectures.
Cc: <stable@vger.kernel.org>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
---
sound/soc/codecs/ak4641.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/sound/soc/codecs/ak4641.c b/sound/soc/codecs/ak4641.c
index 70861c7b1631..81b54a270bd8 100644
--- a/sound/soc/codecs/ak4641.c
+++ b/sound/soc/codecs/ak4641.c
@@ -76,7 +76,7 @@ static int ak4641_put_deemph(struct snd_kcontrol *kcontrol,
{
struct snd_soc_codec *codec = snd_soc_kcontrol_codec(kcontrol);
struct ak4641_priv *ak4641 = snd_soc_codec_get_drvdata(codec);
- int deemph = ucontrol->value.enumerated.item[0];
+ int deemph = ucontrol->value.integer.value[0];
if (deemph > 1)
return -EINVAL;
@@ -92,7 +92,7 @@ static int ak4641_get_deemph(struct snd_kcontrol *kcontrol,
struct snd_soc_codec *codec = snd_soc_kcontrol_codec(kcontrol);
struct ak4641_priv *ak4641 = snd_soc_codec_get_drvdata(codec);
- ucontrol->value.enumerated.item[0] = ak4641->deemph;
+ ucontrol->value.integer.value[0] = ak4641->deemph;
return 0;
};
--
2.3.2
^ permalink raw reply related [flat|nested] 27+ messages in thread
* [PATCH 03/14] ASoC: cs4271: Fix wrong value references for boolean kctl
2015-03-10 11:39 [PATCH 00/14] Fix wrong ctl value references in ASoC codecs Takashi Iwai
2015-03-10 11:39 ` [PATCH 01/14] ASoC: adav80x: Fix wrong value references for boolean kctl Takashi Iwai
2015-03-10 11:39 ` [PATCH 02/14] ASoC: ak4641: " Takashi Iwai
@ 2015-03-10 11:39 ` Takashi Iwai
2015-03-10 13:14 ` Handrigan, Paul
2015-03-10 11:39 ` [PATCH 04/14] ASoC: es8238: " Takashi Iwai
` (11 subsequent siblings)
14 siblings, 1 reply; 27+ messages in thread
From: Takashi Iwai @ 2015-03-10 11:39 UTC (permalink / raw)
To: Mark Brown
Cc: alsa-devel, Lars-Peter Clausen, Brian Austin, Paul Handrigan,
Liam Girdwood, Charles Keepax
The correct values referred by a boolean control are
value.integer.value[], not value.enumerated.item[].
The former is long while the latter is int, so it's even incompatible
on 64bit architectures.
Cc: <stable@vger.kernel.org>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
---
sound/soc/codecs/cs4271.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/sound/soc/codecs/cs4271.c b/sound/soc/codecs/cs4271.c
index 79a4efcb894c..7d3a6accaf9a 100644
--- a/sound/soc/codecs/cs4271.c
+++ b/sound/soc/codecs/cs4271.c
@@ -286,7 +286,7 @@ static int cs4271_get_deemph(struct snd_kcontrol *kcontrol,
struct snd_soc_codec *codec = snd_soc_kcontrol_codec(kcontrol);
struct cs4271_private *cs4271 = snd_soc_codec_get_drvdata(codec);
- ucontrol->value.enumerated.item[0] = cs4271->deemph;
+ ucontrol->value.integer.value[0] = cs4271->deemph;
return 0;
}
@@ -296,7 +296,7 @@ static int cs4271_put_deemph(struct snd_kcontrol *kcontrol,
struct snd_soc_codec *codec = snd_soc_kcontrol_codec(kcontrol);
struct cs4271_private *cs4271 = snd_soc_codec_get_drvdata(codec);
- cs4271->deemph = ucontrol->value.enumerated.item[0];
+ cs4271->deemph = ucontrol->value.integer.value[0];
return cs4271_set_deemph(codec);
}
--
2.3.2
^ permalink raw reply related [flat|nested] 27+ messages in thread
* [PATCH 04/14] ASoC: es8238: Fix wrong value references for boolean kctl
2015-03-10 11:39 [PATCH 00/14] Fix wrong ctl value references in ASoC codecs Takashi Iwai
` (2 preceding siblings ...)
2015-03-10 11:39 ` [PATCH 03/14] ASoC: cs4271: " Takashi Iwai
@ 2015-03-10 11:39 ` Takashi Iwai
2015-03-10 11:39 ` [PATCH 05/14] ASoC: pcm1681: " Takashi Iwai
` (10 subsequent siblings)
14 siblings, 0 replies; 27+ messages in thread
From: Takashi Iwai @ 2015-03-10 11:39 UTC (permalink / raw)
To: Mark Brown
Cc: alsa-devel, Lars-Peter Clausen, Brian Austin, Paul Handrigan,
Liam Girdwood, Charles Keepax
The correct values referred by a boolean control are
value.integer.value[], not value.enumerated.item[].
The former is long while the latter is int, so it's even incompatible
on 64bit architectures.
Cc: <stable@vger.kernel.org>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
---
sound/soc/codecs/es8328.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/sound/soc/codecs/es8328.c b/sound/soc/codecs/es8328.c
index f27325155ace..c5f35a07e8e4 100644
--- a/sound/soc/codecs/es8328.c
+++ b/sound/soc/codecs/es8328.c
@@ -120,7 +120,7 @@ static int es8328_get_deemph(struct snd_kcontrol *kcontrol,
struct snd_soc_codec *codec = snd_soc_kcontrol_codec(kcontrol);
struct es8328_priv *es8328 = snd_soc_codec_get_drvdata(codec);
- ucontrol->value.enumerated.item[0] = es8328->deemph;
+ ucontrol->value.integer.value[0] = es8328->deemph;
return 0;
}
@@ -129,7 +129,7 @@ static int es8328_put_deemph(struct snd_kcontrol *kcontrol,
{
struct snd_soc_codec *codec = snd_soc_kcontrol_codec(kcontrol);
struct es8328_priv *es8328 = snd_soc_codec_get_drvdata(codec);
- int deemph = ucontrol->value.enumerated.item[0];
+ int deemph = ucontrol->value.integer.value[0];
int ret;
if (deemph > 1)
--
2.3.2
^ permalink raw reply related [flat|nested] 27+ messages in thread
* [PATCH 05/14] ASoC: pcm1681: Fix wrong value references for boolean kctl
2015-03-10 11:39 [PATCH 00/14] Fix wrong ctl value references in ASoC codecs Takashi Iwai
` (3 preceding siblings ...)
2015-03-10 11:39 ` [PATCH 04/14] ASoC: es8238: " Takashi Iwai
@ 2015-03-10 11:39 ` Takashi Iwai
2015-03-10 11:39 ` [PATCH 06/14] ASoC: tas5086: " Takashi Iwai
` (9 subsequent siblings)
14 siblings, 0 replies; 27+ messages in thread
From: Takashi Iwai @ 2015-03-10 11:39 UTC (permalink / raw)
To: Mark Brown
Cc: alsa-devel, Lars-Peter Clausen, Brian Austin, Paul Handrigan,
Liam Girdwood, Charles Keepax
The correct values referred by a boolean control are
value.integer.value[], not value.enumerated.item[].
The former is long while the latter is int, so it's even incompatible
on 64bit architectures.
Cc: <stable@vger.kernel.org>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
---
sound/soc/codecs/pcm1681.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/sound/soc/codecs/pcm1681.c b/sound/soc/codecs/pcm1681.c
index a722a023c262..477e13d30971 100644
--- a/sound/soc/codecs/pcm1681.c
+++ b/sound/soc/codecs/pcm1681.c
@@ -118,7 +118,7 @@ static int pcm1681_get_deemph(struct snd_kcontrol *kcontrol,
struct snd_soc_codec *codec = snd_soc_kcontrol_codec(kcontrol);
struct pcm1681_private *priv = snd_soc_codec_get_drvdata(codec);
- ucontrol->value.enumerated.item[0] = priv->deemph;
+ ucontrol->value.integer.value[0] = priv->deemph;
return 0;
}
@@ -129,7 +129,7 @@ static int pcm1681_put_deemph(struct snd_kcontrol *kcontrol,
struct snd_soc_codec *codec = snd_soc_kcontrol_codec(kcontrol);
struct pcm1681_private *priv = snd_soc_codec_get_drvdata(codec);
- priv->deemph = ucontrol->value.enumerated.item[0];
+ priv->deemph = ucontrol->value.integer.value[0];
return pcm1681_set_deemph(codec);
}
--
2.3.2
^ permalink raw reply related [flat|nested] 27+ messages in thread
* [PATCH 06/14] ASoC: tas5086: Fix wrong value references for boolean kctl
2015-03-10 11:39 [PATCH 00/14] Fix wrong ctl value references in ASoC codecs Takashi Iwai
` (4 preceding siblings ...)
2015-03-10 11:39 ` [PATCH 05/14] ASoC: pcm1681: " Takashi Iwai
@ 2015-03-10 11:39 ` Takashi Iwai
2015-03-10 11:39 ` [PATCH 07/14] ASoC: wm2000: " Takashi Iwai
` (8 subsequent siblings)
14 siblings, 0 replies; 27+ messages in thread
From: Takashi Iwai @ 2015-03-10 11:39 UTC (permalink / raw)
To: Mark Brown
Cc: alsa-devel, Lars-Peter Clausen, Brian Austin, Paul Handrigan,
Liam Girdwood, Charles Keepax
The correct values referred by a boolean control are
value.integer.value[], not value.enumerated.item[].
The former is long while the latter is int, so it's even incompatible
on 64bit architectures.
Cc: <stable@vger.kernel.org>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
---
sound/soc/codecs/tas5086.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/sound/soc/codecs/tas5086.c b/sound/soc/codecs/tas5086.c
index 249ef5c4c762..32942bed34b1 100644
--- a/sound/soc/codecs/tas5086.c
+++ b/sound/soc/codecs/tas5086.c
@@ -281,7 +281,7 @@ static int tas5086_get_deemph(struct snd_kcontrol *kcontrol,
struct snd_soc_codec *codec = snd_soc_kcontrol_codec(kcontrol);
struct tas5086_private *priv = snd_soc_codec_get_drvdata(codec);
- ucontrol->value.enumerated.item[0] = priv->deemph;
+ ucontrol->value.integer.value[0] = priv->deemph;
return 0;
}
@@ -292,7 +292,7 @@ static int tas5086_put_deemph(struct snd_kcontrol *kcontrol,
struct snd_soc_codec *codec = snd_soc_kcontrol_codec(kcontrol);
struct tas5086_private *priv = snd_soc_codec_get_drvdata(codec);
- priv->deemph = ucontrol->value.enumerated.item[0];
+ priv->deemph = ucontrol->value.integer.value[0];
return tas5086_set_deemph(codec);
}
--
2.3.2
^ permalink raw reply related [flat|nested] 27+ messages in thread
* [PATCH 07/14] ASoC: wm2000: Fix wrong value references for boolean kctl
2015-03-10 11:39 [PATCH 00/14] Fix wrong ctl value references in ASoC codecs Takashi Iwai
` (5 preceding siblings ...)
2015-03-10 11:39 ` [PATCH 06/14] ASoC: tas5086: " Takashi Iwai
@ 2015-03-10 11:39 ` Takashi Iwai
2015-03-10 15:00 ` Charles Keepax
2015-03-10 11:39 ` [PATCH 08/14] ASoC: wm8731: " Takashi Iwai
` (7 subsequent siblings)
14 siblings, 1 reply; 27+ messages in thread
From: Takashi Iwai @ 2015-03-10 11:39 UTC (permalink / raw)
To: Mark Brown
Cc: alsa-devel, Lars-Peter Clausen, Brian Austin, Paul Handrigan,
Liam Girdwood, Charles Keepax
The correct values referred by a boolean control are
value.integer.value[], not value.enumerated.item[].
The former is long while the latter is int, so it's even incompatible
on 64bit architectures.
Cc: <stable@vger.kernel.org>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
---
sound/soc/codecs/wm2000.c | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/sound/soc/codecs/wm2000.c b/sound/soc/codecs/wm2000.c
index 8d9de49a5052..21d5402e343f 100644
--- a/sound/soc/codecs/wm2000.c
+++ b/sound/soc/codecs/wm2000.c
@@ -610,7 +610,7 @@ static int wm2000_anc_mode_get(struct snd_kcontrol *kcontrol,
struct snd_soc_codec *codec = snd_soc_kcontrol_codec(kcontrol);
struct wm2000_priv *wm2000 = dev_get_drvdata(codec->dev);
- ucontrol->value.enumerated.item[0] = wm2000->anc_active;
+ ucontrol->value.integer.value[0] = wm2000->anc_active;
return 0;
}
@@ -620,7 +620,7 @@ static int wm2000_anc_mode_put(struct snd_kcontrol *kcontrol,
{
struct snd_soc_codec *codec = snd_soc_kcontrol_codec(kcontrol);
struct wm2000_priv *wm2000 = dev_get_drvdata(codec->dev);
- int anc_active = ucontrol->value.enumerated.item[0];
+ int anc_active = ucontrol->value.integer.value[0];
int ret;
if (anc_active > 1)
@@ -643,7 +643,7 @@ static int wm2000_speaker_get(struct snd_kcontrol *kcontrol,
struct snd_soc_codec *codec = snd_soc_kcontrol_codec(kcontrol);
struct wm2000_priv *wm2000 = dev_get_drvdata(codec->dev);
- ucontrol->value.enumerated.item[0] = wm2000->spk_ena;
+ ucontrol->value.integer.value[0] = wm2000->spk_ena;
return 0;
}
@@ -653,7 +653,7 @@ static int wm2000_speaker_put(struct snd_kcontrol *kcontrol,
{
struct snd_soc_codec *codec = snd_soc_kcontrol_codec(kcontrol);
struct wm2000_priv *wm2000 = dev_get_drvdata(codec->dev);
- int val = ucontrol->value.enumerated.item[0];
+ int val = ucontrol->value.integer.value[0];
int ret;
if (val > 1)
--
2.3.2
^ permalink raw reply related [flat|nested] 27+ messages in thread
* [PATCH 08/14] ASoC: wm8731: Fix wrong value references for boolean kctl
2015-03-10 11:39 [PATCH 00/14] Fix wrong ctl value references in ASoC codecs Takashi Iwai
` (6 preceding siblings ...)
2015-03-10 11:39 ` [PATCH 07/14] ASoC: wm2000: " Takashi Iwai
@ 2015-03-10 11:39 ` Takashi Iwai
2015-03-10 15:00 ` Charles Keepax
2015-03-10 11:39 ` [PATCH 09/14] ASoC: wm8903: " Takashi Iwai
` (6 subsequent siblings)
14 siblings, 1 reply; 27+ messages in thread
From: Takashi Iwai @ 2015-03-10 11:39 UTC (permalink / raw)
To: Mark Brown
Cc: alsa-devel, Lars-Peter Clausen, Brian Austin, Paul Handrigan,
Liam Girdwood, Charles Keepax
The correct values referred by a boolean control are
value.integer.value[], not value.enumerated.item[].
The former is long while the latter is int, so it's even incompatible
on 64bit architectures.
Cc: <stable@vger.kernel.org>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
---
sound/soc/codecs/wm8731.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/sound/soc/codecs/wm8731.c b/sound/soc/codecs/wm8731.c
index 098c143f44d6..c6d10533e2bd 100644
--- a/sound/soc/codecs/wm8731.c
+++ b/sound/soc/codecs/wm8731.c
@@ -125,7 +125,7 @@ static int wm8731_get_deemph(struct snd_kcontrol *kcontrol,
struct snd_soc_codec *codec = snd_soc_kcontrol_codec(kcontrol);
struct wm8731_priv *wm8731 = snd_soc_codec_get_drvdata(codec);
- ucontrol->value.enumerated.item[0] = wm8731->deemph;
+ ucontrol->value.integer.value[0] = wm8731->deemph;
return 0;
}
@@ -135,7 +135,7 @@ static int wm8731_put_deemph(struct snd_kcontrol *kcontrol,
{
struct snd_soc_codec *codec = snd_soc_kcontrol_codec(kcontrol);
struct wm8731_priv *wm8731 = snd_soc_codec_get_drvdata(codec);
- int deemph = ucontrol->value.enumerated.item[0];
+ int deemph = ucontrol->value.integer.value[0];
int ret = 0;
if (deemph > 1)
--
2.3.2
^ permalink raw reply related [flat|nested] 27+ messages in thread
* [PATCH 09/14] ASoC: wm8903: Fix wrong value references for boolean kctl
2015-03-10 11:39 [PATCH 00/14] Fix wrong ctl value references in ASoC codecs Takashi Iwai
` (7 preceding siblings ...)
2015-03-10 11:39 ` [PATCH 08/14] ASoC: wm8731: " Takashi Iwai
@ 2015-03-10 11:39 ` Takashi Iwai
2015-03-10 15:00 ` Charles Keepax
2015-03-10 11:39 ` [PATCH 10/14] ASoC: wm8904: " Takashi Iwai
` (5 subsequent siblings)
14 siblings, 1 reply; 27+ messages in thread
From: Takashi Iwai @ 2015-03-10 11:39 UTC (permalink / raw)
To: Mark Brown
Cc: alsa-devel, Lars-Peter Clausen, Brian Austin, Paul Handrigan,
Liam Girdwood, Charles Keepax
The correct values referred by a boolean control are
value.integer.value[], not value.enumerated.item[].
The former is long while the latter is int, so it's even incompatible
on 64bit architectures.
Cc: <stable@vger.kernel.org>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
---
sound/soc/codecs/wm8903.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/sound/soc/codecs/wm8903.c b/sound/soc/codecs/wm8903.c
index dde462c082be..04b04f8e147c 100644
--- a/sound/soc/codecs/wm8903.c
+++ b/sound/soc/codecs/wm8903.c
@@ -442,7 +442,7 @@ static int wm8903_get_deemph(struct snd_kcontrol *kcontrol,
struct snd_soc_codec *codec = snd_soc_kcontrol_codec(kcontrol);
struct wm8903_priv *wm8903 = snd_soc_codec_get_drvdata(codec);
- ucontrol->value.enumerated.item[0] = wm8903->deemph;
+ ucontrol->value.integer.value[0] = wm8903->deemph;
return 0;
}
@@ -452,7 +452,7 @@ static int wm8903_put_deemph(struct snd_kcontrol *kcontrol,
{
struct snd_soc_codec *codec = snd_soc_kcontrol_codec(kcontrol);
struct wm8903_priv *wm8903 = snd_soc_codec_get_drvdata(codec);
- int deemph = ucontrol->value.enumerated.item[0];
+ int deemph = ucontrol->value.integer.value[0];
int ret = 0;
if (deemph > 1)
--
2.3.2
^ permalink raw reply related [flat|nested] 27+ messages in thread
* [PATCH 10/14] ASoC: wm8904: Fix wrong value references for boolean kctl
2015-03-10 11:39 [PATCH 00/14] Fix wrong ctl value references in ASoC codecs Takashi Iwai
` (8 preceding siblings ...)
2015-03-10 11:39 ` [PATCH 09/14] ASoC: wm8903: " Takashi Iwai
@ 2015-03-10 11:39 ` Takashi Iwai
2015-03-10 15:00 ` Charles Keepax
2015-03-10 11:39 ` [PATCH 11/14] ASoC: wm8955: " Takashi Iwai
` (4 subsequent siblings)
14 siblings, 1 reply; 27+ messages in thread
From: Takashi Iwai @ 2015-03-10 11:39 UTC (permalink / raw)
To: Mark Brown
Cc: alsa-devel, Lars-Peter Clausen, Brian Austin, Paul Handrigan,
Liam Girdwood, Charles Keepax
The correct values referred by a boolean control are
value.integer.value[], not value.enumerated.item[].
The former is long while the latter is int, so it's even incompatible
on 64bit architectures.
Cc: <stable@vger.kernel.org>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
---
sound/soc/codecs/wm8904.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/sound/soc/codecs/wm8904.c b/sound/soc/codecs/wm8904.c
index d3b3f57668cc..215e93c1ddf0 100644
--- a/sound/soc/codecs/wm8904.c
+++ b/sound/soc/codecs/wm8904.c
@@ -525,7 +525,7 @@ static int wm8904_get_deemph(struct snd_kcontrol *kcontrol,
struct snd_soc_codec *codec = snd_soc_kcontrol_codec(kcontrol);
struct wm8904_priv *wm8904 = snd_soc_codec_get_drvdata(codec);
- ucontrol->value.enumerated.item[0] = wm8904->deemph;
+ ucontrol->value.integer.value[0] = wm8904->deemph;
return 0;
}
@@ -534,7 +534,7 @@ static int wm8904_put_deemph(struct snd_kcontrol *kcontrol,
{
struct snd_soc_codec *codec = snd_soc_kcontrol_codec(kcontrol);
struct wm8904_priv *wm8904 = snd_soc_codec_get_drvdata(codec);
- int deemph = ucontrol->value.enumerated.item[0];
+ int deemph = ucontrol->value.integer.value[0];
if (deemph > 1)
return -EINVAL;
--
2.3.2
^ permalink raw reply related [flat|nested] 27+ messages in thread
* [PATCH 11/14] ASoC: wm8955: Fix wrong value references for boolean kctl
2015-03-10 11:39 [PATCH 00/14] Fix wrong ctl value references in ASoC codecs Takashi Iwai
` (9 preceding siblings ...)
2015-03-10 11:39 ` [PATCH 10/14] ASoC: wm8904: " Takashi Iwai
@ 2015-03-10 11:39 ` Takashi Iwai
2015-03-10 15:01 ` Charles Keepax
2015-03-10 11:39 ` [PATCH 12/14] ASoC: wm8960: " Takashi Iwai
` (3 subsequent siblings)
14 siblings, 1 reply; 27+ messages in thread
From: Takashi Iwai @ 2015-03-10 11:39 UTC (permalink / raw)
To: Mark Brown
Cc: alsa-devel, Lars-Peter Clausen, Brian Austin, Paul Handrigan,
Liam Girdwood, Charles Keepax
The correct values referred by a boolean control are
value.integer.value[], not value.enumerated.item[].
The former is long while the latter is int, so it's even incompatible
on 64bit architectures.
Cc: <stable@vger.kernel.org>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
---
sound/soc/codecs/wm8955.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/sound/soc/codecs/wm8955.c b/sound/soc/codecs/wm8955.c
index 1ab2d462afad..00bec915d652 100644
--- a/sound/soc/codecs/wm8955.c
+++ b/sound/soc/codecs/wm8955.c
@@ -393,7 +393,7 @@ static int wm8955_get_deemph(struct snd_kcontrol *kcontrol,
struct snd_soc_codec *codec = snd_soc_kcontrol_codec(kcontrol);
struct wm8955_priv *wm8955 = snd_soc_codec_get_drvdata(codec);
- ucontrol->value.enumerated.item[0] = wm8955->deemph;
+ ucontrol->value.integer.value[0] = wm8955->deemph;
return 0;
}
@@ -402,7 +402,7 @@ static int wm8955_put_deemph(struct snd_kcontrol *kcontrol,
{
struct snd_soc_codec *codec = snd_soc_kcontrol_codec(kcontrol);
struct wm8955_priv *wm8955 = snd_soc_codec_get_drvdata(codec);
- int deemph = ucontrol->value.enumerated.item[0];
+ int deemph = ucontrol->value.integer.value[0];
if (deemph > 1)
return -EINVAL;
--
2.3.2
^ permalink raw reply related [flat|nested] 27+ messages in thread
* [PATCH 12/14] ASoC: wm8960: Fix wrong value references for boolean kctl
2015-03-10 11:39 [PATCH 00/14] Fix wrong ctl value references in ASoC codecs Takashi Iwai
` (10 preceding siblings ...)
2015-03-10 11:39 ` [PATCH 11/14] ASoC: wm8955: " Takashi Iwai
@ 2015-03-10 11:39 ` Takashi Iwai
2015-03-10 15:01 ` Charles Keepax
2015-03-10 11:39 ` [PATCH 13/14] ASoC: wm9712: " Takashi Iwai
` (2 subsequent siblings)
14 siblings, 1 reply; 27+ messages in thread
From: Takashi Iwai @ 2015-03-10 11:39 UTC (permalink / raw)
To: Mark Brown
Cc: alsa-devel, Lars-Peter Clausen, Brian Austin, Paul Handrigan,
Liam Girdwood, Charles Keepax
The correct values referred by a boolean control are
value.integer.value[], not value.enumerated.item[].
The former is long while the latter is int, so it's even incompatible
on 64bit architectures.
Cc: <stable@vger.kernel.org>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
---
sound/soc/codecs/wm8960.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/sound/soc/codecs/wm8960.c b/sound/soc/codecs/wm8960.c
index cf8fecf97f2c..3035d9856415 100644
--- a/sound/soc/codecs/wm8960.c
+++ b/sound/soc/codecs/wm8960.c
@@ -184,7 +184,7 @@ static int wm8960_get_deemph(struct snd_kcontrol *kcontrol,
struct snd_soc_codec *codec = snd_soc_kcontrol_codec(kcontrol);
struct wm8960_priv *wm8960 = snd_soc_codec_get_drvdata(codec);
- ucontrol->value.enumerated.item[0] = wm8960->deemph;
+ ucontrol->value.integer.value[0] = wm8960->deemph;
return 0;
}
@@ -193,7 +193,7 @@ static int wm8960_put_deemph(struct snd_kcontrol *kcontrol,
{
struct snd_soc_codec *codec = snd_soc_kcontrol_codec(kcontrol);
struct wm8960_priv *wm8960 = snd_soc_codec_get_drvdata(codec);
- int deemph = ucontrol->value.enumerated.item[0];
+ int deemph = ucontrol->value.integer.value[0];
if (deemph > 1)
return -EINVAL;
--
2.3.2
^ permalink raw reply related [flat|nested] 27+ messages in thread
* [PATCH 13/14] ASoC: wm9712: Fix wrong value references for boolean kctl
2015-03-10 11:39 [PATCH 00/14] Fix wrong ctl value references in ASoC codecs Takashi Iwai
` (11 preceding siblings ...)
2015-03-10 11:39 ` [PATCH 12/14] ASoC: wm8960: " Takashi Iwai
@ 2015-03-10 11:39 ` Takashi Iwai
2015-03-10 15:01 ` Charles Keepax
2015-03-10 11:39 ` [PATCH 14/14] ASoC: wm9713: " Takashi Iwai
2015-03-10 20:15 ` [PATCH 00/14] Fix wrong ctl value references in ASoC codecs Mark Brown
14 siblings, 1 reply; 27+ messages in thread
From: Takashi Iwai @ 2015-03-10 11:39 UTC (permalink / raw)
To: Mark Brown
Cc: alsa-devel, Lars-Peter Clausen, Brian Austin, Paul Handrigan,
Liam Girdwood, Charles Keepax
The correct values referred by a boolean control are
value.integer.value[], not value.enumerated.item[].
The former is long while the latter is int, so it's even incompatible
on 64bit architectures.
Cc: <stable@vger.kernel.org>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
---
sound/soc/codecs/wm9712.c | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/sound/soc/codecs/wm9712.c b/sound/soc/codecs/wm9712.c
index 9517571e820d..98c9525bd751 100644
--- a/sound/soc/codecs/wm9712.c
+++ b/sound/soc/codecs/wm9712.c
@@ -180,7 +180,7 @@ static int wm9712_hp_mixer_put(struct snd_kcontrol *kcontrol,
struct snd_soc_dapm_context *dapm = snd_soc_dapm_kcontrol_dapm(kcontrol);
struct snd_soc_codec *codec = snd_soc_dapm_to_codec(dapm);
struct wm9712_priv *wm9712 = snd_soc_codec_get_drvdata(codec);
- unsigned int val = ucontrol->value.enumerated.item[0];
+ unsigned int val = ucontrol->value.integer.value[0];
struct soc_mixer_control *mc =
(struct soc_mixer_control *)kcontrol->private_value;
unsigned int mixer, mask, shift, old;
@@ -193,7 +193,7 @@ static int wm9712_hp_mixer_put(struct snd_kcontrol *kcontrol,
mutex_lock(&wm9712->lock);
old = wm9712->hp_mixer[mixer];
- if (ucontrol->value.enumerated.item[0])
+ if (ucontrol->value.integer.value[0])
wm9712->hp_mixer[mixer] |= mask;
else
wm9712->hp_mixer[mixer] &= ~mask;
@@ -231,7 +231,7 @@ static int wm9712_hp_mixer_get(struct snd_kcontrol *kcontrol,
mixer = mc->shift >> 8;
shift = mc->shift & 0xff;
- ucontrol->value.enumerated.item[0] =
+ ucontrol->value.integer.value[0] =
(wm9712->hp_mixer[mixer] >> shift) & 1;
return 0;
--
2.3.2
^ permalink raw reply related [flat|nested] 27+ messages in thread
* [PATCH 14/14] ASoC: wm9713: Fix wrong value references for boolean kctl
2015-03-10 11:39 [PATCH 00/14] Fix wrong ctl value references in ASoC codecs Takashi Iwai
` (12 preceding siblings ...)
2015-03-10 11:39 ` [PATCH 13/14] ASoC: wm9712: " Takashi Iwai
@ 2015-03-10 11:39 ` Takashi Iwai
2015-03-10 15:02 ` Charles Keepax
2015-03-10 20:15 ` [PATCH 00/14] Fix wrong ctl value references in ASoC codecs Mark Brown
14 siblings, 1 reply; 27+ messages in thread
From: Takashi Iwai @ 2015-03-10 11:39 UTC (permalink / raw)
To: Mark Brown
Cc: alsa-devel, Lars-Peter Clausen, Brian Austin, Paul Handrigan,
Liam Girdwood, Charles Keepax
The correct values referred by a boolean control are
value.integer.value[], not value.enumerated.item[].
The former is long while the latter is int, so it's even incompatible
on 64bit architectures.
Cc: <stable@vger.kernel.org>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
---
sound/soc/codecs/wm9713.c | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/sound/soc/codecs/wm9713.c b/sound/soc/codecs/wm9713.c
index 68222917b396..79552953e1bd 100644
--- a/sound/soc/codecs/wm9713.c
+++ b/sound/soc/codecs/wm9713.c
@@ -255,7 +255,7 @@ static int wm9713_hp_mixer_put(struct snd_kcontrol *kcontrol,
struct snd_soc_dapm_context *dapm = snd_soc_dapm_kcontrol_dapm(kcontrol);
struct snd_soc_codec *codec = snd_soc_dapm_to_codec(dapm);
struct wm9713_priv *wm9713 = snd_soc_codec_get_drvdata(codec);
- unsigned int val = ucontrol->value.enumerated.item[0];
+ unsigned int val = ucontrol->value.integer.value[0];
struct soc_mixer_control *mc =
(struct soc_mixer_control *)kcontrol->private_value;
unsigned int mixer, mask, shift, old;
@@ -268,7 +268,7 @@ static int wm9713_hp_mixer_put(struct snd_kcontrol *kcontrol,
mutex_lock(&wm9713->lock);
old = wm9713->hp_mixer[mixer];
- if (ucontrol->value.enumerated.item[0])
+ if (ucontrol->value.integer.value[0])
wm9713->hp_mixer[mixer] |= mask;
else
wm9713->hp_mixer[mixer] &= ~mask;
@@ -306,7 +306,7 @@ static int wm9713_hp_mixer_get(struct snd_kcontrol *kcontrol,
mixer = mc->shift >> 8;
shift = mc->shift & 0xff;
- ucontrol->value.enumerated.item[0] =
+ ucontrol->value.integer.value[0] =
(wm9713->hp_mixer[mixer] >> shift) & 1;
return 0;
--
2.3.2
^ permalink raw reply related [flat|nested] 27+ messages in thread
* Re: [PATCH 01/14] ASoC: adav80x: Fix wrong value references for boolean kctl
2015-03-10 11:39 ` [PATCH 01/14] ASoC: adav80x: Fix wrong value references for boolean kctl Takashi Iwai
@ 2015-03-10 11:42 ` Lars-Peter Clausen
0 siblings, 0 replies; 27+ messages in thread
From: Lars-Peter Clausen @ 2015-03-10 11:42 UTC (permalink / raw)
To: Takashi Iwai, Mark Brown
Cc: Brian Austin, alsa-devel, Charles Keepax, Liam Girdwood,
Paul Handrigan
On 03/10/2015 12:39 PM, Takashi Iwai wrote:
> The correct values referred by a boolean control are
> value.integer.value[], not value.enumerated.item[].
> The former is long while the latter is int, so it's even incompatible
> on 64bit architectures.
>
> Cc: <stable@vger.kernel.org>
> Signed-off-by: Takashi Iwai <tiwai@suse.de>
Acked-by: Lars-Peter Clausen <lars@metafoo.de>
Thanks.
^ permalink raw reply [flat|nested] 27+ messages in thread
* Re: [PATCH 03/14] ASoC: cs4271: Fix wrong value references for boolean kctl
2015-03-10 11:39 ` [PATCH 03/14] ASoC: cs4271: " Takashi Iwai
@ 2015-03-10 13:14 ` Handrigan, Paul
2015-03-10 20:14 ` Mark Brown
0 siblings, 1 reply; 27+ messages in thread
From: Handrigan, Paul @ 2015-03-10 13:14 UTC (permalink / raw)
To: tiwai@suse.de, broonie@kernel.org
Cc: Austin, Brian, lars@metafoo.de,
ckeepax@opensource.wolfsonmicro.com, lgirdwood@gmail.com,
alsa-devel@alsa-project.org
------ Original message------
From: Takashi Iwai
Date: Tue, Mar 10, 2015 6:39 AM
To: Mark Brown;
Cc: Liam Girdwood;Lars-Peter Clausen;Austin, Brian;Handrigan, Paul;Charles Keepax;alsa-devel@alsa-project.org<mailto:;alsa-devel@alsa-project.org>;
Subject:[PATCH 03/14] ASoC: cs4271: Fix wrong value references for boolean kctl
The correct values referred by a boolean control are
value.integer.va<http://value.integer.va>lue[], not value.enumerated.it<http://value.enumerated.it>em[].
The former is long while the latter is int, so it's even incompatible
on 64bit architectures.
Cc: ><mailto:<stable@vger.kernel.org>
Signed-off-by: Takashi Iwai ><mailto:<tiwai@suse.de>
---
sound/soc/codecs/cs4271.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/sound/soc/codecs/cs4271.c b/sound/soc/codecs/cs4271.c
index 79a4efcb894c..7d3a6accaf9a 100644
--- a/sound/soc/codecs/cs4271.c
+++ b/sound/soc/codecs/cs4271.c
Thanks!
Acked-by: Paul Handrigan ><mailto:<Paul.Handrigan@cirrus.com>
^ permalink raw reply [flat|nested] 27+ messages in thread
* Re: [PATCH 07/14] ASoC: wm2000: Fix wrong value references for boolean kctl
2015-03-10 11:39 ` [PATCH 07/14] ASoC: wm2000: " Takashi Iwai
@ 2015-03-10 15:00 ` Charles Keepax
0 siblings, 0 replies; 27+ messages in thread
From: Charles Keepax @ 2015-03-10 15:00 UTC (permalink / raw)
To: Takashi Iwai
Cc: alsa-devel, Lars-Peter Clausen, Brian Austin, Paul Handrigan,
Liam Girdwood, Mark Brown
On Tue, Mar 10, 2015 at 12:39:09PM +0100, Takashi Iwai wrote:
> The correct values referred by a boolean control are
> value.integer.value[], not value.enumerated.item[].
> The former is long while the latter is int, so it's even incompatible
> on 64bit architectures.
>
> Cc: <stable@vger.kernel.org>
> Signed-off-by: Takashi Iwai <tiwai@suse.de>
> ---
Acked-by: Charles Keepax <ckeepax@opensource.wolfsonmicro.com>
Thanks,
Charles
^ permalink raw reply [flat|nested] 27+ messages in thread
* Re: [PATCH 08/14] ASoC: wm8731: Fix wrong value references for boolean kctl
2015-03-10 11:39 ` [PATCH 08/14] ASoC: wm8731: " Takashi Iwai
@ 2015-03-10 15:00 ` Charles Keepax
0 siblings, 0 replies; 27+ messages in thread
From: Charles Keepax @ 2015-03-10 15:00 UTC (permalink / raw)
To: Takashi Iwai
Cc: alsa-devel, Lars-Peter Clausen, Brian Austin, Paul Handrigan,
Liam Girdwood, Mark Brown
On Tue, Mar 10, 2015 at 12:39:10PM +0100, Takashi Iwai wrote:
> The correct values referred by a boolean control are
> value.integer.value[], not value.enumerated.item[].
> The former is long while the latter is int, so it's even incompatible
> on 64bit architectures.
>
> Cc: <stable@vger.kernel.org>
> Signed-off-by: Takashi Iwai <tiwai@suse.de>
> ---
Acked-by: Charles Keepax <ckeepax@opensource.wolfsonmicro.com>
Thanks,
Charles
^ permalink raw reply [flat|nested] 27+ messages in thread
* Re: [PATCH 09/14] ASoC: wm8903: Fix wrong value references for boolean kctl
2015-03-10 11:39 ` [PATCH 09/14] ASoC: wm8903: " Takashi Iwai
@ 2015-03-10 15:00 ` Charles Keepax
0 siblings, 0 replies; 27+ messages in thread
From: Charles Keepax @ 2015-03-10 15:00 UTC (permalink / raw)
To: Takashi Iwai
Cc: alsa-devel, Lars-Peter Clausen, Brian Austin, Paul Handrigan,
Liam Girdwood, Mark Brown
On Tue, Mar 10, 2015 at 12:39:11PM +0100, Takashi Iwai wrote:
> The correct values referred by a boolean control are
> value.integer.value[], not value.enumerated.item[].
> The former is long while the latter is int, so it's even incompatible
> on 64bit architectures.
>
> Cc: <stable@vger.kernel.org>
> Signed-off-by: Takashi Iwai <tiwai@suse.de>
> ---
Acked-by: Charles Keepax <ckeepax@opensource.wolfsonmicro.com>
Thanks,
Charles
^ permalink raw reply [flat|nested] 27+ messages in thread
* Re: [PATCH 10/14] ASoC: wm8904: Fix wrong value references for boolean kctl
2015-03-10 11:39 ` [PATCH 10/14] ASoC: wm8904: " Takashi Iwai
@ 2015-03-10 15:00 ` Charles Keepax
0 siblings, 0 replies; 27+ messages in thread
From: Charles Keepax @ 2015-03-10 15:00 UTC (permalink / raw)
To: Takashi Iwai
Cc: alsa-devel, Lars-Peter Clausen, Brian Austin, Paul Handrigan,
Liam Girdwood, Mark Brown
On Tue, Mar 10, 2015 at 12:39:12PM +0100, Takashi Iwai wrote:
> The correct values referred by a boolean control are
> value.integer.value[], not value.enumerated.item[].
> The former is long while the latter is int, so it's even incompatible
> on 64bit architectures.
>
> Cc: <stable@vger.kernel.org>
> Signed-off-by: Takashi Iwai <tiwai@suse.de>
> ---
Acked-by: Charles Keepax <ckeepax@opensource.wolfsonmicro.com>
Thanks,
Charles
^ permalink raw reply [flat|nested] 27+ messages in thread
* Re: [PATCH 11/14] ASoC: wm8955: Fix wrong value references for boolean kctl
2015-03-10 11:39 ` [PATCH 11/14] ASoC: wm8955: " Takashi Iwai
@ 2015-03-10 15:01 ` Charles Keepax
0 siblings, 0 replies; 27+ messages in thread
From: Charles Keepax @ 2015-03-10 15:01 UTC (permalink / raw)
To: Takashi Iwai
Cc: alsa-devel, Lars-Peter Clausen, Brian Austin, Paul Handrigan,
Liam Girdwood, Mark Brown
On Tue, Mar 10, 2015 at 12:39:13PM +0100, Takashi Iwai wrote:
> The correct values referred by a boolean control are
> value.integer.value[], not value.enumerated.item[].
> The former is long while the latter is int, so it's even incompatible
> on 64bit architectures.
>
> Cc: <stable@vger.kernel.org>
> Signed-off-by: Takashi Iwai <tiwai@suse.de>
> ---
Acked-by: Charles Keepax <ckeepax@opensource.wolfsonmicro.com>
Thanks,
Charles
^ permalink raw reply [flat|nested] 27+ messages in thread
* Re: [PATCH 12/14] ASoC: wm8960: Fix wrong value references for boolean kctl
2015-03-10 11:39 ` [PATCH 12/14] ASoC: wm8960: " Takashi Iwai
@ 2015-03-10 15:01 ` Charles Keepax
0 siblings, 0 replies; 27+ messages in thread
From: Charles Keepax @ 2015-03-10 15:01 UTC (permalink / raw)
To: Takashi Iwai
Cc: alsa-devel, Lars-Peter Clausen, Brian Austin, Paul Handrigan,
Liam Girdwood, Mark Brown
On Tue, Mar 10, 2015 at 12:39:14PM +0100, Takashi Iwai wrote:
> The correct values referred by a boolean control are
> value.integer.value[], not value.enumerated.item[].
> The former is long while the latter is int, so it's even incompatible
> on 64bit architectures.
>
> Cc: <stable@vger.kernel.org>
> Signed-off-by: Takashi Iwai <tiwai@suse.de>
> ---
Acked-by: Charles Keepax <ckeepax@opensource.wolfsonmicro.com>
Thanks,
Charles
^ permalink raw reply [flat|nested] 27+ messages in thread
* Re: [PATCH 13/14] ASoC: wm9712: Fix wrong value references for boolean kctl
2015-03-10 11:39 ` [PATCH 13/14] ASoC: wm9712: " Takashi Iwai
@ 2015-03-10 15:01 ` Charles Keepax
0 siblings, 0 replies; 27+ messages in thread
From: Charles Keepax @ 2015-03-10 15:01 UTC (permalink / raw)
To: Takashi Iwai
Cc: alsa-devel, Lars-Peter Clausen, Brian Austin, Paul Handrigan,
Liam Girdwood, Mark Brown
On Tue, Mar 10, 2015 at 12:39:15PM +0100, Takashi Iwai wrote:
> The correct values referred by a boolean control are
> value.integer.value[], not value.enumerated.item[].
> The former is long while the latter is int, so it's even incompatible
> on 64bit architectures.
>
> Cc: <stable@vger.kernel.org>
> Signed-off-by: Takashi Iwai <tiwai@suse.de>
> ---
Acked-by: Charles Keepax <ckeepax@opensource.wolfsonmicro.com>
Thanks,
Charles
^ permalink raw reply [flat|nested] 27+ messages in thread
* Re: [PATCH 14/14] ASoC: wm9713: Fix wrong value references for boolean kctl
2015-03-10 11:39 ` [PATCH 14/14] ASoC: wm9713: " Takashi Iwai
@ 2015-03-10 15:02 ` Charles Keepax
0 siblings, 0 replies; 27+ messages in thread
From: Charles Keepax @ 2015-03-10 15:02 UTC (permalink / raw)
To: Takashi Iwai
Cc: alsa-devel, Lars-Peter Clausen, Brian Austin, Paul Handrigan,
Liam Girdwood, Mark Brown
On Tue, Mar 10, 2015 at 12:39:16PM +0100, Takashi Iwai wrote:
> The correct values referred by a boolean control are
> value.integer.value[], not value.enumerated.item[].
> The former is long while the latter is int, so it's even incompatible
> on 64bit architectures.
>
> Cc: <stable@vger.kernel.org>
> Signed-off-by: Takashi Iwai <tiwai@suse.de>
> ---
Acked-by: Charles Keepax <ckeepax@opensource.wolfsonmicro.com>
Thanks,
Charles
^ permalink raw reply [flat|nested] 27+ messages in thread
* Re: [PATCH 03/14] ASoC: cs4271: Fix wrong value references for boolean kctl
2015-03-10 13:14 ` Handrigan, Paul
@ 2015-03-10 20:14 ` Mark Brown
0 siblings, 0 replies; 27+ messages in thread
From: Mark Brown @ 2015-03-10 20:14 UTC (permalink / raw)
To: Handrigan, Paul
Cc: Austin, Brian, lars@metafoo.de, alsa-devel@alsa-project.org,
tiwai@suse.de, lgirdwood@gmail.com,
ckeepax@opensource.wolfsonmicro.com
[-- Attachment #1.1: Type: text/plain, Size: 1268 bytes --]
On Tue, Mar 10, 2015 at 01:14:49PM +0000, Handrigan, Paul wrote:
>
>
> ------ Original message------
>
> From: Takashi Iwai
Dunno what your mail client is doing here Paul but it's pretty
spectacular...!
>
> Date: Tue, Mar 10, 2015 6:39 AM
>
> To: Mark Brown;
>
> Cc: Liam Girdwood;Lars-Peter Clausen;Austin, Brian;Handrigan, Paul;Charles Keepax;alsa-devel@alsa-project.org<mailto:;alsa-devel@alsa-project.org>;
>
> Subject:[PATCH 03/14] ASoC: cs4271: Fix wrong value references for boolean kctl
>
>
> The correct values referred by a boolean control are
> value.integer.va<http://value.integer.va>lue[], not value.enumerated.it<http://value.enumerated.it>em[].
> The former is long while the latter is int, so it's even incompatible
> on 64bit architectures.
>
> Cc: ><mailto:<stable@vger.kernel.org>
> Signed-off-by: Takashi Iwai ><mailto:<tiwai@suse.de>
> ---
> sound/soc/codecs/cs4271.c | 4 ++--
> 1 file changed, 2 insertions(+), 2 deletions(-)
>
> diff --git a/sound/soc/codecs/cs4271.c b/sound/soc/codecs/cs4271.c
> index 79a4efcb894c..7d3a6accaf9a 100644
> --- a/sound/soc/codecs/cs4271.c
> +++ b/sound/soc/codecs/cs4271.c
>
> Thanks!
>
> Acked-by: Paul Handrigan ><mailto:<Paul.Handrigan@cirrus.com>
>
[-- Attachment #1.2: Digital signature --]
[-- Type: application/pgp-signature, Size: 473 bytes --]
[-- Attachment #2: Type: text/plain, Size: 0 bytes --]
^ permalink raw reply [flat|nested] 27+ messages in thread
* Re: [PATCH 00/14] Fix wrong ctl value references in ASoC codecs
2015-03-10 11:39 [PATCH 00/14] Fix wrong ctl value references in ASoC codecs Takashi Iwai
` (13 preceding siblings ...)
2015-03-10 11:39 ` [PATCH 14/14] ASoC: wm9713: " Takashi Iwai
@ 2015-03-10 20:15 ` Mark Brown
14 siblings, 0 replies; 27+ messages in thread
From: Mark Brown @ 2015-03-10 20:15 UTC (permalink / raw)
To: Takashi Iwai
Cc: alsa-devel, Lars-Peter Clausen, Brian Austin, Paul Handrigan,
Liam Girdwood, Charles Keepax
[-- Attachment #1.1: Type: text/plain, Size: 237 bytes --]
On Tue, Mar 10, 2015 at 12:39:02PM +0100, Takashi Iwai wrote:
> Hi,
>
> while looking through the ASoC codec codes, I noticed that lots of
> drivers refer to the wrong union value type for boolean controls.
Applied all, thanks.
[-- Attachment #1.2: Digital signature --]
[-- Type: application/pgp-signature, Size: 473 bytes --]
[-- Attachment #2: Type: text/plain, Size: 0 bytes --]
^ permalink raw reply [flat|nested] 27+ messages in thread
end of thread, other threads:[~2015-03-10 20:15 UTC | newest]
Thread overview: 27+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-03-10 11:39 [PATCH 00/14] Fix wrong ctl value references in ASoC codecs Takashi Iwai
2015-03-10 11:39 ` [PATCH 01/14] ASoC: adav80x: Fix wrong value references for boolean kctl Takashi Iwai
2015-03-10 11:42 ` Lars-Peter Clausen
2015-03-10 11:39 ` [PATCH 02/14] ASoC: ak4641: " Takashi Iwai
2015-03-10 11:39 ` [PATCH 03/14] ASoC: cs4271: " Takashi Iwai
2015-03-10 13:14 ` Handrigan, Paul
2015-03-10 20:14 ` Mark Brown
2015-03-10 11:39 ` [PATCH 04/14] ASoC: es8238: " Takashi Iwai
2015-03-10 11:39 ` [PATCH 05/14] ASoC: pcm1681: " Takashi Iwai
2015-03-10 11:39 ` [PATCH 06/14] ASoC: tas5086: " Takashi Iwai
2015-03-10 11:39 ` [PATCH 07/14] ASoC: wm2000: " Takashi Iwai
2015-03-10 15:00 ` Charles Keepax
2015-03-10 11:39 ` [PATCH 08/14] ASoC: wm8731: " Takashi Iwai
2015-03-10 15:00 ` Charles Keepax
2015-03-10 11:39 ` [PATCH 09/14] ASoC: wm8903: " Takashi Iwai
2015-03-10 15:00 ` Charles Keepax
2015-03-10 11:39 ` [PATCH 10/14] ASoC: wm8904: " Takashi Iwai
2015-03-10 15:00 ` Charles Keepax
2015-03-10 11:39 ` [PATCH 11/14] ASoC: wm8955: " Takashi Iwai
2015-03-10 15:01 ` Charles Keepax
2015-03-10 11:39 ` [PATCH 12/14] ASoC: wm8960: " Takashi Iwai
2015-03-10 15:01 ` Charles Keepax
2015-03-10 11:39 ` [PATCH 13/14] ASoC: wm9712: " Takashi Iwai
2015-03-10 15:01 ` Charles Keepax
2015-03-10 11:39 ` [PATCH 14/14] ASoC: wm9713: " Takashi Iwai
2015-03-10 15:02 ` Charles Keepax
2015-03-10 20:15 ` [PATCH 00/14] Fix wrong ctl value references in ASoC codecs Mark Brown
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.