diff options
author | jive_hwang <jive_hwang@asus.com> | 2012-05-23 11:49:53 -0700 |
---|---|---|
committer | Ramanan Rajeswaran <ramanan@google.com> | 2012-05-23 12:14:41 -0700 |
commit | 8dd2eab82ac83ffbc1936b7b7d5a8971ce2ad74b (patch) | |
tree | cb75ecc3d1122602836dfe868ebe344a7307d80d | |
parent | f7dbb676e5f4a2019fcbe8ba3a0eb3d85ed2f979 (diff) | |
download | tegra-android-tegra3-grouper-3.1-jb-fr1.tar.gz |
Audio: Disable UART debug cable detection to support active headphone devicesandroid-tegra3-grouper-3.1-jb-fr1
Since active headphone devices could be mis-detected as UART debug cable,
we disable UART debug cable detection by default to workaround the limitation.
All insertion will be treated as headphone.
bug#:6516983
Change-Id: I504d4f76beb1277cc4db5ebf4abec89fccc383a8
-rw-r--r-- | sound/soc/tegra/headset.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sound/soc/tegra/headset.c b/sound/soc/tegra/headset.c index aec51049d3d5..2b083c6a5a2b 100644 --- a/sound/soc/tegra/headset.c +++ b/sound/soc/tegra/headset.c @@ -45,6 +45,7 @@ MODULE_DESCRIPTION("Headset detection driver"); MODULE_LICENSE("GPL"); +#define UART_DETECTION (false) #define DEFAULT_PINMUX(_pingroup, _mux, _pupd, _tri, _io) \ { \ @@ -196,8 +197,7 @@ static void disable_uart(void) } static void insert_headset(void) { - - if(gpio_get_value(LINEOUT_GPIO) == 0 && revision != GROUPER_PCBA_SR3){ + if(gpio_get_value(LINEOUT_GPIO) == 0 && revision != GROUPER_PCBA_SR3 && UART_DETECTION){ printk("%s: debug board\n", __func__); switch_set_state(&hs_data->sdev, NO_DEVICE); hs_micbias_power(OFF); |