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>
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);