I am designing a handheld device that has an I2S DAC, small speakers, amplifiers (~2 watts), and an earphone jack. I'd love advice on the best way to hook these together. My goal is high quality audio for a broad number of configurations, including different types of earphones, without going nuts on complexity and cost.
Options I have explored:
Have the DAC output to an earphone jack with internal switches, when the earphones are present audio plays through them directly, otherwise the signal passes through the earphone jack switches to the amplifiers and then speakers. This is what I've been using so far. It works, but is it really okay to drive earphones from the DAC output directly? The speaker amps are always active which is wasteful and pick up some noise. Also potentially noisy during insertion.
The DAC feeds the amps directly, which connect to the earphones, or the speakers if earphones are not plugged in. Am I going to blow the earphones (or the user's eardrums) this way, or are earphones high enough impedance that the power delivered to them will be low? Will the brief shorting that occurs during insertion kill the amps? (I guess that depends on the amp)
Implement insertion detection (I've seen a few ways to do this with some pros and cons) and route audio to either the speaker amplifier, or the earphones (with or without their own amplifier). Would I need to switch the signal, or would it be okay to route the signal to both in parallel and simply disable the speaker amps when earphone insertion is detected?
Is there an integrated solution that can do this for me?