aboutsummaryrefslogtreecommitdiffstats
path: root/sound/soc/codecs/pcm1681.c
diff options
context:
space:
mode:
authorTakashi Iwai <tiwai@suse.de>2015-03-17 16:30:26 +0100
committerTakashi Iwai <tiwai@suse.de>2015-03-17 16:30:26 +0100
commit3fc6c5a1cfb979c768de003ee3c5783e671b156d (patch)
tree0eb300fa4dfa983e8fdf9d7d74a4c1d474b30805 /sound/soc/codecs/pcm1681.c
parentcc261738add93947d138d2fabad9f4dbed4e5c00 (diff)
parent33484c67398295108ab31e17b50b5a6fba1f5eef (diff)
downloadkernel_replicant_linux-3fc6c5a1cfb979c768de003ee3c5783e671b156d.tar.gz
kernel_replicant_linux-3fc6c5a1cfb979c768de003ee3c5783e671b156d.tar.bz2
kernel_replicant_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/pcm1681.c')
-rw-r--r--sound/soc/codecs/pcm1681.c4
1 files 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);
}