daisy: Turn off speaker switch when headphone is enabled

Speaker should be switched off when headphone is enabled.
Otherwise, when CRAS starts with headphone plugged, and headphone is
enumerated as the first node, speaker switch will still remain on, and
cause sound to be played to speaker and headphone at the same time.

BUG=chromium:726175
TEST=Boot with headphone plugged. Check audio does not play to speaker.

Change-Id: Ifcae91342ae1a227a36c61f285b8fee36ffc7e88
Signed-off-by: Cheng-Yi Chiang <cychiang@chromium.org>
Reviewed-on: https://chromium-review.googlesource.com/516325
Reviewed-by: Hsinyu Chao <hychao@chromium.org>
Reviewed-by: Dylan Reid <dgreid@chromium.org>
1 file changed