aboutsummaryrefslogtreecommitdiffstats
path: root/sound/soc/codecs/tpa6130a2.c
diff options
context:
space:
mode:
Diffstat (limited to 'sound/soc/codecs/tpa6130a2.c')
-rw-r--r--sound/soc/codecs/tpa6130a2.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/sound/soc/codecs/tpa6130a2.c b/sound/soc/codecs/tpa6130a2.c
index ee4fb201de60..f9a92ea6b50a 100644
--- a/sound/soc/codecs/tpa6130a2.c
+++ b/sound/soc/codecs/tpa6130a2.c
@@ -388,16 +388,17 @@ static const struct snd_soc_dapm_route audio_map[] = {
388int tpa6130a2_add_controls(struct snd_soc_codec *codec) 388int tpa6130a2_add_controls(struct snd_soc_codec *codec)
389{ 389{
390 struct tpa6130a2_data *data; 390 struct tpa6130a2_data *data;
391 struct snd_soc_dapm_context *dapm = &codec->dapm;
391 392
392 if (tpa6130a2_client == NULL) 393 if (tpa6130a2_client == NULL)
393 return -ENODEV; 394 return -ENODEV;
394 395
395 data = i2c_get_clientdata(tpa6130a2_client); 396 data = i2c_get_clientdata(tpa6130a2_client);
396 397
397 snd_soc_dapm_new_controls(codec, tpa6130a2_dapm_widgets, 398 snd_soc_dapm_new_controls(dapm, tpa6130a2_dapm_widgets,
398 ARRAY_SIZE(tpa6130a2_dapm_widgets)); 399 ARRAY_SIZE(tpa6130a2_dapm_widgets));
399 400
400 snd_soc_dapm_add_routes(codec, audio_map, ARRAY_SIZE(audio_map)); 401 snd_soc_dapm_add_routes(dapm, audio_map, ARRAY_SIZE(audio_map));
401 402
402 if (data->id == TPA6140A2) 403 if (data->id == TPA6140A2)
403 return snd_soc_add_controls(codec, tpa6140a2_controls, 404 return snd_soc_add_controls(codec, tpa6140a2_controls,