Hi,
I don't understand how to switch the Mic Bias voltage level. Below I pasted the link to the driver.
There is not control in ALSA that enables me to choose the voltage level.
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.
Hi,
I don't understand how to switch the Mic Bias voltage level. Below I pasted the link to the driver.
There is not control in ALSA that enables me to choose the voltage level.
He,
That would be the case if you are not using Linux and the driver.
The driver keeps the I2C bus busy so you can't communicate over the bus with i2c command.
I have to use the amixer controls (ALSA), but there is not control for the MICBIAS
The MICBIAS code is below in tlv320aic31xx.c file:
fwnode_property_read_u32(aic31xx->dev->fwnode, "ai31xx-micbias-vg", &micbias_value); switch (micbias_value) { case MICBIAS_2_0V: case MICBIAS_2_5V: case MICBIAS_AVDDV: aic31xx->micbias_vg = micbias_value; break;
Hi Luc,it's a command sample for your reference.
i2cset -y -f 2 0x4c 0x11 0x00
It means to set I2C bus 2 at device 0x4C address and register 0x11 to 0x00
if you want to run 2 command at the same time,you can use:
i2cset -y -f 2 0x4c 0x11 0x00 & i2cget -y -f 2 0x4c 0x19
It means to set I2C bus 2 at device 0x4C address and register 0x11 to 0x00,and gets I2C bus 2 at device 0x4C address and register 0x19 at the same time.
"&" is the key word to run 2 command.
Hi Raphael,
This is indeed how to do it without a Linux driver.
The Linux ALSA prevents us from writing commands like i2cset or i2cget.
Instead we have to use: amixer cset name="name in driver"
These names are in the driver for example: amixer cset name="HP DAC Playback Volume"
The combination of the .c and the .h expains the register control.
Unfortunately these is no name to change the MICBIAS as far as I can see.
Hi Luc,
You can add code in function hw_params to set MICBIAS.
Hi Peter,
Can you share the MICBIAS registers address and value?
MICBIAS is at page 0 register 25 and I believe Luc needs to set the value for the different input.
Hi Luc,
Let us know if the suggestion above by Raphael works for you.