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>