Detection of Earphone