diff options
Diffstat (limited to 'sound/soc/codecs/tas2552.c')
-rw-r--r-- | sound/soc/codecs/tas2552.c | 10 |
1 files changed, 4 insertions, 6 deletions
diff --git a/sound/soc/codecs/tas2552.c b/sound/soc/codecs/tas2552.c index f039dc825971..b505212019e2 100644 --- a/sound/soc/codecs/tas2552.c +++ b/sound/soc/codecs/tas2552.c | |||
@@ -345,7 +345,6 @@ static const struct reg_default tas2552_init_regs[] = { | |||
345 | static int tas2552_codec_probe(struct snd_soc_codec *codec) | 345 | static int tas2552_codec_probe(struct snd_soc_codec *codec) |
346 | { | 346 | { |
347 | struct tas2552_data *tas2552 = snd_soc_codec_get_drvdata(codec); | 347 | struct tas2552_data *tas2552 = snd_soc_codec_get_drvdata(codec); |
348 | struct snd_soc_dapm_context *dapm = &codec->dapm; | ||
349 | int ret; | 348 | int ret; |
350 | 349 | ||
351 | tas2552->codec = codec; | 350 | tas2552->codec = codec; |
@@ -390,11 +389,6 @@ static int tas2552_codec_probe(struct snd_soc_codec *codec) | |||
390 | snd_soc_write(codec, TAS2552_CFG_2, TAS2552_BOOST_EN | | 389 | snd_soc_write(codec, TAS2552_CFG_2, TAS2552_BOOST_EN | |
391 | TAS2552_APT_EN | TAS2552_LIM_EN); | 390 | TAS2552_APT_EN | TAS2552_LIM_EN); |
392 | 391 | ||
393 | snd_soc_dapm_new_controls(dapm, tas2552_dapm_widgets, | ||
394 | ARRAY_SIZE(tas2552_dapm_widgets)); | ||
395 | snd_soc_dapm_add_routes(dapm, tas2552_audio_map, | ||
396 | ARRAY_SIZE(tas2552_audio_map)); | ||
397 | |||
398 | return 0; | 392 | return 0; |
399 | 393 | ||
400 | patch_fail: | 394 | patch_fail: |
@@ -462,6 +456,10 @@ static struct snd_soc_codec_driver soc_codec_dev_tas2552 = { | |||
462 | .resume = tas2552_resume, | 456 | .resume = tas2552_resume, |
463 | .controls = tas2552_snd_controls, | 457 | .controls = tas2552_snd_controls, |
464 | .num_controls = ARRAY_SIZE(tas2552_snd_controls), | 458 | .num_controls = ARRAY_SIZE(tas2552_snd_controls), |
459 | .dapm_widgets = tas2552_dapm_widgets, | ||
460 | .num_dapm_widgets = ARRAY_SIZE(tas2552_dapm_widgets), | ||
461 | .dapm_routes = tas2552_audio_map, | ||
462 | .num_dapm_routes = ARRAY_SIZE(tas2552_audio_map), | ||
465 | }; | 463 | }; |
466 | 464 | ||
467 | static const struct regmap_config tas2552_regmap_config = { | 465 | static const struct regmap_config tas2552_regmap_config = { |