Default Speakerphone issue

Currently having a issue with my wife's HTC one when answering all calls speakerphone automatically turns on master reset done works for a awhile then reverts anyone experience this ?

Sent from my Nexus 5 using xda app-developers app