aboutsummaryrefslogtreecommitdiffstats
path: root/sound/soc/codecs/wm8971.c
diff options
context:
space:
mode:
authorRussell King <rmk+kernel@arm.linux.org.uk>2012-01-13 10:00:22 -0500
committerRussell King <rmk+kernel@arm.linux.org.uk>2012-01-13 10:00:22 -0500
commit4de3a8e101150feaefa1139611a50ff37467f33e (patch)
treedaada742542518b02d7db7c5d32e715eaa5f166d /sound/soc/codecs/wm8971.c
parent294064f58953f9964e5945424b09c51800330a83 (diff)
parent099469502f62fbe0d7e4f0b83a2f22538367f734 (diff)
Merge branch 'master' into fixes
Diffstat (limited to 'sound/soc/codecs/wm8971.c')
-rw-r--r--sound/soc/codecs/wm8971.c9
1 files changed, 4 insertions, 5 deletions
diff --git a/sound/soc/codecs/wm8971.c b/sound/soc/codecs/wm8971.c
index b444b297d0b..4af893601f0 100644
--- a/sound/soc/codecs/wm8971.c
+++ b/sound/soc/codecs/wm8971.c
@@ -19,7 +19,6 @@
19#include <linux/delay.h> 19#include <linux/delay.h>
20#include <linux/pm.h> 20#include <linux/pm.h>
21#include <linux/i2c.h> 21#include <linux/i2c.h>
22#include <linux/platform_device.h>
23#include <linux/slab.h> 22#include <linux/slab.h>
24#include <sound/core.h> 23#include <sound/core.h>
25#include <sound/pcm.h> 24#include <sound/pcm.h>
@@ -224,7 +223,7 @@ static const struct snd_soc_dapm_widget wm8971_dapm_widgets[] = {
224 SND_SOC_DAPM_DAC("Left DAC", "Left Playback", WM8971_PWR2, 8, 0), 223 SND_SOC_DAPM_DAC("Left DAC", "Left Playback", WM8971_PWR2, 8, 0),
225 SND_SOC_DAPM_PGA("Mono Out 1", WM8971_PWR2, 2, 0, NULL, 0), 224 SND_SOC_DAPM_PGA("Mono Out 1", WM8971_PWR2, 2, 0, NULL, 0),
226 225
227 SND_SOC_DAPM_MICBIAS("Mic Bias", WM8971_PWR1, 1, 0), 226 SND_SOC_DAPM_SUPPLY("Mic Bias", WM8971_PWR1, 1, 0, NULL, 0),
228 SND_SOC_DAPM_ADC("Right ADC", "Right Capture", WM8971_PWR1, 2, 0), 227 SND_SOC_DAPM_ADC("Right ADC", "Right Capture", WM8971_PWR1, 2, 0),
229 SND_SOC_DAPM_ADC("Left ADC", "Left Capture", WM8971_PWR1, 3, 0), 228 SND_SOC_DAPM_ADC("Left ADC", "Left Capture", WM8971_PWR1, 3, 0),
230 229
@@ -567,7 +566,7 @@ static int wm8971_set_bias_level(struct snd_soc_codec *codec,
567#define WM8971_FORMATS (SNDRV_PCM_FMTBIT_S16_LE | SNDRV_PCM_FMTBIT_S20_3LE |\ 566#define WM8971_FORMATS (SNDRV_PCM_FMTBIT_S16_LE | SNDRV_PCM_FMTBIT_S20_3LE |\
568 SNDRV_PCM_FMTBIT_S24_LE) 567 SNDRV_PCM_FMTBIT_S24_LE)
569 568
570static struct snd_soc_dai_ops wm8971_dai_ops = { 569static const struct snd_soc_dai_ops wm8971_dai_ops = {
571 .hw_params = wm8971_pcm_hw_params, 570 .hw_params = wm8971_pcm_hw_params,
572 .digital_mute = wm8971_mute, 571 .digital_mute = wm8971_mute,
573 .set_fmt = wm8971_set_dai_fmt, 572 .set_fmt = wm8971_set_dai_fmt,
@@ -600,7 +599,7 @@ static void wm8971_work(struct work_struct *work)
600 wm8971_set_bias_level(codec, codec->dapm.bias_level); 599 wm8971_set_bias_level(codec, codec->dapm.bias_level);
601} 600}
602 601
603static int wm8971_suspend(struct snd_soc_codec *codec, pm_message_t state) 602static int wm8971_suspend(struct snd_soc_codec *codec)
604{ 603{
605 wm8971_set_bias_level(codec, SND_SOC_BIAS_OFF); 604 wm8971_set_bias_level(codec, SND_SOC_BIAS_OFF);
606 return 0; 605 return 0;
@@ -725,7 +724,7 @@ MODULE_DEVICE_TABLE(i2c, wm8971_i2c_id);
725 724
726static struct i2c_driver wm8971_i2c_driver = { 725static struct i2c_driver wm8971_i2c_driver = {
727 .driver = { 726 .driver = {
728 .name = "wm8971-codec", 727 .name = "wm8971",
729 .owner = THIS_MODULE, 728 .owner = THIS_MODULE,
730 }, 729 },
731 .probe = wm8971_i2c_probe, 730 .probe = wm8971_i2c_probe,