diff options
author | Linus Torvalds <torvalds@linux-foundation.org> | 2010-10-25 11:32:05 -0400 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2010-10-25 11:32:05 -0400 |
commit | 33081adf8b89d5a716d7e1c60171768d39795b39 (patch) | |
tree | 275de58bbbb5f7ddffcdc087844cfc7fbe4315be /arch/arm/mach-omap2/board-zoom-peripherals.c | |
parent | c55960499f810357a29659b32d6ea594abee9237 (diff) | |
parent | 506ecbca71d07fa327dd986be1682e90885678ee (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: (365 commits)
ALSA: hda - Disable sticky PCM stream assignment for AD codecs
ALSA: usb - Creative USB X-Fi volume knob support
ALSA: ca0106: Use card specific dac id for mute controls.
ALSA: ca0106: Allow different sound cards to use different SPI channel mappings.
ALSA: ca0106: Create a nice spot for mapping channels to dacs.
ALSA: ca0106: Move enabling of front dac out of hardcoded setup sequence.
ALSA: ca0106: Pull out dac powering routine into separate function.
ALSA: ca0106 - add Sound Blaster 5.1vx info.
ASoC: tlv320dac33: Use usleep_range for delays
ALSA: usb-audio: add Novation Launchpad support
ALSA: hda - Add workarounds for CT-IBG controllers
ALSA: hda - Fix wrong TLV mute bit for STAC/IDT codecs
ASoC: tpa6130a2: Error handling for broken chip
ASoC: max98088: Staticise m98088_eq_band
ASoC: soc-core: Fix codec->name memory leak
ALSA: hda - Apply ideapad quirk to Acer laptops with Cxt5066
ALSA: hda - Add some workarounds for Creative IBG
ALSA: hda - Fix wrong SPDIF NID assignment for CA0110
ALSA: hda - Fix codec rename rules for ALC662-compatible codecs
ALSA: hda - Add alc_init_jacks() call to other codecs
...
Diffstat (limited to 'arch/arm/mach-omap2/board-zoom-peripherals.c')
-rw-r--r-- | arch/arm/mach-omap2/board-zoom-peripherals.c | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/arch/arm/mach-omap2/board-zoom-peripherals.c b/arch/arm/mach-omap2/board-zoom-peripherals.c index 189a6d1600b2..bc8232845d7a 100644 --- a/arch/arm/mach-omap2/board-zoom-peripherals.c +++ b/arch/arm/mach-omap2/board-zoom-peripherals.c | |||
@@ -26,6 +26,8 @@ | |||
26 | #include <plat/common.h> | 26 | #include <plat/common.h> |
27 | #include <plat/usb.h> | 27 | #include <plat/usb.h> |
28 | 28 | ||
29 | #include <mach/board-zoom.h> | ||
30 | |||
29 | #include "mux.h" | 31 | #include "mux.h" |
30 | #include "hsmmc.h" | 32 | #include "hsmmc.h" |
31 | 33 | ||
@@ -238,6 +240,11 @@ static int zoom_twl_gpio_setup(struct device *dev, | |||
238 | return 0; | 240 | return 0; |
239 | } | 241 | } |
240 | 242 | ||
243 | /* EXTMUTE callback function */ | ||
244 | void zoom2_set_hs_extmute(int mute) | ||
245 | { | ||
246 | gpio_set_value(ZOOM2_HEADSET_EXTMUTE_GPIO, mute); | ||
247 | } | ||
241 | 248 | ||
242 | static int zoom_batt_table[] = { | 249 | static int zoom_batt_table[] = { |
243 | /* 0 C*/ | 250 | /* 0 C*/ |
@@ -307,6 +314,11 @@ static struct i2c_board_info __initdata zoom_i2c_boardinfo[] = { | |||
307 | 314 | ||
308 | static int __init omap_i2c_init(void) | 315 | static int __init omap_i2c_init(void) |
309 | { | 316 | { |
317 | if (machine_is_omap_zoom2()) { | ||
318 | zoom_audio_data.ramp_delay_value = 3; /* 161 ms */ | ||
319 | zoom_audio_data.hs_extmute = 1; | ||
320 | zoom_audio_data.set_hs_extmute = zoom2_set_hs_extmute; | ||
321 | } | ||
310 | omap_register_i2c_bus(1, 2400, zoom_i2c_boardinfo, | 322 | omap_register_i2c_bus(1, 2400, zoom_i2c_boardinfo, |
311 | ARRAY_SIZE(zoom_i2c_boardinfo)); | 323 | ARRAY_SIZE(zoom_i2c_boardinfo)); |
312 | omap_register_i2c_bus(2, 400, NULL, 0); | 324 | omap_register_i2c_bus(2, 400, NULL, 0); |