diff options
author | Mark Brown <broonie@linaro.org> | 2013-09-25 08:10:33 -0400 |
---|---|---|
committer | Mark Brown <broonie@linaro.org> | 2013-09-25 08:30:58 -0400 |
commit | 806955dd9cf071ecd99acbaa8c73ae1f34dcf83d (patch) | |
tree | a281ec0c348f50971aa1a208a65c8d0093111b6a /sound | |
parent | 4a10c2ac2f368583138b774ca41fac4207911983 (diff) |
ASoC: tlv320aic26: Convert to table based control init
Signed-off-by: Mark Brown <broonie@linaro.org>
Diffstat (limited to 'sound')
-rw-r--r-- | sound/soc/codecs/tlv320aic26.c | 10 |
1 files changed, 3 insertions, 7 deletions
diff --git a/sound/soc/codecs/tlv320aic26.c b/sound/soc/codecs/tlv320aic26.c index 7b8f3d965f43..32c6b0768e56 100644 --- a/sound/soc/codecs/tlv320aic26.c +++ b/sound/soc/codecs/tlv320aic26.c | |||
@@ -377,7 +377,7 @@ static DEVICE_ATTR(keyclick, 0644, aic26_keyclick_show, aic26_keyclick_set); | |||
377 | static int aic26_probe(struct snd_soc_codec *codec) | 377 | static int aic26_probe(struct snd_soc_codec *codec) |
378 | { | 378 | { |
379 | struct aic26 *aic26 = dev_get_drvdata(codec->dev); | 379 | struct aic26 *aic26 = dev_get_drvdata(codec->dev); |
380 | int ret, err, i, reg; | 380 | int ret, i, reg; |
381 | 381 | ||
382 | aic26->codec = codec; | 382 | aic26->codec = codec; |
383 | 383 | ||
@@ -403,12 +403,6 @@ static int aic26_probe(struct snd_soc_codec *codec) | |||
403 | if (ret) | 403 | if (ret) |
404 | dev_info(codec->dev, "error creating sysfs files\n"); | 404 | dev_info(codec->dev, "error creating sysfs files\n"); |
405 | 405 | ||
406 | /* register controls */ | ||
407 | dev_dbg(codec->dev, "Registering controls\n"); | ||
408 | err = snd_soc_add_codec_controls(codec, aic26_snd_controls, | ||
409 | ARRAY_SIZE(aic26_snd_controls)); | ||
410 | WARN_ON(err < 0); | ||
411 | |||
412 | return 0; | 406 | return 0; |
413 | } | 407 | } |
414 | 408 | ||
@@ -418,6 +412,8 @@ static struct snd_soc_codec_driver aic26_soc_codec_dev = { | |||
418 | .write = aic26_reg_write, | 412 | .write = aic26_reg_write, |
419 | .reg_cache_size = AIC26_NUM_REGS, | 413 | .reg_cache_size = AIC26_NUM_REGS, |
420 | .reg_word_size = sizeof(u16), | 414 | .reg_word_size = sizeof(u16), |
415 | .controls = aic26_snd_controls, | ||
416 | .num_controls = ARRAY_SIZE(aic26_snd_controls), | ||
421 | .dapm_widgets = tlv320aic26_dapm_widgets, | 417 | .dapm_widgets = tlv320aic26_dapm_widgets, |
422 | .num_dapm_widgets = ARRAY_SIZE(tlv320aic26_dapm_widgets), | 418 | .num_dapm_widgets = ARRAY_SIZE(tlv320aic26_dapm_widgets), |
423 | .dapm_routes = tlv320aic26_dapm_routes, | 419 | .dapm_routes = tlv320aic26_dapm_routes, |