Support checking for headphones

This checks the active port's jack, to see if it's 'available'. Not all devices
support that, which will return PA_PORT_AVAILABLE_UNKNOWN. Those are masked as
not having headphones plugged in.