diff options
Diffstat (limited to 'sound/soc/codecs/wm8904.c')
-rw-r--r-- | sound/soc/codecs/wm8904.c | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/sound/soc/codecs/wm8904.c b/sound/soc/codecs/wm8904.c index 285ef87e6704..f31c754c8865 100644 --- a/sound/soc/codecs/wm8904.c +++ b/sound/soc/codecs/wm8904.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/regulator/consumer.h> | 20 | #include <linux/regulator/consumer.h> |
22 | #include <linux/slab.h> | 21 | #include <linux/slab.h> |
23 | #include <sound/core.h> | 22 | #include <sound/core.h> |
@@ -1196,7 +1195,7 @@ SND_SOC_DAPM_INPUT("IN2R"), | |||
1196 | SND_SOC_DAPM_INPUT("IN3L"), | 1195 | SND_SOC_DAPM_INPUT("IN3L"), |
1197 | SND_SOC_DAPM_INPUT("IN3R"), | 1196 | SND_SOC_DAPM_INPUT("IN3R"), |
1198 | 1197 | ||
1199 | SND_SOC_DAPM_MICBIAS("MICBIAS", WM8904_MIC_BIAS_CONTROL_0, 0, 0), | 1198 | SND_SOC_DAPM_SUPPLY("MICBIAS", WM8904_MIC_BIAS_CONTROL_0, 0, 0, NULL, 0), |
1200 | 1199 | ||
1201 | SND_SOC_DAPM_MUX("Left Capture Mux", SND_SOC_NOPM, 0, 0, &lin_mux), | 1200 | SND_SOC_DAPM_MUX("Left Capture Mux", SND_SOC_NOPM, 0, 0, &lin_mux), |
1202 | SND_SOC_DAPM_MUX("Left Capture Inverting Mux", SND_SOC_NOPM, 0, 0, | 1201 | SND_SOC_DAPM_MUX("Left Capture Inverting Mux", SND_SOC_NOPM, 0, 0, |
@@ -2205,7 +2204,7 @@ static int wm8904_set_bias_level(struct snd_soc_codec *codec, | |||
2205 | #define WM8904_FORMATS (SNDRV_PCM_FMTBIT_S16_LE | SNDRV_PCM_FMTBIT_S20_3LE |\ | 2204 | #define WM8904_FORMATS (SNDRV_PCM_FMTBIT_S16_LE | SNDRV_PCM_FMTBIT_S20_3LE |\ |
2206 | SNDRV_PCM_FMTBIT_S24_LE | SNDRV_PCM_FMTBIT_S32_LE) | 2205 | SNDRV_PCM_FMTBIT_S24_LE | SNDRV_PCM_FMTBIT_S32_LE) |
2207 | 2206 | ||
2208 | static struct snd_soc_dai_ops wm8904_dai_ops = { | 2207 | static const struct snd_soc_dai_ops wm8904_dai_ops = { |
2209 | .set_sysclk = wm8904_set_sysclk, | 2208 | .set_sysclk = wm8904_set_sysclk, |
2210 | .set_fmt = wm8904_set_fmt, | 2209 | .set_fmt = wm8904_set_fmt, |
2211 | .set_tdm_slot = wm8904_set_tdm_slot, | 2210 | .set_tdm_slot = wm8904_set_tdm_slot, |
@@ -2235,7 +2234,7 @@ static struct snd_soc_dai_driver wm8904_dai = { | |||
2235 | }; | 2234 | }; |
2236 | 2235 | ||
2237 | #ifdef CONFIG_PM | 2236 | #ifdef CONFIG_PM |
2238 | static int wm8904_suspend(struct snd_soc_codec *codec, pm_message_t state) | 2237 | static int wm8904_suspend(struct snd_soc_codec *codec) |
2239 | { | 2238 | { |
2240 | wm8904_set_bias_level(codec, SND_SOC_BIAS_OFF); | 2239 | wm8904_set_bias_level(codec, SND_SOC_BIAS_OFF); |
2241 | 2240 | ||
@@ -2565,7 +2564,7 @@ MODULE_DEVICE_TABLE(i2c, wm8904_i2c_id); | |||
2565 | 2564 | ||
2566 | static struct i2c_driver wm8904_i2c_driver = { | 2565 | static struct i2c_driver wm8904_i2c_driver = { |
2567 | .driver = { | 2566 | .driver = { |
2568 | .name = "wm8904-codec", | 2567 | .name = "wm8904", |
2569 | .owner = THIS_MODULE, | 2568 | .owner = THIS_MODULE, |
2570 | }, | 2569 | }, |
2571 | .probe = wm8904_i2c_probe, | 2570 | .probe = wm8904_i2c_probe, |