CHROMIUM: ALSA: hda/ca0132: Stop streaming when switching between dmic/amic1.
authorChih-Chung Chang <chihchung@chromium.org>
Tue, 9 Oct 2012 08:49:51 +0000 (16:49 +0800)
committerGerrit <chrome-bot@google.com>
Tue, 9 Oct 2012 18:33:21 +0000 (11:33 -0700)
commit2a38dbf365d3e8ec6a5cdc2cac1266a9878fe798
tree4025824c1d35b34b3817047ecb3dc7feaa95fb53
parentd45846610edfcaefd59a4e0d0084c0fe853d2a3d
CHROMIUM: ALSA: hda/ca0132: Stop streaming when switching between dmic/amic1.

When switching between microphones, if an active recording stream is
running, it has to be stopped before the switching, 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.

Change-Id: I7cb94d4391e3e1525955c70a55c999458f62be30
Signed-off-by: Chih-Chung Chang <chihchung@chromium.org>
Reviewed-on: https://gerrit.chromium.org/gerrit/34993
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