how to check that earphone port is working or not in mac code example Example: headphone jack not working in macbook pro sudo pkill coreaudiod