diff options
author | Takashi Iwai <tiwai@suse.de> | 2011-01-13 02:37:24 -0500 |
---|---|---|
committer | Takashi Iwai <tiwai@suse.de> | 2011-01-13 02:37:24 -0500 |
commit | 6db9a0f326d3144d790d9479309df480a8f562e4 (patch) | |
tree | 650a8950c35c087278ecee1b8d123f75f601ebc8 /sound/soc/codecs/tlv320aic23.c | |
parent | c400c9e23feb5bb3fbe8a8d4581ecce3b19a2f38 (diff) | |
parent | 18b022eb117e7f70c191267551ff865f278a9258 (diff) |
Merge branch 'topic/asoc' into for-linus
Diffstat (limited to 'sound/soc/codecs/tlv320aic23.c')
-rw-r--r-- | sound/soc/codecs/tlv320aic23.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/sound/soc/codecs/tlv320aic23.c b/sound/soc/codecs/tlv320aic23.c index e8652b1ae326..54a30ef0ec8b 100644 --- a/sound/soc/codecs/tlv320aic23.c +++ b/sound/soc/codecs/tlv320aic23.c | |||
@@ -30,7 +30,6 @@ | |||
30 | #include <sound/pcm.h> | 30 | #include <sound/pcm.h> |
31 | #include <sound/pcm_params.h> | 31 | #include <sound/pcm_params.h> |
32 | #include <sound/soc.h> | 32 | #include <sound/soc.h> |
33 | #include <sound/soc-dapm.h> | ||
34 | #include <sound/tlv.h> | 33 | #include <sound/tlv.h> |
35 | #include <sound/initval.h> | 34 | #include <sound/initval.h> |
36 | 35 | ||
@@ -391,11 +390,12 @@ static int set_sample_rate_control(struct snd_soc_codec *codec, int mclk, | |||
391 | 390 | ||
392 | static int tlv320aic23_add_widgets(struct snd_soc_codec *codec) | 391 | static int tlv320aic23_add_widgets(struct snd_soc_codec *codec) |
393 | { | 392 | { |
394 | snd_soc_dapm_new_controls(codec, tlv320aic23_dapm_widgets, | 393 | struct snd_soc_dapm_context *dapm = &codec->dapm; |
395 | ARRAY_SIZE(tlv320aic23_dapm_widgets)); | ||
396 | 394 | ||
395 | snd_soc_dapm_new_controls(dapm, tlv320aic23_dapm_widgets, | ||
396 | ARRAY_SIZE(tlv320aic23_dapm_widgets)); | ||
397 | /* set up audio path interconnects */ | 397 | /* set up audio path interconnects */ |
398 | snd_soc_dapm_add_routes(codec, intercon, ARRAY_SIZE(intercon)); | 398 | snd_soc_dapm_add_routes(dapm, intercon, ARRAY_SIZE(intercon)); |
399 | 399 | ||
400 | return 0; | 400 | return 0; |
401 | } | 401 | } |
@@ -574,7 +574,7 @@ static int tlv320aic23_set_bias_level(struct snd_soc_codec *codec, | |||
574 | tlv320aic23_write(codec, TLV320AIC23_PWR, 0xffff); | 574 | tlv320aic23_write(codec, TLV320AIC23_PWR, 0xffff); |
575 | break; | 575 | break; |
576 | } | 576 | } |
577 | codec->bias_level = level; | 577 | codec->dapm.bias_level = level; |
578 | return 0; | 578 | return 0; |
579 | } | 579 | } |
580 | 580 | ||