diff options
author | Takashi Iwai <tiwai@suse.de> | 2015-03-17 16:30:26 +0100 |
---|---|---|
committer | Takashi Iwai <tiwai@suse.de> | 2015-03-17 16:30:26 +0100 |
commit | 3fc6c5a1cfb979c768de003ee3c5783e671b156d (patch) | |
tree | 0eb300fa4dfa983e8fdf9d7d74a4c1d474b30805 /sound/soc/codecs/wm8731.c | |
parent | ALSA: hda - Treat stereo-to-mono mix properly (diff) | |
parent | Merge remote-tracking branches 'asoc/fix/sgtl5000' and 'asoc/fix/sn95031' int... (diff) | |
download | linux-3fc6c5a1cfb979c768de003ee3c5783e671b156d.tar.xz linux-3fc6c5a1cfb979c768de003ee3c5783e671b156d.zip |
Merge tag 'asoc-fix-v4.0-rc4' of git://git.kernel.org/pub/scm/linux/kernel/git/broonie/sound into for-linus
ASoC: Fixes for v4.0
As well as the usual collection of driver specific fixes there's a few
more generic things:
- Lots of fixes from Takashi for drivers using the wrong field in the
control union to communicate with userspace, leading to potential
errors on 64 bit systems.
- A fix from Lars for locking of the lists of devices we maintain,
mostly only likely to trigger during device probe and removal.
Diffstat (limited to 'sound/soc/codecs/wm8731.c')
-rw-r--r-- | sound/soc/codecs/wm8731.c | 4 |
1 files 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) |