Although various hardware problems with the speakerphone appear from time to time in smartphones, the current problem is related to Google Chrome.
You can simply confirm this bug:
1. Kill Chrome (in settings / apps).
2. Open Chrome.
3. Press Home button.
4. Call somewhere. Is speakerphone on?
5...