Revert "Audio: Support audio dock."

This reverts commit 03729278e30ff974263c93e6df8bfb6a33fbef20.
diff --git a/audio/audio_hw.c b/audio/audio_hw.c
index 7018e6a..cf03673 100644
--- a/audio/audio_hw.c
+++ b/audio/audio_hw.c
@@ -22,9 +22,6 @@
 #include <stdint.h>
 #include <stdlib.h>
 #include <sys/time.h>
-#include <sys/types.h>
-#include <sys/stat.h>
-#include <fcntl.h>
 
 #include <cutils/log.h>
 #include <cutils/properties.h>
@@ -62,7 +59,6 @@
 #define MIN_WRITE_SLEEP_US 2000
 #define MAX_WRITE_SLEEP_US ((OUT_PERIOD_SIZE * OUT_SHORT_PERIOD_COUNT * 1000000) \
                                 / OUT_SAMPLING_RATE)
-#define DOCK_IN_STATUS_PATH "/sys/bus/i2c/devices/4-001c/dock_status"
 
 enum {
     OUT_BUFFER_TYPE_UNKNOWN,
@@ -168,7 +164,6 @@
                                    struct resampler_buffer* buffer);
 static void release_buffer(struct resampler_buffer_provider *buffer_provider,
                                   struct resampler_buffer* buffer);
-static bool is_dock_in(void);
 
 /*
  * NOTE: when multiple mutexes have to be acquired, always take the
@@ -191,10 +186,8 @@
 
     reset_mixer_state(adev->ar);
 
-    if (speaker_on && !is_dock_in())
+    if (speaker_on)
         audio_route_apply_path(adev->ar, "speaker");
-    else
-        audio_route_apply_path(adev->ar, "dock");
     if (headphone_on)
         audio_route_apply_path(adev->ar, "headphone");
     if (main_mic_on) {
@@ -453,42 +446,6 @@
     in->frames_in -= buffer->frame_count;
 }
 
-static bool is_dock_in(void)
-{
-    int fd = -1;
-    int ret = 0;
-    static char buf[16];
-
-    memset(buf, 0, sizeof(buf));
-
-    fd = open(DOCK_IN_STATUS_PATH, O_RDONLY);
-
-    if(fd < 0){
-        ALOGE("open dock state file fail");
-        goto exit_file_fail;
-    }
-    else
-        ret = read(fd, buf, sizeof(buf));
-
-    if(ret < 0){
-        ALOGE("read dock state fail");
-    }
-    else
-        strcpy(strchr(buf,'\n'), "");
-
-    if(!strcmp(buf,"1")){
-        ALOGD("dock in");
-        return true;
-    }
-    else{
-        ALOGD("no dock");
-        return false;
-    }
-
-exit_file_fail:
-    return false;
-}
-
 /* read_frames() reads frames from kernel driver, down samples to capture rate
  * if necessary and output the number of frames requested to the buffer specified */
 static ssize_t read_frames(struct stream_in *in, void *buffer, ssize_t frames)
diff --git a/mixer_paths.xml b/mixer_paths.xml
index bbe0e8c..7ce9ff2 100644
--- a/mixer_paths.xml
+++ b/mixer_paths.xml
@@ -3,11 +3,9 @@
   <ctl name="Speaker Playback Switch" value="0" />
   <ctl name="Int Spk Switch" value="0" />
   <ctl name="HP Playback Switch" value="0" />
-  <ctl name="OUT Playback Switch" value="0" />
   <ctl name="Headphone Jack Switch" value="0" />
   <ctl name="Int Mic Switch" value="0" />
   <ctl name="Mic Jack Switch" value="0" />
-  <ctl name="AUX Switch" value="0" />
   <ctl name="DMIC Switch" value="Disable" />
   <ctl name="ADC Capture Volume" value="119" />
 
@@ -25,11 +23,6 @@
     <ctl name="DAC IF1 SWITCH" value="Normal" />
   </path>
 
-  <path name="dock">
-    <ctl name="AUX Switch" value="1" />
-     <ctl name="OUT Playback Switch" value="1" />
-  </path>
-
   <path name="main-mic-top">
     <ctl name="Int Mic Switch" value="1" />
     <ctl name="DMIC Switch" value="DMIC1" />