diff options
author | Takashi Iwai <tiwai@suse.de> | 2014-10-06 08:01:11 -0400 |
---|---|---|
committer | Takashi Iwai <tiwai@suse.de> | 2014-10-06 08:01:11 -0400 |
commit | 8df22a4d6f5b81c9c1703579d4907b57002689ed (patch) | |
tree | 064e9662d427a82076e1151fcd9aa78a1066f9f4 /sound/soc/codecs/jz4740.c | |
parent | 0cae90a96c15f2fd3bd139ba5505755c9c9ef2eb (diff) | |
parent | a5448c88b812390a3622e76d774e10c0da1fb970 (diff) |
Merge tag 'asoc-v3.18' of git://git.kernel.org/pub/scm/linux/kernel/git/broonie/sound into for-next
ASoC: Updates for v3.18
- More componentisation work from Lars-Peter, this time mainly
cleaning up the suspend and bias level transition callbacks.
- Real system support for the Intel drivers and a bunch of fixes and
enhancements for the associated CODEC drivers, this is going to need
a lot quirks over time due to the lack of any firmware description of
the boards.
- Jack detect support for simple card from Dylan Reid.
- A bunch of small fixes and enhancements for the Freescale drivers.
- New drivers for Analog Devices SSM4567, Cirrus Logic CS35L32, Everest
Semiconductor ES8328 and Freescale cards using the ASRC in newer i.MX
processors.
Diffstat (limited to 'sound/soc/codecs/jz4740.c')
-rw-r--r-- | sound/soc/codecs/jz4740.c | 30 |
1 files changed, 1 insertions, 29 deletions
diff --git a/sound/soc/codecs/jz4740.c b/sound/soc/codecs/jz4740.c index bcebd1a9ce31..df7c01cf7072 100644 --- a/sound/soc/codecs/jz4740.c +++ b/sound/soc/codecs/jz4740.c | |||
@@ -293,41 +293,13 @@ static int jz4740_codec_dev_probe(struct snd_soc_codec *codec) | |||
293 | regmap_update_bits(jz4740_codec->regmap, JZ4740_REG_CODEC_1, | 293 | regmap_update_bits(jz4740_codec->regmap, JZ4740_REG_CODEC_1, |
294 | JZ4740_CODEC_1_SW2_ENABLE, JZ4740_CODEC_1_SW2_ENABLE); | 294 | JZ4740_CODEC_1_SW2_ENABLE, JZ4740_CODEC_1_SW2_ENABLE); |
295 | 295 | ||
296 | jz4740_codec_set_bias_level(codec, SND_SOC_BIAS_STANDBY); | ||
297 | |||
298 | return 0; | 296 | return 0; |
299 | } | 297 | } |
300 | 298 | ||
301 | static int jz4740_codec_dev_remove(struct snd_soc_codec *codec) | ||
302 | { | ||
303 | jz4740_codec_set_bias_level(codec, SND_SOC_BIAS_OFF); | ||
304 | |||
305 | return 0; | ||
306 | } | ||
307 | |||
308 | #ifdef CONFIG_PM_SLEEP | ||
309 | |||
310 | static int jz4740_codec_suspend(struct snd_soc_codec *codec) | ||
311 | { | ||
312 | return jz4740_codec_set_bias_level(codec, SND_SOC_BIAS_OFF); | ||
313 | } | ||
314 | |||
315 | static int jz4740_codec_resume(struct snd_soc_codec *codec) | ||
316 | { | ||
317 | return jz4740_codec_set_bias_level(codec, SND_SOC_BIAS_STANDBY); | ||
318 | } | ||
319 | |||
320 | #else | ||
321 | #define jz4740_codec_suspend NULL | ||
322 | #define jz4740_codec_resume NULL | ||
323 | #endif | ||
324 | |||
325 | static struct snd_soc_codec_driver soc_codec_dev_jz4740_codec = { | 299 | static struct snd_soc_codec_driver soc_codec_dev_jz4740_codec = { |
326 | .probe = jz4740_codec_dev_probe, | 300 | .probe = jz4740_codec_dev_probe, |
327 | .remove = jz4740_codec_dev_remove, | ||
328 | .suspend = jz4740_codec_suspend, | ||
329 | .resume = jz4740_codec_resume, | ||
330 | .set_bias_level = jz4740_codec_set_bias_level, | 301 | .set_bias_level = jz4740_codec_set_bias_level, |
302 | .suspend_bias_off = true, | ||
331 | 303 | ||
332 | .controls = jz4740_codec_controls, | 304 | .controls = jz4740_codec_controls, |
333 | .num_controls = ARRAY_SIZE(jz4740_codec_controls), | 305 | .num_controls = ARRAY_SIZE(jz4740_codec_controls), |