ΣSigmaStudio Ask AI Русский Log in

ADAU1701: Automatic analog input detection

SigmaDSP & SigmaStudio Corvax Jan 12, 2022 00:00 3 replies Original on forum ↗
Subscribe
Corvax Question
Jan 12, 2022 00:00

Dear Team,

Is there a way to automatically switch input channel to analog input when "line in" mini jack is connected? And then switch it back to i2s when analog input is disconnected? If so, what is the best way to accomplish it?

Thank you!

Audio Signal Processors

analog input

SigmaDSP Audio Processors

adau1701

joe42 Reply
Jan 12, 2022 00:00

You can sense the jack connection using one of the GPIO pins and have your software switch inputs accordingly. I'm not sure how well that would work if the 1701 was a I2S slave though, unless you are confident an I2S clock was always present. In master mode it should work reliably.

ADIApproved Reply
Jan 12, 2022 00:00

Hello, you might consider using logic to switch between the inputs based on RMS level. You would use an Envelope Detector to determine whether signal is present on the mini jack, a comparator to check against a threshold, then a multiplexer to switch the signal path.

As joe42 mentioned, you will need to ensure the I2S block always receives a valid clock; either generated internally or from an input.

Corvax Reply
Jan 12, 2022 00:00

Thank you!