diff options
Diffstat (limited to 'sound/soc/codecs/wm8904.c')
-rw-r--r-- | sound/soc/codecs/wm8904.c | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/sound/soc/codecs/wm8904.c b/sound/soc/codecs/wm8904.c index 49c35c36935e..f7c549949c54 100644 --- a/sound/soc/codecs/wm8904.c +++ b/sound/soc/codecs/wm8904.c | |||
@@ -391,7 +391,7 @@ static void wm8904_set_drc(struct snd_soc_codec *codec) | |||
391 | static int wm8904_put_drc_enum(struct snd_kcontrol *kcontrol, | 391 | static int wm8904_put_drc_enum(struct snd_kcontrol *kcontrol, |
392 | struct snd_ctl_elem_value *ucontrol) | 392 | struct snd_ctl_elem_value *ucontrol) |
393 | { | 393 | { |
394 | struct snd_soc_codec *codec = snd_kcontrol_chip(kcontrol); | 394 | struct snd_soc_codec *codec = snd_soc_kcontrol_codec(kcontrol); |
395 | struct wm8904_priv *wm8904 = snd_soc_codec_get_drvdata(codec); | 395 | struct wm8904_priv *wm8904 = snd_soc_codec_get_drvdata(codec); |
396 | struct wm8904_pdata *pdata = wm8904->pdata; | 396 | struct wm8904_pdata *pdata = wm8904->pdata; |
397 | int value = ucontrol->value.integer.value[0]; | 397 | int value = ucontrol->value.integer.value[0]; |
@@ -409,7 +409,7 @@ static int wm8904_put_drc_enum(struct snd_kcontrol *kcontrol, | |||
409 | static int wm8904_get_drc_enum(struct snd_kcontrol *kcontrol, | 409 | static int wm8904_get_drc_enum(struct snd_kcontrol *kcontrol, |
410 | struct snd_ctl_elem_value *ucontrol) | 410 | struct snd_ctl_elem_value *ucontrol) |
411 | { | 411 | { |
412 | struct snd_soc_codec *codec = snd_kcontrol_chip(kcontrol); | 412 | struct snd_soc_codec *codec = snd_soc_kcontrol_codec(kcontrol); |
413 | struct wm8904_priv *wm8904 = snd_soc_codec_get_drvdata(codec); | 413 | struct wm8904_priv *wm8904 = snd_soc_codec_get_drvdata(codec); |
414 | 414 | ||
415 | ucontrol->value.enumerated.item[0] = wm8904->drc_cfg; | 415 | ucontrol->value.enumerated.item[0] = wm8904->drc_cfg; |
@@ -462,7 +462,7 @@ static void wm8904_set_retune_mobile(struct snd_soc_codec *codec) | |||
462 | static int wm8904_put_retune_mobile_enum(struct snd_kcontrol *kcontrol, | 462 | static int wm8904_put_retune_mobile_enum(struct snd_kcontrol *kcontrol, |
463 | struct snd_ctl_elem_value *ucontrol) | 463 | struct snd_ctl_elem_value *ucontrol) |
464 | { | 464 | { |
465 | struct snd_soc_codec *codec = snd_kcontrol_chip(kcontrol); | 465 | struct snd_soc_codec *codec = snd_soc_kcontrol_codec(kcontrol); |
466 | struct wm8904_priv *wm8904 = snd_soc_codec_get_drvdata(codec); | 466 | struct wm8904_priv *wm8904 = snd_soc_codec_get_drvdata(codec); |
467 | struct wm8904_pdata *pdata = wm8904->pdata; | 467 | struct wm8904_pdata *pdata = wm8904->pdata; |
468 | int value = ucontrol->value.integer.value[0]; | 468 | int value = ucontrol->value.integer.value[0]; |
@@ -480,7 +480,7 @@ static int wm8904_put_retune_mobile_enum(struct snd_kcontrol *kcontrol, | |||
480 | static int wm8904_get_retune_mobile_enum(struct snd_kcontrol *kcontrol, | 480 | static int wm8904_get_retune_mobile_enum(struct snd_kcontrol *kcontrol, |
481 | struct snd_ctl_elem_value *ucontrol) | 481 | struct snd_ctl_elem_value *ucontrol) |
482 | { | 482 | { |
483 | struct snd_soc_codec *codec = snd_kcontrol_chip(kcontrol); | 483 | struct snd_soc_codec *codec = snd_soc_kcontrol_codec(kcontrol); |
484 | struct wm8904_priv *wm8904 = snd_soc_codec_get_drvdata(codec); | 484 | struct wm8904_priv *wm8904 = snd_soc_codec_get_drvdata(codec); |
485 | 485 | ||
486 | ucontrol->value.enumerated.item[0] = wm8904->retune_mobile_cfg; | 486 | ucontrol->value.enumerated.item[0] = wm8904->retune_mobile_cfg; |
@@ -520,7 +520,7 @@ static int wm8904_set_deemph(struct snd_soc_codec *codec) | |||
520 | static int wm8904_get_deemph(struct snd_kcontrol *kcontrol, | 520 | static int wm8904_get_deemph(struct snd_kcontrol *kcontrol, |
521 | struct snd_ctl_elem_value *ucontrol) | 521 | struct snd_ctl_elem_value *ucontrol) |
522 | { | 522 | { |
523 | struct snd_soc_codec *codec = snd_kcontrol_chip(kcontrol); | 523 | struct snd_soc_codec *codec = snd_soc_kcontrol_codec(kcontrol); |
524 | struct wm8904_priv *wm8904 = snd_soc_codec_get_drvdata(codec); | 524 | struct wm8904_priv *wm8904 = snd_soc_codec_get_drvdata(codec); |
525 | 525 | ||
526 | ucontrol->value.enumerated.item[0] = wm8904->deemph; | 526 | ucontrol->value.enumerated.item[0] = wm8904->deemph; |
@@ -530,7 +530,7 @@ static int wm8904_get_deemph(struct snd_kcontrol *kcontrol, | |||
530 | static int wm8904_put_deemph(struct snd_kcontrol *kcontrol, | 530 | static int wm8904_put_deemph(struct snd_kcontrol *kcontrol, |
531 | struct snd_ctl_elem_value *ucontrol) | 531 | struct snd_ctl_elem_value *ucontrol) |
532 | { | 532 | { |
533 | struct snd_soc_codec *codec = snd_kcontrol_chip(kcontrol); | 533 | struct snd_soc_codec *codec = snd_soc_kcontrol_codec(kcontrol); |
534 | struct wm8904_priv *wm8904 = snd_soc_codec_get_drvdata(codec); | 534 | struct wm8904_priv *wm8904 = snd_soc_codec_get_drvdata(codec); |
535 | int deemph = ucontrol->value.enumerated.item[0]; | 535 | int deemph = ucontrol->value.enumerated.item[0]; |
536 | 536 | ||
@@ -570,7 +570,7 @@ static SOC_ENUM_SINGLE_DECL(hpf_mode, WM8904_ADC_DIGITAL_0, 5, | |||
570 | static int wm8904_adc_osr_put(struct snd_kcontrol *kcontrol, | 570 | static int wm8904_adc_osr_put(struct snd_kcontrol *kcontrol, |
571 | struct snd_ctl_elem_value *ucontrol) | 571 | struct snd_ctl_elem_value *ucontrol) |
572 | { | 572 | { |
573 | struct snd_soc_codec *codec = snd_kcontrol_chip(kcontrol); | 573 | struct snd_soc_codec *codec = snd_soc_kcontrol_codec(kcontrol); |
574 | unsigned int val; | 574 | unsigned int val; |
575 | int ret; | 575 | int ret; |
576 | 576 | ||