I have the same problem: no sound through earpiece when incoming call was received.
if switch on/switch off speaker - earpiece activates.
MI 4 WCDMA 16GB / MIUI 6.1.21 by xiaomi.eu / Russian language
You found the solution of this problem?
sorry for my english.