diff options
author | Mark Brown <broonie@opensource.wolfsonmicro.com> | 2011-04-12 11:00:36 +0400 |
---|---|---|
committer | Mark Brown <broonie@opensource.wolfsonmicro.com> | 2011-04-13 21:02:06 +0400 |
commit | 68688e78ed4bc8d1a811ca29e2f8681561706db3 (patch) | |
tree | 1dabf09546d81a792b19e1b6b3874539afae06a2 /fs/jbd/commit.c | |
parent | ea3e98e75a6f38522450b66e22e34267977915ef (diff) | |
download | linux-68688e78ed4bc8d1a811ca29e2f8681561706db3.tar.xz |
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 <broonie@opensource.wolfsonmicro.com>
Acked-by: Jassi Brar <jassisinghbrar@gmail.com>
Acked-by: Liam Girdwood <lrg@ti.com>
Diffstat (limited to 'fs/jbd/commit.c')
0 files changed, 0 insertions, 0 deletions