diff options
| -rw-r--r-- | sound/soc/codecs/wm8991.c | 32 |
1 files changed, 2 insertions, 30 deletions
diff --git a/sound/soc/codecs/wm8991.c b/sound/soc/codecs/wm8991.c index d0be89731cdb..b0ac2c3e31b9 100644 --- a/sound/soc/codecs/wm8991.c +++ b/sound/soc/codecs/wm8991.c | |||
| @@ -1227,32 +1227,6 @@ static int wm8991_set_bias_level(struct snd_soc_codec *codec, | |||
| 1227 | return 0; | 1227 | return 0; |
| 1228 | } | 1228 | } |
| 1229 | 1229 | ||
| 1230 | static int wm8991_suspend(struct snd_soc_codec *codec) | ||
| 1231 | { | ||
| 1232 | wm8991_set_bias_level(codec, SND_SOC_BIAS_OFF); | ||
| 1233 | return 0; | ||
| 1234 | } | ||
| 1235 | |||
| 1236 | static int wm8991_resume(struct snd_soc_codec *codec) | ||
| 1237 | { | ||
| 1238 | wm8991_set_bias_level(codec, SND_SOC_BIAS_STANDBY); | ||
| 1239 | return 0; | ||
| 1240 | } | ||
| 1241 | |||
| 1242 | /* power down chip */ | ||
| 1243 | static int wm8991_remove(struct snd_soc_codec *codec) | ||
| 1244 | { | ||
| 1245 | wm8991_set_bias_level(codec, SND_SOC_BIAS_OFF); | ||
| 1246 | return 0; | ||
| 1247 | } | ||
| 1248 | |||
| 1249 | static int wm8991_probe(struct snd_soc_codec *codec) | ||
| 1250 | { | ||
| 1251 | wm8991_set_bias_level(codec, SND_SOC_BIAS_STANDBY); | ||
| 1252 | |||
| 1253 | return 0; | ||
| 1254 | } | ||
| 1255 | |||
| 1256 | #define WM8991_FORMATS (SNDRV_PCM_FMTBIT_S16_LE | SNDRV_PCM_FMTBIT_S20_3LE |\ | 1230 | #define WM8991_FORMATS (SNDRV_PCM_FMTBIT_S16_LE | SNDRV_PCM_FMTBIT_S20_3LE |\ |
| 1257 | SNDRV_PCM_FMTBIT_S24_LE) | 1231 | SNDRV_PCM_FMTBIT_S24_LE) |
| 1258 | 1232 | ||
| @@ -1293,11 +1267,9 @@ static struct snd_soc_dai_driver wm8991_dai = { | |||
| 1293 | }; | 1267 | }; |
| 1294 | 1268 | ||
| 1295 | static struct snd_soc_codec_driver soc_codec_dev_wm8991 = { | 1269 | static struct snd_soc_codec_driver soc_codec_dev_wm8991 = { |
| 1296 | .probe = wm8991_probe, | ||
| 1297 | .remove = wm8991_remove, | ||
| 1298 | .suspend = wm8991_suspend, | ||
| 1299 | .resume = wm8991_resume, | ||
| 1300 | .set_bias_level = wm8991_set_bias_level, | 1270 | .set_bias_level = wm8991_set_bias_level, |
| 1271 | .suspend_bias_off = true, | ||
| 1272 | |||
| 1301 | .controls = wm8991_snd_controls, | 1273 | .controls = wm8991_snd_controls, |
| 1302 | .num_controls = ARRAY_SIZE(wm8991_snd_controls), | 1274 | .num_controls = ARRAY_SIZE(wm8991_snd_controls), |
| 1303 | .dapm_widgets = wm8991_dapm_widgets, | 1275 | .dapm_widgets = wm8991_dapm_widgets, |
