[Xperia SP Android Development] MrSteve555:
I see, but the issue is just weird. Technically both AOSPA-legacy and CM use the same audio-caf, so the flags should work perfectly.

There is no need to replace anything, as it works fine with that flag alone.

The safest bet would be 'make clean', but I just don't think you would forget to do that before build...

Btw, here's a logcat from loudspeaker call(just a proof that that flag does something, look at the alsa logs) :

09-04 19:39:56.520 W/PackageParser(21185): No actions in intent filter at /data/app/com.amazon.venezia-1.apk Binary XML file line #183
09-04 19:42:06.038 W/PackageParser(22256): No actions in intent filter at /data/app/com.amazon.venezia-1.apk Binary XML file line #183
09-04 20:32:20.471 W/PackageParser(29031): No actions in intent filter at /data/app/com.amazon.venezia-1.apk Binary XML file line #183
09-04 20:45:35.660 W/PackageParser(30902): No actions in intent filter at /data/app/com.amazon.venezia-1.apk Binary XML file line #183
09-04 20:47:04.144 W/PackageParser(31532): No actions in intent filter at /data/app/com.amazon.venezia-1.apk Binary XML file line #183
09-04 22:24:00.174 W/PackageParser(6874): No actions in intent filter at /data/app/com.amazon.venezia-1.apk Binary XML file line #183
09-04 22:24:10.355 I/Timeline(21844): Timeline: Activity_idle id: android.os.BinderProxy@4188bc70 time:14147866
09-04 22:24:10.525 I/Timeline(876): Timeline: Activity_windows_visible id: ActivityRecord{42193178 u0 com.google.android.googlequicksearchbox/com.google.android.launcher.GEL t30} time:14148030
09-04 22:24:23.038 I/Timeline(21844): Timeline: Activity_launch_request id:com.android.dialer time:14160550
09-04 22:24:24.059 I/Timeline(876): Timeline: Activity_windows_visible id: ActivityRecord{418a1100 u0 com.android.dialer/.DialtactsActivity t65} time:14161570
09-04 22:24:24.190 I/Timeline(7211): Timeline: Activity_idle id: android.os.BinderProxy@4188afc8 time:14161705
09-04 22:24:26.893 D/ALSADevice(453): switchDevice: mCurTxUCMDevivce Line mCurRxDevDevice Headphones
09-04 22:24:26.903 D/ALSADevice(453): switchDevice: mCurTxUCMDevivce Line mCurRxDevDevice Headphones
09-04 22:24:27.733 D/ALSADevice(453): switchDevice: mCurTxUCMDevivce Line mCurRxDevDevice Headphones
09-04 22:24:28.524 I/Timeline(7211): Timeline: Activity_launch_request id:com.android.phone time:14166032
09-04 22:24:28.815 I/Timeline(1224): Timeline: Activity_launch_request id:com.android.phone time:14166320
09-04 22:24:28.985 D/alsa_ucm(453): snd_use_case_set(): uc_mgr 0xb8f1c508 identifier _disdev value Line
09-04 22:24:28.985 D/alsa_ucm(453): disdev: device Line not enabled, no need to disable
09-04 22:24:29.555 I/Timeline(1224): Timeline: Activity_idle id: android.os.BinderProxy@41a12db0 time:14167062
09-04 22:24:29.555 I/Timeline(1224): Timeline: Activity_idle id: android.os.BinderProxy@41aecf30 time:14167064
09-04 22:24:29.565 I/Timeline(1268): Timeline: Activity_launch_request id:com.android.dialer time:14167079
09-04 22:24:30.526 I/Timeline(876): Timeline: Activity_windows_visible id: ActivityRecord{4211b4a0 u0 com.android.dialer/com.android.incallui.InCallActivity t67} time:14168040
09-04 22:24:30.566 I/Timeline(1268): Timeline: Activity_idle id: android.os.BinderProxy@418d15b0 time:14168088
09-04 22:24:34.451 D/alsa_ucm(453): snd_use_case_set(): uc_mgr 0xb8f1c508 identifier _enadev value Line
09-04 22:24:34.451 D/ALSADevice(453): switchDevice: mCurTxUCMDevivce Line mCurRxDevDevice Speaker
09-04 22:24:34.451 D/alsa_ucm(453): Setting mixer control: LINEOUT1 Volume, value: 100
09-04 22:24:34.451 D/alsa_ucm(453): Set mixer controls for Line enable 1
09-04 22:24:34.621 D/alsa_ucm(453): snd_use_case_set(): uc_mgr 0xb8f1c508 identifier _enadev value Line
09-04 22:24:34.621 D/ALSADevice(453): switchDevice: mCurTxUCMDevivce Line mCurRxDevDevice Speaker
09-04 22:24:37.634 D/alsa_ucm(453): Setting mixer control: LINEOUT1 Volume, value: 0
09-04 22:24:37.634 D/alsa_ucm(453): snd_use_case_set(): uc_mgr 0xb8f1c508 identifier _disdev value Line
09-04 22:24:37.634 D/alsa_ucm(453): Set mixer controls for Line enable 0
09-04 22:24:41.708 I/Timeline(7211): Timeline: Activity_idle id: android.os.BinderProxy@4188afc8 time:14179224
09-04 22:24:42.059 I/Timeline(876): Timeline: Activity_windows_visible id: ActivityRecord{418a1100 u0 com.android.dialer/.DialtactsActivity t65} time:14179579
09-04 22:24:45.142 I/Timeline(7900): Timeline: Activity_idle id: android.os.BinderProxy@43c998c0 time:14182650
09-04 22:24:45.352 I/Timeline(876): Timeline: Activity_windows_visible id: ActivityRecord{423a2800 u0 com.android.systemui/.recent.RecentsActivity t6} time:14182865
09-04 22:24:48.586 I/Timeline(21844): Timeline: Activity_idle id: android.os.BinderProxy@4188bc70 time:14186094
09-04 22:24:48.846 I/Timeline(876): Timeline: Activity_windows_visible id: ActivityRecord{42193178 u0 com.google.android.googlequicksearchbox/com.google.android.launcher.GEL t30} time:14186366
09-04 22:24:50.398 I/Timeline(21844): Timeline: Activity_launch_request id:com.nolanlawson.logcat time:14187918
09-04 22:24:51.028 I/Timeline(876): Timeline: Activity_windows_visible id: ActivityRecord{421b6d40 u0 com.nolanlawson.logcat/.LogcatActivity t68} time:14188541
09-04 22:24:51.148 I/Timeline(7419): Timeline: Activity_idle id: android.os.BinderProxy@4188b220 time:14188663
09-04 22:25:43.204 I/Timeline(7900): Timeline: Activity_idle id: android.os.BinderProxy@43c998c0 time:14240719
09-04 22:25:43.474 I/Timeline(876): Timeline: Activity_windows_visible id: ActivityRecord{423a2800 u0 com.android.systemui/.recent.RecentsActivity t6} time:14240981
09-04 22:25:44.535 I/Timeline(7211): Timeline: Activity_idle id: android.os.BinderProxy@4188afc8 time:14242040
09-04 22:25:44.786 I/Timeline(876): Timeline: Activity_windows_visible id: ActivityRecord{418a1100 u0 com.android.dialer/.DialtactsActivity t65} time:14242296
09-04 22:25:48.189 D/alsa_ucm(453): Setting mixer control: LINEOUT1 Volume, value: 100
09-04 22:25:49.471 I/Timeline(7211): Timeline: Activity_launch_request id:com.android.phone time:14246985
09-04 22:25:49.761 I/Timeline(1224): Timeline: Activity_idle id: android.os.BinderProxy@41a04ce8 time:14247273
09-04 22:25:49.811 I/Timeline(1224): Timeline: Activity_launch_request id:com.android.phone time:14247320
09-04 22:25:49.881 D/alsa_ucm(453): Setting mixer control: LINEOUT1 Volume, value: 0
09-04 22:25:50.221 I/Timeline(1268): Timeline: Activity_launch_request id:com.android.dialer time:14247737
09-04 22:25:50.722 I/Timeline(876): Timeline: Activity_windows_visible id: ActivityRecord{4231ed68 u0 com.android.dialer/com.android.incallui.InCallActivity t70} time:14248238
09-04 22:25:50.762 I/Timeline(1268): Timeline: Activity_idle id: android.os.BinderProxy@41a7e678 time:14248270
09-04 22:25:51.593 D/alsa_ucm(453): snd_use_case_set(): uc_mgr 0xb8f1c508 identifier _enadev value Line
09-04 22:25:51.593 D/ALSADevice(453): switchDevice: mCurTxUCMDevivce Line mCurRxDevDevice Speaker
09-04 22:25:51.593 D/alsa_ucm(453): Setting mixer control: LINEOUT1 Volume, value: 100
09-04 22:25:51.673 D/alsa_ucm(453): Set mixer controls for Line enable 1
09-04 22:25:51.723 D/alsa_ucm(453): snd_use_case_set(): uc_mgr 0xb8f1c508 identifier _enadev value Line
09-04 22:25:51.723 D/ALSADevice(453): switchDevice: mCurTxUCMDevivce Line mCurRxDevDevice Speaker
09-04 22:25:55.707 D/alsa_ucm(453): snd_use_case_set(): uc_mgr 0xb8f1c508 identifier _enadev value Line
09-04 22:25:55.707 D/ALSADevice(453): switchDevice: mCurTxUCMDevivce Line mCurRxDevDevice Speaker
09-04 22:25:56.028 D/alsa_ucm(453): snd_use_case_set(): uc_mgr 0xb8f1c508 identifier _disdev value Line
09-04 22:25:56.028 D/alsa_ucm(453): Set mixer controls for Line enable 0
09-04 22:25:56.028 D/ALSADevice(453): switchDevice: mCurTxUCMDevivce Line mCurRxDevDevice Speaker
09-04 22:25:56.188 D/alsa_ucm(453): Setting mixer control: LINEOUT1 Volume, value: 0
09-04 22:25:56.188 D/ALSADevice(453): switchDevice: mCurTxUCMDevivce Line mCurRxDevDevice Earpiece
09-04 22:25:56.298 D/ALSADevice(453): switchDevice: mCurTxUCMDevivce Line mCurRxDevDevice Earpiece
09-04 22:25:56.308 D/ALSADevice(453): switchDevice: mCurTxUCMDevivce Line mCurRxDevDevice Earpiece
09-04 22:25:56.318 D/ALSADevice(453): switchDevice: mCurTxUCMDevivce Line mCurRxDevDevice Earpiece
09-04 22:25:56.468 I/Timeline(7211): Timeline: Activity_idle id: android.os.BinderProxy@4188afc8 time:14253980
09-04 22:25:56.818 I/Timeline(876): Timeline: Activity_windows_visible id: ActivityRecord{418a1100 u0 com.android.dialer/.DialtactsActivity t65} time:14254335
09-04 22:25:59.051 D/alsa_ucm(453): snd_use_case_set(): uc_mgr 0xb8f1c508 identifier _disdev value Line
09-04 22:25:59.051 D/alsa_ucm(453): disdev: device Line not enabled, no need to disable
09-04 22:25:59.061 I/Timeline(7900): Timeline: Activity_idle id: android.os.BinderProxy@43c998c0 time:14256575
09-04 22:25:59.191 I/Timeline(876): Timeline: Activity_windows_visible id: ActivityRecord{423a2800 u0 com.android.systemui/.recent.RecentsActivity t6} time:14256709
09-04 22:25:59.832 I/Timeline(7419): Timeline: Activity_idle id: android.os.BinderProxy@4188b220 time:14257349
09-04 22:26:00.122 I/Timeline(876): Timeline: Activity_windows_visible id: ActivityRecord{421b6d40 u0 com.nolanlawson.logcat/.LogcatActivity t68} time:14257638
09-04 22:26:31.846 I/Timeline(21844): Timeline: Activity_idle id: android.os.BinderProxy@4188bc70 time:14289365
09-04 22:26:32.006 I/Timeline(876): Timeline: Activity_windows_visible id: ActivityRecord{42193178 u0 com.google.android.googlequicksearchbox/com.google.android.launcher.GEL t30} time:14289521
09-04 22:26:35.079 I/Timeline(21844): Timeline: Activity_launch_request id:com.android.soundrecorder time:14292599
09-04 22:26:35.840 I/Timeline(8345): Timeline: Activity_idle id: android.os.BinderProxy@4188c210 time:14293351
09-04 22:26:35.840 I/Timeline(876): Timeline: Activity_windows_visible id: ActivityRecord{422b6fe8 u0 com.android.soundrecorder/.SoundRecorder t71} time:14293357
09-04 22:26:37.802 W/PackageParser(8033): No actions in intent filter at /data/app/com.amazon.venezia-1.apk Binary XML file line #183
09-04 22:26:42.017 I/Timeline(21844): Timeline: Activity_idle id: android.os.BinderProxy@4188bc70 time:14299536
09-04 22:26:42.197 I/Timeline(876): Timeline: Activity_windows_visible id: ActivityRecord{42193178 u0 com.google.android.googlequicksearchbox/com.google.android.launcher.GEL t30} time:14299710
09-04 22:26:54.310 I/Timeline(21844): Timeline: Activity_launch_request id:com.amazon.venezia time:14311824
09-04 22:26:55.671 I/Timeline(876): Timeline: Activity_windows_visible id: ActivityRecord{4238afa8 u0 com.amazon.venezia/.Venezia t72} time:14313185
09-04 22:26:55.721 I/Timeline(8033): Timeline: Activity_idle id: android.os.BinderProxy@41f66768 time:14313230
09-04 22:27:09.096 I/Timeline(7900): Timeline: Activity_idle id: android.os.BinderProxy@43c998c0 time:14326605
09-04 22:27:09.296 I/Timeline(876): Timeline: Activity_windows_visible id: ActivityRecord{423a2800 u0 com.android.systemui/.recent.RecentsActivity t6} time:14326808
09-04 22:27:11.979 I/Timeline(7211): Timeline: Activity_idle id: android.os.BinderProxy@4188afc8 time:14329491
09-04 22:27:12.229 I/Timeline(876): Timeline: Activity_windows_visible id: ActivityRecord{418a1100 u0 com.android.dialer/.DialtactsActivity t65} time:14329743
09-04 22:27:17.214 D/ALSADevice(453): switchDevice: mCurTxUCMDevivce Line mCurRxDevDevice Speaker
09-04 22:27:17.234 D/ALSADevice(453): switchDevice: mCurTxUCMDevivce Line mCurRxDevDevice Speaker
09-04 22:27:17.234 D/alsa_ucm(453): Setting mixer control: LINEOUT1 Volume, value: 100
09-04 22:27:18.606 D/ALSADevice(453): switchDevice: mCurTxUCMDevivce Line mCurRxDevDevice Speaker
09-04 22:27:21.479 D/ALSADevice(453): switchDevice: mCurTxUCMDevivce Line mCurRxDevDevice Speaker
09-04 22:27:21.779 D/ALSADevice(453): switchDevice: mCurTxUCMDevivce Line mCurRxDevDevice Speaker
09-04 22:27:23.561 I/Timeline(7211): Timeline: Activity_launch_request id:com.android.phone time:14341072
09-04 22:27:23.831 I/Timeline(1224): Timeline: Activity_idle id: android.os.BinderProxy@41b19bd0 time:14341341
09-04 22:27:23.881 I/Timeline(1224): Timeline: Activity_launch_request id:com.android.phone time:14341395
09-04 22:27:24.002 D/alsa_ucm(453): Setting mixer control: LINEOUT1 Volume, value: 0
09-04 22:27:24.002 D/alsa_ucm(453): snd_use_case_set(): uc_mgr 0xb8f1c508 identifier _disdev value Line
09-04 22:27:24.002 D/alsa_ucm(453): disdev: device Line not enabled, no need to disable
09-04 22:27:24.372 I/Timeline(1268): Timeline: Activity_launch_request id:com.android.dialer time:14341883
09-04 22:27:24.842 I/Timeline(1268): Timeline: Activity_idle id: android.os.BinderProxy@418775e0 time:14342359
09-04 22:27:24.862 I/Timeline(876): Timeline: Activity_windows_visible id: ActivityRecord{42423450 u0 com.android.dialer/com.android.incallui.InCallActivity t74} time:14342375
09-04 22:27:33.772 D/alsa_ucm(453): snd_use_case_set(): uc_mgr 0xb8f1c508 identifier _enadev value Line
09-04 22:27:33.772 D/ALSADevice(453): switchDevice: mCurTxUCMDevivce Line mCurRxDevDevice Speaker
09-04 22:27:33.772 D/alsa_ucm(453): Setting mixer control: LINEOUT1 Volume, value: 100
09-04 22:27:33.772 D/alsa_ucm(453): Set mixer controls for Line enable 1
09-04 22:27:33.902 D/alsa_ucm(453): snd_use_case_set(): uc_mgr 0xb8f1c508 identifier _enadev value Line
09-04 22:27:33.902 D/ALSADevice(453): switchDevice: mCurTxUCMDevivce Line mCurRxDevDevice Speaker
09-04 22:27:40.849 D/alsa_ucm(453): snd_use_case_set(): uc_mgr 0xb8f1c508 identifier _enadev value Line
09-04 22:27:40.849 D/ALSADevice(453): switchDevice: mCurTxUCMDevivce Line mCurRxDevDevice Speaker
09-04 22:27:41.100 D/alsa_ucm(453): snd_use_case_set(): uc_mgr 0xb8f1c508 identifier _disdev value Line
09-04 22:27:41.100 D/alsa_ucm(453): Set mixer controls for Line enable 0
09-04 22:27:41.110 D/ALSADevice(453): switchDevice: mCurTxUCMDevivce Line mCurRxDevDevice Speaker
09-04 22:27:41.200 I/Timeline(7211): Timeline: Activity_idle id: android.os.BinderProxy@4188afc8 time:14358712
09-04 22:27:41.220 D/alsa_ucm(453): Setting mixer control: LINEOUT1 Volume, value: 0
09-04 22:27:41.220 D/ALSADevice(453): switchDevice: mCurTxUCMDevivce Line mCurRxDevDevice Earpiece
09-04 22:27:41.340 D/ALSADevice(453): switchDevice: mCurTxUCMDevivce Line mCurRxDevDevice Earpiece
09-04 22:27:41.350 D/ALSADevice(453): switchDevice: mCurTxUCMDevivce Line mCurRxDevDevice Earpiece
09-04 22:27:41.370 D/ALSADevice(453): switchDevice: mCurTxUCMDevivce Line mCurRxDevDevice Earpiece
09-04 22:27:41.560 I/Timeline(876): Timeline: Activity_windows_visible id: ActivityRecord{418a1100 u0 com.android.dialer/.DialtactsActivity t65} time:14359073
09-04 22:27:43.212 I/Timeline(7900): Timeline: Activity_idle id: android.os.BinderProxy@43c998c0 time:14360722
09-04 22:27:43.302 I/Timeline(876): Timeline: Activity_windows_visible id: ActivityRecord{423a2800 u0 com.android.systemui/.recent.RecentsActivity t6} time:14360810
09-04 22:27:44.193 D/alsa_ucm(453): snd_use_case_set(): uc_mgr 0xb8f1c508 identifier _disdev value Line
09-04 22:27:44.193 D/alsa_ucm(453): disdev: device Line not enabled, no need to disable
09-04 22:27:44.473 I/Timeline(7419): Timeline: Activity_idle id: android.os.BinderProxy@4188b220 time:14361983
09-04 22:27:44.634 I/Timeline(876): Timeline: Activity_windows_visible id: ActivityRecord{421b6d40 u0 com.nolanlawson.logcat/.LogcatActivity t68} time:14362145
[/HIDE]