add headphone pin sensing