diff options
Diffstat (limited to 'sound/soc/codecs/wm8974.c')
-rw-r--r-- | sound/soc/codecs/wm8974.c | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/sound/soc/codecs/wm8974.c b/sound/soc/codecs/wm8974.c index 9352f1e088d2..4a6a7b5a61ba 100644 --- a/sound/soc/codecs/wm8974.c +++ b/sound/soc/codecs/wm8974.c | |||
@@ -17,7 +17,6 @@ | |||
17 | #include <linux/delay.h> | 17 | #include <linux/delay.h> |
18 | #include <linux/pm.h> | 18 | #include <linux/pm.h> |
19 | #include <linux/i2c.h> | 19 | #include <linux/i2c.h> |
20 | #include <linux/platform_device.h> | ||
21 | #include <linux/slab.h> | 20 | #include <linux/slab.h> |
22 | #include <sound/core.h> | 21 | #include <sound/core.h> |
23 | #include <sound/pcm.h> | 22 | #include <sound/pcm.h> |
@@ -226,7 +225,7 @@ SND_SOC_DAPM_MIXER("Input PGA", WM8974_POWER2, 2, 0, wm8974_inpga, | |||
226 | SND_SOC_DAPM_MIXER("Boost Mixer", WM8974_POWER2, 4, 0, | 225 | SND_SOC_DAPM_MIXER("Boost Mixer", WM8974_POWER2, 4, 0, |
227 | wm8974_boost_mixer, ARRAY_SIZE(wm8974_boost_mixer)), | 226 | wm8974_boost_mixer, ARRAY_SIZE(wm8974_boost_mixer)), |
228 | 227 | ||
229 | SND_SOC_DAPM_MICBIAS("Mic Bias", WM8974_POWER1, 4, 0), | 228 | SND_SOC_DAPM_SUPPLY("Mic Bias", WM8974_POWER1, 4, 0, NULL, 0), |
230 | 229 | ||
231 | SND_SOC_DAPM_INPUT("MICN"), | 230 | SND_SOC_DAPM_INPUT("MICN"), |
232 | SND_SOC_DAPM_INPUT("MICP"), | 231 | SND_SOC_DAPM_INPUT("MICP"), |
@@ -557,7 +556,7 @@ static int wm8974_set_bias_level(struct snd_soc_codec *codec, | |||
557 | #define WM8974_FORMATS (SNDRV_PCM_FMTBIT_S16_LE | SNDRV_PCM_FMTBIT_S20_3LE |\ | 556 | #define WM8974_FORMATS (SNDRV_PCM_FMTBIT_S16_LE | SNDRV_PCM_FMTBIT_S20_3LE |\ |
558 | SNDRV_PCM_FMTBIT_S24_LE) | 557 | SNDRV_PCM_FMTBIT_S24_LE) |
559 | 558 | ||
560 | static struct snd_soc_dai_ops wm8974_ops = { | 559 | static const struct snd_soc_dai_ops wm8974_ops = { |
561 | .hw_params = wm8974_pcm_hw_params, | 560 | .hw_params = wm8974_pcm_hw_params, |
562 | .digital_mute = wm8974_mute, | 561 | .digital_mute = wm8974_mute, |
563 | .set_fmt = wm8974_set_dai_fmt, | 562 | .set_fmt = wm8974_set_dai_fmt, |
@@ -583,7 +582,7 @@ static struct snd_soc_dai_driver wm8974_dai = { | |||
583 | .symmetric_rates = 1, | 582 | .symmetric_rates = 1, |
584 | }; | 583 | }; |
585 | 584 | ||
586 | static int wm8974_suspend(struct snd_soc_codec *codec, pm_message_t state) | 585 | static int wm8974_suspend(struct snd_soc_codec *codec) |
587 | { | 586 | { |
588 | wm8974_set_bias_level(codec, SND_SOC_BIAS_OFF); | 587 | wm8974_set_bias_level(codec, SND_SOC_BIAS_OFF); |
589 | return 0; | 588 | return 0; |
@@ -672,7 +671,7 @@ MODULE_DEVICE_TABLE(i2c, wm8974_i2c_id); | |||
672 | 671 | ||
673 | static struct i2c_driver wm8974_i2c_driver = { | 672 | static struct i2c_driver wm8974_i2c_driver = { |
674 | .driver = { | 673 | .driver = { |
675 | .name = "wm8974-codec", | 674 | .name = "wm8974", |
676 | .owner = THIS_MODULE, | 675 | .owner = THIS_MODULE, |
677 | }, | 676 | }, |
678 | .probe = wm8974_i2c_probe, | 677 | .probe = wm8974_i2c_probe, |