]> xenbits.xensource.com Git - people/aperard/linux-chromebook.git/commitdiff
CHROMIUM: ALSA: hda/ca0132: Set effect settings during initialization.
authorChih-Chung Chang <chihchung@chromium.org>
Tue, 27 Nov 2012 03:54:01 +0000 (11:54 +0800)
committerGerrit <chrome-bot@google.com>
Thu, 29 Nov 2012 05:35:45 +0000 (21:35 -0800)
We did not restore the effect settings after resume, so the hardware
used default values for them. This caused "Surround" to be turned on
after resume.

Now we always set the effect settings in ca0132_init(), so the settings
in hardware and in kernel are in sync.

This patch is provided by Creative.

BUG=chrome-os-partner:16197
TEST=check the output from headphone.

Signed-off-by: Chih-Chung Chang <chihchung@chromium.org>
Change-Id: Ida0977d2e50cf05e7a216de29df84ae356a3f45c
Reviewed-on: https://gerrit.chromium.org/gerrit/38719
Reviewed-by: Dylan Reid <dgreid@chromium.org>
Commit-Ready: Chih-Chung Chang <chihchung@google.com>
Tested-by: Chih-Chung Chang <chihchung@google.com>
sound/pci/hda/patch_ca0132.c

index 45fdbbda0f7dae697a87cf4a91e658fbcc9152f0..a503c9c06e55a074e3ea37f58d12ec947c7f30fc 100644 (file)
@@ -4486,6 +4486,8 @@ static int ca0132_init(struct hda_codec *codec)
        ca0132_download_dsp(codec);
        ca0132_refresh_widget_caps(codec);
        ca0132_setup_defaults(codec);
+       ca0132_pe_switch_set(codec);
+       ca0132_cvoice_switch_set(codec);
        ca0132_init_analog_mic2(codec);
        ca0132_init_dmic(codec);