CHROMIUM: ALSA: hda/ca0132: Stop streaming when turning on/off Crystal Voice.
authorChih-Chung Chang <chihchung@chromium.org>
Tue, 23 Oct 2012 03:57:00 +0000 (11:57 +0800)
committerGerrit <chrome-bot@google.com>
Tue, 23 Oct 2012 06:05:02 +0000 (23:05 -0700)
commitfd99dacaf1506ef4f021d0a79ccb2b8c7da08261
tree942326feb13797d2d9c0460cd64317f02a08e97d
parent240903f2a2c1d6fefdfbcf358b04cba77a9e1a88
CHROMIUM: ALSA: hda/ca0132: Stop streaming when turning on/off Crystal Voice.

Similar to the previous fix for switching between microphones, if an
active recording stream is running, it has to be stopped before turning
on/off Crystal Voice, otherwise the parameters won't be applied correctly.

The patch is provided by Creative.

BUG=chrome-os-partner:14920
TEST=use "arecord -f cd -B 10000 -d 20 1.wav"
to record audio, and plug/unplug headphone while recording.

Signed-off-by: Chih-Chung Chang <chihchung@chromium.org>
Change-Id: Ic9296b07942cfaeb66c58cc1024dd20bf924a231
Reviewed-on: https://gerrit.chromium.org/gerrit/36314
Reviewed-by: Dylan Reid <dgreid@chromium.org>
sound/pci/hda/patch_ca0132.c