summaryrefslogtreecommitdiff
path: root/sound/soc/codecs/wm5102.c
diff options
context:
space:
mode:
authorMark Brown <broonie@opensource.wolfsonmicro.com>2013-01-12 02:59:35 +0400
committerMark Brown <broonie@opensource.wolfsonmicro.com>2013-01-18 10:07:49 +0400
commite5ddd303215d1e5e89d06056d17673b18219ace3 (patch)
tree79a0abe46085fdceaf3d7b78c5b8e2e248b035d5 /sound/soc/codecs/wm5102.c
parent4706ccbbe89c0c1871134f493de8b27864b869ba (diff)
downloadlinux-e5ddd303215d1e5e89d06056d17673b18219ace3.tar.xz
ASoC: wm5102: Add controls for firmware selection
Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
Diffstat (limited to 'sound/soc/codecs/wm5102.c')
-rw-r--r--sound/soc/codecs/wm5102.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/sound/soc/codecs/wm5102.c b/sound/soc/codecs/wm5102.c
index 2adcfbae4d22..5e85b645f2eb 100644
--- a/sound/soc/codecs/wm5102.c
+++ b/sound/soc/codecs/wm5102.c
@@ -1579,6 +1579,10 @@ static int wm5102_codec_probe(struct snd_soc_codec *codec)
if (ret != 0)
return ret;
+ ret = snd_soc_add_codec_controls(codec, wm_adsp_fw_controls, 1);
+ if (ret != 0)
+ return ret;
+
snd_soc_dapm_disable_pin(&codec->dapm, "HAPTICS");
priv->core.arizona->dapm = &codec->dapm;