From: Lars-Peter Clausen <lars@metafoo.de>
To: Mark Brown <broonie@kernel.org>
Cc: alsa-devel@alsa-project.org, patches@opensource.wolfsonmicro.com,
Liam Girdwood <lgirdwood@gmail.com>,
Mark Brown <broonie@linaro.org>
Subject: Re: [PATCH] ASoC: wm8994: Fix class W controls
Date: Tue, 06 Aug 2013 10:40:56 +0200 [thread overview]
Message-ID: <5200B698.7080908@metafoo.de> (raw)
In-Reply-To: <1375742107-7583-1-git-send-email-broonie@kernel.org>
On 08/06/2013 12:35 AM, Mark Brown wrote:
> From: Mark Brown <broonie@linaro.org>
>
> Commit 6e0650 (ASoC: wm8994: Use SOC_SINGLE_EXT() instead of open-coding
> it) went too far and converted a DAPM control to use SOC_SINGLE_EXT()
> which crashes. Revert that portion of the patch.
>
> Signed-off-by: Mark Brown <broonie@linaro.org>
> ---
> sound/soc/codecs/wm8994.c | 4 ++--
> 1 file changed, 2 insertions(+), 2 deletions(-)
>
> diff --git a/sound/soc/codecs/wm8994.c b/sound/soc/codecs/wm8994.c
> index d76b056..29ad480 100644
> --- a/sound/soc/codecs/wm8994.c
> +++ b/sound/soc/codecs/wm8994.c
> @@ -1432,8 +1432,8 @@ SOC_DAPM_SINGLE("AIF1.1 Switch", WM8994_DAC2_RIGHT_MIXER_ROUTING,
> };
>
> #define WM8994_CLASS_W_SWITCH(xname, reg, shift, max, invert) \
> - SOC_SINGLE_EXT(xname, reg, shift, max, invert, \
> - snd_soc_get_volsw, wm8994_put_class_w)
> + SOC_SINGLE_EXT(xname, reg, shift, 1, 0, \
The patch changed 'max' to 1 and 'invert' to 0.
> + snd_soc_dapm_get_volsw, wm8994_put_class_w)
>
> static int wm8994_put_class_w(struct snd_kcontrol *kcontrol,
> struct snd_ctl_elem_value *ucontrol)
>
next prev parent reply other threads:[~2013-08-06 8:40 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-08-05 22:35 [PATCH] ASoC: wm8994: Fix class W controls Mark Brown
2013-08-06 8:40 ` Lars-Peter Clausen [this message]
2013-08-06 9:51 ` Mark Brown
-- strict thread matches above, loose matches on Subject: below --
2013-08-05 20:03 Mark Brown
2013-08-05 20:12 ` Lars-Peter Clausen
2013-08-05 20:28 ` Mark Brown
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=5200B698.7080908@metafoo.de \
--to=lars@metafoo.de \
--cc=alsa-devel@alsa-project.org \
--cc=broonie@kernel.org \
--cc=broonie@linaro.org \
--cc=lgirdwood@gmail.com \
--cc=patches@opensource.wolfsonmicro.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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.