[Galaxy Tab 2 7" Android Development] Tsjoklat:
I have gone through the following six configuration files (audio_effects.conf, audio_policy.conf, gps.xml, media_codecs.xml, media_profiles.xml, wpa_supplicant.conf) in your patch and have found the following:

1) audio_effects.conf

The file in your patch is not synced with the the latest version in cm 11. The following patch needs to be applied to your version.

--- audio_effects.conf.orig	2014-08-02 23:10:27.302534943 +0200
+++ audio_effects.conf	2014-08-02 23:05:46.830535162 +0200
@@ -6,6 +6,23 @@
# }
# }
libraries {
+# This is a proxy library that will be an abstraction for
+# the HW and SW effects
+
+ #proxy {
+ #path /system/lib/soundfx/libeffectproxy.so
+ #}
+
+# This is the SW implementation library of the effect
+ #libSW {
+ #path /system/lib/soundfx/libswwrapper.so
+ #}
+
+# This is the HW implementation library for the effect
+ #libHW {
+ #path /system/lib/soundfx/libhwwrapper.so
+ #}
+
bundle {
path /system/lib/soundfx/libbundlewrapper.so
}
@@ -18,6 +35,9 @@
downmix {
path /system/lib/soundfx/libdownmix.so
}
+ loudness_enhancer {
+ path /system/lib/soundfx/libldnhncr.so
+ }
}

# Default pre-processing library. Add to audio_effect.conf "libraries" section if
@@ -43,6 +63,28 @@
# }

effects {
+
+# additions for the proxy implementation
+# Proxy implementation
+ #effectname {
+ #library proxy
+ #uuid xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx
+
+ # SW implemetation of the effect. Added as a node under the proxy to
+ # indicate this as a sub effect.
+ #libsw {
+ #library libSW
+ #uuid yyyyyyyy-yyyy-yyyy-yyyy-yyyyyyyyyyyy
+ #} End of SW effect
+
+ # HW implementation of the effect. Added as a node under the proxy to
+ # indicate this as a sub effect.
+ #libhw {
+ #library libHW
+ #uuid zzzzzzzz-zzzz-zzzz-zzzz-zzzzzzzzzzzz
+ #}End of HW effect
+ #} End of effect proxy
+
bassboost {
library bundle
uuid 8631f300-72e2-11df-b57e-0002a5d5c51b
@@ -83,6 +125,10 @@
library downmix
uuid 93f04452-e4fe-41cc-91f9-e475b6d1d69f
}
+ loudness_enhancer {
+ library loudness_enhancer
+ uuid fa415329-2034-4bea-b5dc-5b381c8d1e2c
+ }
}

# Default pre-processing effects. Add to audio_effect.conf "effects" section if

Notice that "loudness enhancer" is missing from your patched version. It was not necessary to update this file because the version in cm 11 already contains your changes plus additional changes not found in your version.

2) android_policy.conf

I have merged the changes you made into the latest version of android_policy.conf, but, your version is missing an end bracket in the main function. I have also cleaned up the spacing and removed the tabs. Also ,the "hdmi" function doesnt need to be commented out, so I put it back to its original state.

--- audio_policy_new-3d80b9b5a96e3c448a6f83a43b5a409a55395610.conf	2014-07-29 21:36:46.000000000 +0200
+++ etc/audio_policy.conf	2014-08-03 00:03:26.430532466 +0200
@@ -36,13 +36,13 @@
devices AUDIO_DEVICE_OUT_SPEAKER|AUDIO_DEVICE_OUT_WIRED_HEADSET|AUDIO_DEVICE_OUT_WIRED_HEADPHONE
flags AUDIO_OUTPUT_FLAG_DEEP_BUFFER
}
-# hdmi {
-# sampling_rates 44100|48000
-# channel_masks dynamic
-# formats AUDIO_FORMAT_PCM_16_BIT
-# devices AUDIO_DEVICE_OUT_AUX_DIGITAL|AUDIO_DEVICE_OUT_DGTL_DOCK_HEADSET
-# flags AUDIO_OUTPUT_FLAG_MULTI_CH
-# }
+ hdmi {
+ sampling_rates 44100|48000
+ channel_masks dynamic
+ formats AUDIO_FORMAT_PCM_16_BIT
+ devices AUDIO_DEVICE_OUT_AUX_DIGITAL|AUDIO_DEVICE_OUT_DGTL_DOCK_HEADSET
+ flags AUDIO_OUTPUT_FLAG_MULTI_CH
+ }
}
inputs {
primary {
@@ -50,7 +50,7 @@
channel_masks AUDIO_CHANNEL_IN_MONO|AUDIO_CHANNEL_IN_STEREO
formats AUDIO_FORMAT_PCM_16_BIT
devices AUDIO_DEVICE_IN_BUILTIN_MIC|AUDIO_DEVICE_IN_BLUETOOTH_SCO_HEADSET|AUDIO_DEVICE_IN_WIRED_HEADSET|AUDIO_DEVICE_IN_BACK_MIC|AUDIO_DEVICE_IN_FM|AUDIO_DEVICE_IN_VOICE_CALL
- }
+ }
}
}
a2dp {
@@ -81,30 +81,31 @@
}
wfd {
outputs {
- wfd{
+ wfd {
sampling_rates 48000
channel_masks AUDIO_CHANNEL_OUT_STEREO
formats AUDIO_FORMAT_PCM_16_BIT
devices AUDIO_DEVICE_OUT_EXTERNAL_WIFI
flags AUDIO_OUTPUT_FLAG_WFD
- }
+ }
}
}
tms {
outputs {
- tms{
+ tms {
sampling_rates 44100
channel_masks AUDIO_CHANNEL_OUT_STEREO
formats AUDIO_FORMAT_PCM_16_BIT
devices AUDIO_DEVICE_OUT_EXTERNAL_TMS
- }
+ }
}
- inputs {
- tms{
+ inputs {
+ tms {
sampling_rates 44100
channel_masks AUDIO_CHANNEL_IN_MONO|AUDIO_CHANNEL_IN_STEREO
formats AUDIO_FORMAT_PCM_16_BIT
devices AUDIO_DEVICE_IN_EXTERNAL_TMS
- }
+ }
}
+ }
}

3) gps.xml

I have made the following changes to gps.xml using your version to merge from. It seems that acNvStoDir should be set to /data/gps and LbsSyncLtoThresholdDays should be set to 3 days.

--- gps.xml.orig	2014-08-02 23:48:20.546533172 +0200
+++ gps.xml	2014-08-02 23:29:50.334534037 +0200
@@ -7,7 +7,7 @@
gpioNStdbyPath="/sys/class/sec/gps/GPS_PWR_EN/value"
gpioNResetPath="/sys/class/sec/gps/GPS_nRST/value"
gpioDelayMs="250"
- acNvStoDir="/data/"
+ acNvStoDir="/data/gps/"
FactoryTestFilePath="/data/"

acLogDirectory="/sdcard/gps/broadcom/"
@@ -40,7 +40,7 @@
SyncLto="true"
ltoFileName="lto2.dat"
acLtoDir="/data/gps/"
- LbsSyncLtoThresholdDays="1"
+ LbsSyncLtoThresholdDays="3"
LbsTAC="10101222"
LbsWlanEnable="false"

@@ -49,6 +49,9 @@
SensorsEnable="false"
SensorsPowerSave="false"
SensorsLog="false"
+
+ AssertEnabled="false"
+ SensorsBaroEnable="false"
/>

<gll

The complete diff for all my changes to these configuration files is attached below. Also, I have attached a flashable zip file to apply these changes using clockworkmod.

Note: This patch should fix the wired headphones.