CHROMIUM: ALSA: hda/ca0132 - update latency when dsp effect changes
authorHsin-Yu Chao <hychao@chromium.org>
Fri, 12 Oct 2012 01:59:17 +0000 (09:59 +0800)
committerGerrit <chrome-bot@google.com>
Tue, 16 Oct 2012 03:51:24 +0000 (20:51 -0700)
commit834be9c0895a39a750ca11e37e663f162f005150
treeca5b42df5f4dce68cb747cb1b3d70cc76483c5f7
parentdd9ade62d781cc69fbd690beab536220b647653d
CHROMIUM: ALSA: hda/ca0132 - update latency when dsp effect changes

Before this change, latency value is determined at the
time when a stream was created. Now the latency value gets
updated in ca0132_effects_set() when effects setting has
changed.

BUG=chrome-os-partner:12926
TEST=Manual run looptest tool with debug log to monitor capture &
playback latency value. Can see both latency value changes in realtime
according to 'CrystalVoice' and 'Playback Enhancement' toggles.

Change-Id: I7607368c40599c592dba1edc8e9fbb0cc5937223
Signed-off-by: Hsin-Yu Chao <hychao@chromium.org>
Reviewed-on: https://gerrit.chromium.org/gerrit/35566
Reviewed-by: Dylan Reid <dgreid@chromium.org>
sound/pci/hda/patch_ca0132.c