This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

MIC detect, MIC bias detecting for AIC3106 through linux driver

I need to do following things for AIC3106 on custom board with sitara am335x

- setup MIC BIAS level

- detect microphone/headset

- provide volume control

Because of i2c conflicts I should do all tasks through alsa mixer. How could I do it? I found some notes about mic/headset detection in sources but it's unclear. 

Jack detection needs a mic bias so machine drivers can construct a following
route for instance for keeping the path and codec bias on:

"Input Jack" -> "Mic Bias xV" -> "Detection" -> detection block inside codec.

from here http://mailman.alsa-project.org/pipermail/alsa-devel/2010-September/031739.html 

#define AIC_HEADSET_DETECT_XXXX from tlv320aic3x.h

SND_SOC_DAPM_OUTPUT("Detection") in tlv320aic3x.c