I'v had this problem with iPhone 6 (ghosted loudspeaker button) and replacing the AUDIO (codec) IC solved it.
open