From: Mark Brown Date: Tue, 12 Apr 2011 07:00:36 +0000 (-0700) Subject: ASoC: Add Speyside headset jack detection support X-Git-Tag: v3.0-rc1~347^2~1^2~79 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=68688e78ed4bc8d1a811ca29e2f8681561706db3;p=pandora-kernel.git ASoC: Add Speyside headset jack detection support Speyside makes use of support the WM8915 has for detecting the polarity of the microphone and ground connections on headsets, using a GPIO to control the polarity of the ground connection and switching between the two microphone bias supplies available on the device in order to do so. As a result of this the detection support is more involved than for most other CODECs, using a callback to configure the current polarity of the jack and translate this into the board-specific connections required for the current scenario. On Android some additional work is required to hook this up to the application layer as the Android HeadsetObserver monitors a custom drivers/switch API rather than the standard Linux APIs. This can be done by either updating HeadsetObserver or modifying the ALSA core to report via drivers/switch as well. Signed-off-by: Mark Brown Acked-by: Jassi Brar Acked-by: Liam Girdwood --- Reading git-diff-tree failed