diff options
Diffstat (limited to 'sound/soc/codecs/wm8728.c')
-rw-r--r-- | sound/soc/codecs/wm8728.c | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/sound/soc/codecs/wm8728.c b/sound/soc/codecs/wm8728.c index 04b027efd5c0..fc3d59e49084 100644 --- a/sound/soc/codecs/wm8728.c +++ b/sound/soc/codecs/wm8728.c | |||
@@ -196,7 +196,7 @@ static int wm8728_set_bias_level(struct snd_soc_codec *codec, | |||
196 | #define WM8728_FORMATS (SNDRV_PCM_FMTBIT_S16_LE | SNDRV_PCM_FMTBIT_S20_3LE |\ | 196 | #define WM8728_FORMATS (SNDRV_PCM_FMTBIT_S16_LE | SNDRV_PCM_FMTBIT_S20_3LE |\ |
197 | SNDRV_PCM_FMTBIT_S24_LE) | 197 | SNDRV_PCM_FMTBIT_S24_LE) |
198 | 198 | ||
199 | static struct snd_soc_dai_ops wm8728_dai_ops = { | 199 | static const struct snd_soc_dai_ops wm8728_dai_ops = { |
200 | .hw_params = wm8728_hw_params, | 200 | .hw_params = wm8728_hw_params, |
201 | .digital_mute = wm8728_mute, | 201 | .digital_mute = wm8728_mute, |
202 | .set_fmt = wm8728_set_dai_fmt, | 202 | .set_fmt = wm8728_set_dai_fmt, |
@@ -214,7 +214,7 @@ static struct snd_soc_dai_driver wm8728_dai = { | |||
214 | .ops = &wm8728_dai_ops, | 214 | .ops = &wm8728_dai_ops, |
215 | }; | 215 | }; |
216 | 216 | ||
217 | static int wm8728_suspend(struct snd_soc_codec *codec, pm_message_t state) | 217 | static int wm8728_suspend(struct snd_soc_codec *codec) |
218 | { | 218 | { |
219 | wm8728_set_bias_level(codec, SND_SOC_BIAS_OFF); | 219 | wm8728_set_bias_level(codec, SND_SOC_BIAS_OFF); |
220 | 220 | ||
@@ -243,9 +243,6 @@ static int wm8728_probe(struct snd_soc_codec *codec) | |||
243 | /* power on device */ | 243 | /* power on device */ |
244 | wm8728_set_bias_level(codec, SND_SOC_BIAS_STANDBY); | 244 | wm8728_set_bias_level(codec, SND_SOC_BIAS_STANDBY); |
245 | 245 | ||
246 | snd_soc_add_controls(codec, wm8728_snd_controls, | ||
247 | ARRAY_SIZE(wm8728_snd_controls)); | ||
248 | |||
249 | return ret; | 246 | return ret; |
250 | } | 247 | } |
251 | 248 | ||
@@ -264,6 +261,8 @@ static struct snd_soc_codec_driver soc_codec_dev_wm8728 = { | |||
264 | .reg_cache_size = ARRAY_SIZE(wm8728_reg_defaults), | 261 | .reg_cache_size = ARRAY_SIZE(wm8728_reg_defaults), |
265 | .reg_word_size = sizeof(u16), | 262 | .reg_word_size = sizeof(u16), |
266 | .reg_cache_default = wm8728_reg_defaults, | 263 | .reg_cache_default = wm8728_reg_defaults, |
264 | .controls = wm8728_snd_controls, | ||
265 | .num_controls = ARRAY_SIZE(wm8728_snd_controls), | ||
267 | .dapm_widgets = wm8728_dapm_widgets, | 266 | .dapm_widgets = wm8728_dapm_widgets, |
268 | .num_dapm_widgets = ARRAY_SIZE(wm8728_dapm_widgets), | 267 | .num_dapm_widgets = ARRAY_SIZE(wm8728_dapm_widgets), |
269 | .dapm_routes = wm8728_intercon, | 268 | .dapm_routes = wm8728_intercon, |