aboutsummaryrefslogtreecommitdiffstats
path: root/sound/soc/codecs/tlv320aic23.c
diff options
context:
space:
mode:
Diffstat (limited to 'sound/soc/codecs/tlv320aic23.c')
-rw-r--r--sound/soc/codecs/tlv320aic23.c9
1 files changed, 5 insertions, 4 deletions
diff --git a/sound/soc/codecs/tlv320aic23.c b/sound/soc/codecs/tlv320aic23.c
index e8652b1ae326..d9d8e844d63f 100644
--- a/sound/soc/codecs/tlv320aic23.c
+++ b/sound/soc/codecs/tlv320aic23.c
@@ -391,11 +391,12 @@ static int set_sample_rate_control(struct snd_soc_codec *codec, int mclk,
391 391
392static int tlv320aic23_add_widgets(struct snd_soc_codec *codec) 392static int tlv320aic23_add_widgets(struct snd_soc_codec *codec)
393{ 393{
394 snd_soc_dapm_new_controls(codec, tlv320aic23_dapm_widgets, 394 struct snd_soc_dapm_context *dapm = &codec->dapm;
395 ARRAY_SIZE(tlv320aic23_dapm_widgets));
396 395
396 snd_soc_dapm_new_controls(dapm, tlv320aic23_dapm_widgets,
397 ARRAY_SIZE(tlv320aic23_dapm_widgets));
397 /* set up audio path interconnects */ 398 /* set up audio path interconnects */
398 snd_soc_dapm_add_routes(codec, intercon, ARRAY_SIZE(intercon)); 399 snd_soc_dapm_add_routes(dapm, intercon, ARRAY_SIZE(intercon));
399 400
400 return 0; 401 return 0;
401} 402}
@@ -574,7 +575,7 @@ static int tlv320aic23_set_bias_level(struct snd_soc_codec *codec,
574 tlv320aic23_write(codec, TLV320AIC23_PWR, 0xffff); 575 tlv320aic23_write(codec, TLV320AIC23_PWR, 0xffff);
575 break; 576 break;
576 } 577 }
577 codec->bias_level = level; 578 codec->dapm.bias_level = level;
578 return 0; 579 return 0;
579} 580}
580 581