diff options
author | Linus Torvalds <torvalds@linux-foundation.org> | 2011-01-13 13:32:54 -0500 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2011-01-13 13:32:54 -0500 |
commit | 66dc918d42eaaa9afe42a47d07526765162017a9 (patch) | |
tree | 947411841773dfb076f1aa78bc5be868bc4281a6 /sound/soc/codecs/jz4740.c | |
parent | b2034d474b7e1e8578bd5c2977024b51693269d9 (diff) | |
parent | 6db9a0f326d3144d790d9479309df480a8f562e4 (diff) |
Merge branch 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tiwai/sound-2.6
* 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tiwai/sound-2.6: (348 commits)
ALSA: hda - Fix NULL-derefence with a single mic in STAC auto-mic detection
ALSA: hda - Add missing NID 0x19 fixup for Sony VAIO
ALSA: hda - Fix ALC275 enable hardware EQ for SONY VAIO
ALSA: oxygen: fix Xonar DG input
ALSA: hda - Fix EAPD on Lenovo NB ALC269 to low
ALSA: hda - Fix missing EAPD for Acer 4930G
ALSA: hda: Disable 4/6 channels on some NVIDIA GPUs.
ALSA: hda - Add static_hdmi_pcm option to HDMI codec parser
ALSA: hda - Don't refer ELD when unplugged
ASoC: tpa6130a2: Fix compiler warning
ASoC: tlv320dac33: Add DAPM selection for LOM invert
ASoC: DMIC codec: Adding a generic DMIC codec
ALSA: snd-usb-us122l: Fix missing NULL checks
ALSA: snd-usb-us122l: Fix MIDI output
ASoC: soc-cache: Fix invalid memory access during snd_soc_lzo_cache_sync()
ASoC: Fix section mismatch in wm8995.c
ALSA: oxygen: add S/PDIF source selection for Claro cards
ALSA: oxygen: fix CD/MIDI for X-Meridian (2G)
ASoC: fix migor audio build
ALSA: include delay.h for msleep in Xonar DG support
...
Diffstat (limited to 'sound/soc/codecs/jz4740.c')
-rw-r--r-- | sound/soc/codecs/jz4740.c | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/sound/soc/codecs/jz4740.c b/sound/soc/codecs/jz4740.c index 16253ec9b022..f7cd346fd727 100644 --- a/sound/soc/codecs/jz4740.c +++ b/sound/soc/codecs/jz4740.c | |||
@@ -22,7 +22,6 @@ | |||
22 | #include <sound/pcm.h> | 22 | #include <sound/pcm.h> |
23 | #include <sound/pcm_params.h> | 23 | #include <sound/pcm_params.h> |
24 | #include <sound/initval.h> | 24 | #include <sound/initval.h> |
25 | #include <sound/soc-dapm.h> | ||
26 | #include <sound/soc.h> | 25 | #include <sound/soc.h> |
27 | 26 | ||
28 | #define JZ4740_REG_CODEC_1 0x0 | 27 | #define JZ4740_REG_CODEC_1 0x0 |
@@ -266,7 +265,7 @@ static int jz4740_codec_set_bias_level(struct snd_soc_codec *codec, | |||
266 | break; | 265 | break; |
267 | case SND_SOC_BIAS_STANDBY: | 266 | case SND_SOC_BIAS_STANDBY: |
268 | /* The only way to clear the suspend flag is to reset the codec */ | 267 | /* The only way to clear the suspend flag is to reset the codec */ |
269 | if (codec->bias_level == SND_SOC_BIAS_OFF) | 268 | if (codec->dapm.bias_level == SND_SOC_BIAS_OFF) |
270 | jz4740_codec_wakeup(codec); | 269 | jz4740_codec_wakeup(codec); |
271 | 270 | ||
272 | mask = JZ4740_CODEC_1_VREF_DISABLE | | 271 | mask = JZ4740_CODEC_1_VREF_DISABLE | |
@@ -288,23 +287,25 @@ static int jz4740_codec_set_bias_level(struct snd_soc_codec *codec, | |||
288 | break; | 287 | break; |
289 | } | 288 | } |
290 | 289 | ||
291 | codec->bias_level = level; | 290 | codec->dapm.bias_level = level; |
292 | 291 | ||
293 | return 0; | 292 | return 0; |
294 | } | 293 | } |
295 | 294 | ||
296 | static int jz4740_codec_dev_probe(struct snd_soc_codec *codec) | 295 | static int jz4740_codec_dev_probe(struct snd_soc_codec *codec) |
297 | { | 296 | { |
297 | struct snd_soc_dapm_context *dapm = &codec->dapm; | ||
298 | |||
298 | snd_soc_update_bits(codec, JZ4740_REG_CODEC_1, | 299 | snd_soc_update_bits(codec, JZ4740_REG_CODEC_1, |
299 | JZ4740_CODEC_1_SW2_ENABLE, JZ4740_CODEC_1_SW2_ENABLE); | 300 | JZ4740_CODEC_1_SW2_ENABLE, JZ4740_CODEC_1_SW2_ENABLE); |
300 | 301 | ||
301 | snd_soc_add_controls(codec, jz4740_codec_controls, | 302 | snd_soc_add_controls(codec, jz4740_codec_controls, |
302 | ARRAY_SIZE(jz4740_codec_controls)); | 303 | ARRAY_SIZE(jz4740_codec_controls)); |
303 | 304 | ||
304 | snd_soc_dapm_new_controls(codec, jz4740_codec_dapm_widgets, | 305 | snd_soc_dapm_new_controls(dapm, jz4740_codec_dapm_widgets, |
305 | ARRAY_SIZE(jz4740_codec_dapm_widgets)); | 306 | ARRAY_SIZE(jz4740_codec_dapm_widgets)); |
306 | 307 | ||
307 | snd_soc_dapm_add_routes(codec, jz4740_codec_dapm_routes, | 308 | snd_soc_dapm_add_routes(dapm, jz4740_codec_dapm_routes, |
308 | ARRAY_SIZE(jz4740_codec_dapm_routes)); | 309 | ARRAY_SIZE(jz4740_codec_dapm_routes)); |
309 | 310 | ||
310 | snd_soc_dapm_new_widgets(codec); | 311 | snd_soc_dapm_new_widgets(codec); |