CHROMIUM: ALSA: ASoC: Get snow hp/mic detect GPIOs from device tree.
authorDylan Reid <dgreid@chromium.org>
Wed, 8 Aug 2012 17:42:24 +0000 (10:42 -0700)
committerGerrit <chrome-bot@google.com>
Thu, 9 Aug 2012 17:54:19 +0000 (10:54 -0700)
commit90828b578c00398335fb8d230c3dc9902ca5ad33
treecda67befa23fad04d1887e8d5fc6cfc7d570e3f4
parentcbb3e271d78df197e2f167e88e9a710948cdabdd
CHROMIUM: ALSA: ASoC: Get snow hp/mic detect GPIOs from device tree.

Get the GPIOs used for hp and mic detect from the device tree.  Getting
them from device tree allows for the pull up/pull down to be properly
configured (it is disabled) and for mic detect to be inverted.

BUG=chrome-os-partner:10849
TEST=aplay/arecord on snow work.  evtest shows events for hp and mic
detection.

Signed-off-by: Dylan Reid <dgreid@chromium.org>
Change-Id: I93d994a2ec5c22683c6eb5fd502f6a54c8e8d964
Reviewed-on: https://gerrit.chromium.org/gerrit/29626
Reviewed-by: Olof Johansson <olofj@chromium.org>
Tested-by: Dylan Reid <dgreid@chromium.org>
Commit-Ready: Dylan Reid <dgreid@chromium.org>
sound/soc/samsung/daisy_max98095.c