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/wm8955.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/wm8955.c')
-rw-r--r-- | sound/soc/codecs/wm8955.c | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/sound/soc/codecs/wm8955.c b/sound/soc/codecs/wm8955.c index c8d7a809af4d..fedb76452f1b 100644 --- a/sound/soc/codecs/wm8955.c +++ b/sound/soc/codecs/wm8955.c | |||
@@ -235,7 +235,7 @@ static struct { | |||
235 | 235 | ||
236 | static int wm8955_configure_clocking(struct snd_soc_codec *codec) | 236 | static int wm8955_configure_clocking(struct snd_soc_codec *codec) |
237 | { | 237 | { |
238 | struct wm8955_priv *wm8955 = codec->private_data; | 238 | struct wm8955_priv *wm8955 = snd_soc_codec_get_drvdata(codec); |
239 | int i, ret, val; | 239 | int i, ret, val; |
240 | int clocking = 0; | 240 | int clocking = 0; |
241 | int srate = 0; | 241 | int srate = 0; |
@@ -353,7 +353,7 @@ static int deemph_settings[] = { 0, 32000, 44100, 48000 }; | |||
353 | 353 | ||
354 | static int wm8955_set_deemph(struct snd_soc_codec *codec) | 354 | static int wm8955_set_deemph(struct snd_soc_codec *codec) |
355 | { | 355 | { |
356 | struct wm8955_priv *wm8955 = codec->private_data; | 356 | struct wm8955_priv *wm8955 = snd_soc_codec_get_drvdata(codec); |
357 | int val, i, best; | 357 | int val, i, best; |
358 | 358 | ||
359 | /* If we're using deemphasis select the nearest available sample | 359 | /* If we're using deemphasis select the nearest available sample |
@@ -382,7 +382,7 @@ static int wm8955_get_deemph(struct snd_kcontrol *kcontrol, | |||
382 | struct snd_ctl_elem_value *ucontrol) | 382 | struct snd_ctl_elem_value *ucontrol) |
383 | { | 383 | { |
384 | struct snd_soc_codec *codec = snd_kcontrol_chip(kcontrol); | 384 | struct snd_soc_codec *codec = snd_kcontrol_chip(kcontrol); |
385 | struct wm8955_priv *wm8955 = codec->private_data; | 385 | struct wm8955_priv *wm8955 = snd_soc_codec_get_drvdata(codec); |
386 | 386 | ||
387 | return wm8955->deemph; | 387 | return wm8955->deemph; |
388 | } | 388 | } |
@@ -391,7 +391,7 @@ static int wm8955_put_deemph(struct snd_kcontrol *kcontrol, | |||
391 | struct snd_ctl_elem_value *ucontrol) | 391 | struct snd_ctl_elem_value *ucontrol) |
392 | { | 392 | { |
393 | struct snd_soc_codec *codec = snd_kcontrol_chip(kcontrol); | 393 | struct snd_soc_codec *codec = snd_kcontrol_chip(kcontrol); |
394 | struct wm8955_priv *wm8955 = codec->private_data; | 394 | struct wm8955_priv *wm8955 = snd_soc_codec_get_drvdata(codec); |
395 | int deemph = ucontrol->value.enumerated.item[0]; | 395 | int deemph = ucontrol->value.enumerated.item[0]; |
396 | 396 | ||
397 | if (deemph > 1) | 397 | if (deemph > 1) |
@@ -598,7 +598,7 @@ static int wm8955_hw_params(struct snd_pcm_substream *substream, | |||
598 | struct snd_soc_dai *dai) | 598 | struct snd_soc_dai *dai) |
599 | { | 599 | { |
600 | struct snd_soc_codec *codec = dai->codec; | 600 | struct snd_soc_codec *codec = dai->codec; |
601 | struct wm8955_priv *wm8955 = codec->private_data; | 601 | struct wm8955_priv *wm8955 = snd_soc_codec_get_drvdata(codec); |
602 | int ret; | 602 | int ret; |
603 | int wl; | 603 | int wl; |
604 | 604 | ||
@@ -647,7 +647,7 @@ static int wm8955_set_sysclk(struct snd_soc_dai *dai, int clk_id, | |||
647 | unsigned int freq, int dir) | 647 | unsigned int freq, int dir) |
648 | { | 648 | { |
649 | struct snd_soc_codec *codec = dai->codec; | 649 | struct snd_soc_codec *codec = dai->codec; |
650 | struct wm8955_priv *priv = codec->private_data; | 650 | struct wm8955_priv *priv = snd_soc_codec_get_drvdata(codec); |
651 | int div; | 651 | int div; |
652 | 652 | ||
653 | switch (clk_id) { | 653 | switch (clk_id) { |
@@ -770,7 +770,7 @@ static int wm8955_digital_mute(struct snd_soc_dai *codec_dai, int mute) | |||
770 | static int wm8955_set_bias_level(struct snd_soc_codec *codec, | 770 | static int wm8955_set_bias_level(struct snd_soc_codec *codec, |
771 | enum snd_soc_bias_level level) | 771 | enum snd_soc_bias_level level) |
772 | { | 772 | { |
773 | struct wm8955_priv *wm8955 = codec->private_data; | 773 | struct wm8955_priv *wm8955 = snd_soc_codec_get_drvdata(codec); |
774 | int ret, i; | 774 | int ret, i; |
775 | 775 | ||
776 | switch (level) { | 776 | switch (level) { |
@@ -971,7 +971,7 @@ static int wm8955_register(struct wm8955_priv *wm8955, | |||
971 | INIT_LIST_HEAD(&codec->dapm_widgets); | 971 | INIT_LIST_HEAD(&codec->dapm_widgets); |
972 | INIT_LIST_HEAD(&codec->dapm_paths); | 972 | INIT_LIST_HEAD(&codec->dapm_paths); |
973 | 973 | ||
974 | codec->private_data = wm8955; | 974 | snd_soc_codec_set_drvdata(codec, wm8955); |
975 | codec->name = "WM8955"; | 975 | codec->name = "WM8955"; |
976 | codec->owner = THIS_MODULE; | 976 | codec->owner = THIS_MODULE; |
977 | codec->bias_level = SND_SOC_BIAS_OFF; | 977 | codec->bias_level = SND_SOC_BIAS_OFF; |