diff options
author | Takashi Iwai <tiwai@suse.de> | 2010-05-20 06:00:43 -0400 |
---|---|---|
committer | Takashi Iwai <tiwai@suse.de> | 2010-05-20 06:00:43 -0400 |
commit | d71f4cece4bd97d05592836202fc04ff2e7817e3 (patch) | |
tree | 6c877c7a938758b1323d9c97d46b9c536e618c69 /sound/soc/codecs/wm8940.c | |
parent | 19008bdacb9f7841166ebafe0aef361ee582ffbf (diff) | |
parent | ad8332c1302bcb4f80d593fd3eb477be9d7f5604 (diff) |
Merge branch 'topic/asoc' into for-linus
Conflicts:
sound/soc/codecs/ad1938.c
Diffstat (limited to 'sound/soc/codecs/wm8940.c')
-rw-r--r-- | sound/soc/codecs/wm8940.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/sound/soc/codecs/wm8940.c b/sound/soc/codecs/wm8940.c index 0c04b476487f..e3c4bbfaae27 100644 --- a/sound/soc/codecs/wm8940.c +++ b/sound/soc/codecs/wm8940.c | |||
@@ -581,7 +581,7 @@ static int wm8940_set_dai_sysclk(struct snd_soc_dai *codec_dai, | |||
581 | int clk_id, unsigned int freq, int dir) | 581 | int clk_id, unsigned int freq, int dir) |
582 | { | 582 | { |
583 | struct snd_soc_codec *codec = codec_dai->codec; | 583 | struct snd_soc_codec *codec = codec_dai->codec; |
584 | struct wm8940_priv *wm8940 = codec->private_data; | 584 | struct wm8940_priv *wm8940 = snd_soc_codec_get_drvdata(codec); |
585 | 585 | ||
586 | switch (freq) { | 586 | switch (freq) { |
587 | case 11289600: | 587 | case 11289600: |
@@ -692,7 +692,6 @@ static int wm8940_resume(struct platform_device *pdev) | |||
692 | ret = wm8940_set_bias_level(codec, SND_SOC_BIAS_STANDBY); | 692 | ret = wm8940_set_bias_level(codec, SND_SOC_BIAS_STANDBY); |
693 | if (ret) | 693 | if (ret) |
694 | goto error_ret; | 694 | goto error_ret; |
695 | ret = wm8940_set_bias_level(codec, codec->suspend_bias_level); | ||
696 | 695 | ||
697 | error_ret: | 696 | error_ret: |
698 | return ret; | 697 | return ret; |
@@ -773,7 +772,7 @@ static int wm8940_register(struct wm8940_priv *wm8940, | |||
773 | INIT_LIST_HEAD(&codec->dapm_widgets); | 772 | INIT_LIST_HEAD(&codec->dapm_widgets); |
774 | INIT_LIST_HEAD(&codec->dapm_paths); | 773 | INIT_LIST_HEAD(&codec->dapm_paths); |
775 | 774 | ||
776 | codec->private_data = wm8940; | 775 | snd_soc_codec_set_drvdata(codec, wm8940); |
777 | codec->name = "WM8940"; | 776 | codec->name = "WM8940"; |
778 | codec->owner = THIS_MODULE; | 777 | codec->owner = THIS_MODULE; |
779 | codec->bias_level = SND_SOC_BIAS_OFF; | 778 | codec->bias_level = SND_SOC_BIAS_OFF; |