From dbaf5858c22315a61fc4cd9c02fe5c1a55295231 Mon Sep 17 00:00:00 2001 From: supercurio Date: Wed, 23 Nov 2011 22:26:41 +0100 Subject: Voodoo sound: update to driver v5 - New speaker tuning mode for music using different hardware EQ settings than stock ones - Microphone presets now supported on Nexus S. - Microphone presets balanced and loud reworked with lower background noise and higher dynamic range for balanced: -2dB noise, +6dB dynamic range. - New DAC direct option: reduces distortion and improves SNR by a small margin (bypass usless analog channel mixer) - Anti-jitter mode on by default. - Same exact source is now used on each device supported (still: only useful code is compiled in via ifdefs) - ability to fully disable/re-enable the driver and its sysfs interface: 0 or 1 in /sys/class/misc/voodoo_sound_control/enable - refactored source code --- sound/soc/codecs/wm8994_herring.c | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'sound/soc/codecs/wm8994_herring.c') diff --git a/sound/soc/codecs/wm8994_herring.c b/sound/soc/codecs/wm8994_herring.c index c5bbdf2..28e2320 100755 --- a/sound/soc/codecs/wm8994_herring.c +++ b/sound/soc/codecs/wm8994_herring.c @@ -21,7 +21,9 @@ #include #include "wm8994_samsung.h" #include "../../../arch/arm/mach-s5pv210/herring.h" +#ifdef CONFIG_SND_VOODOO #include "wm8994_voodoo.h" +#endif /* * Debug Feature @@ -2168,6 +2170,10 @@ void wm8994_set_playback_speaker(struct snd_soc_codec *codec) val |= WM8994_AIF1DAC1L_TO_DAC1L; wm8994_write(codec, WM8994_DAC1_LEFT_MIXER_ROUTING, val); +#ifdef CONFIG_SND_VOODOO + voodoo_hook_playback_speaker(); +#endif + /* Enbale bias,vmid and Left speaker */ val = wm8994_read(codec, WM8994_POWER_MANAGEMENT_1); val &= ~(WM8994_BIAS_ENA_MASK | WM8994_VMID_SEL_MASK | -- cgit v1.1