diff options
author | Rakesh Iyer <riyer@nvidia.com> | 2012-01-30 13:42:46 -0800 |
---|---|---|
committer | Dan Willemsen <dwillemsen@nvidia.com> | 2012-03-23 16:05:25 -0700 |
commit | cc27393d5c25171b377be78737bc275f7666345d (patch) | |
tree | 5e6e68dc8968835386aa30909a767b0e078630d0 /sound | |
parent | 2db34b1bf9b1515e58c0d80d555d86e4f57ee9df (diff) |
asoc: codecs: Fix build break for ALC5639 codec
The vendor supplied driver has to be fixed to work on older kernels.
Bug 931371
Signed-off-by: Rakesh Iyer <riyer@nvidia.com>
Reviewed-on: http://git-master/r/78278
(cherry picked from commit ffce206b2d67bb9618a97d08e88c6ae25ba79baa)
Change-Id: Ifd8712758307cd4f31526cc050c62a89187a7c8d
Signed-off-by: Pritesh Raithatha <praithatha@nvidia.com>
Reviewed-on: http://git-master/r/82733
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Varun Wadekar <vwadekar@nvidia.com>
Tested-by: Varun Wadekar <vwadekar@nvidia.com>
Reviewed-by: Manoj Gangwal <mgangwal@nvidia.com>
Rebase-Id: Ra8a2e2732df5ef3a5a851f3c4eb8e988623b8f84
Diffstat (limited to 'sound')
-rw-r--r-- | sound/soc/codecs/rt5639.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/sound/soc/codecs/rt5639.c b/sound/soc/codecs/rt5639.c index dfbbd8c81b3a..47e8d83d968b 100644 --- a/sound/soc/codecs/rt5639.c +++ b/sound/soc/codecs/rt5639.c @@ -2243,6 +2243,9 @@ static int rt5639_probe(struct snd_soc_codec *codec) codec->dapm.bias_level = SND_SOC_BIAS_STANDBY; + snd_soc_add_controls(codec, rt5639_snd_controls, + ARRAY_SIZE(rt5639_snd_controls)); + rt5639->codec = codec; ret = device_create_file(codec->dev, &dev_attr_index_reg); if (ret != 0) { @@ -2342,8 +2345,6 @@ static struct snd_soc_codec_driver soc_codec_dev_rt5639 = { .volatile_register = rt5639_volatile_register, .readable_register = rt5639_readable_register, .reg_cache_step = 1, - .controls = rt5639_snd_controls, - .num_controls = ARRAY_SIZE(rt5639_snd_controls), .dapm_widgets = rt5639_dapm_widgets, .num_dapm_widgets = ARRAY_SIZE(rt5639_dapm_widgets), .dapm_routes = rt5639_dapm_routes, |