hroark13/android_device_samsung_prevail — comment on commit a115bdc678d02a73e28804185706477fa1427a8f
File: libaudio/AudioHardware.cpp line 1421
By psyke83:

Try changing this to SND_DEVICE_SPEAKER to solve your speakerphone problem.