mirror of
https://github.com/torvalds/linux.git
synced 2024-12-30 14:52:05 +00:00
e2e8bfdf61
Convert MicBias widgets to supply widget. On tlv320aic3x, Mic bias power on/off shares the same register bits with output mic bias voltage. So, when power on mic bias, we need reclaim it to voltage value. Provide a new platform data so that the micbias voltage can be sent according to board requirement. Now since tlv320aic3x codec driver is DT aware, update dt files and functions to handle this new "micbias-vg" platform data. Because of sharing of bits, when enabling the micbias, voltage also needs to be updated. So use SND_SOC_DAPM_POST_PMU & SND_SOC_DAPM_PRE_PMD macro to create an event to handle this. Since micbias is converted to supply widget, updated machine drivers as well. This change is runtime tested on da850-evm with audio loopback (arecord|aplay) for confirmation. Signed-off-by: Hebbar Gururaja <gururaja.hebbar@ti.com> Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
27 lines
722 B
Plaintext
27 lines
722 B
Plaintext
Texas Instruments - tlv320aic3x Codec module
|
|
|
|
The tlv320aic3x serial control bus communicates through I2C protocols
|
|
|
|
Required properties:
|
|
- compatible - "string" - "ti,tlv320aic3x"
|
|
- reg - <int> - I2C slave address
|
|
|
|
|
|
Optional properties:
|
|
|
|
- gpio-reset - gpio pin number used for codec reset
|
|
- ai3x-gpio-func - <array of 2 int> - AIC3X_GPIO1 & AIC3X_GPIO2 Functionality
|
|
- ai3x-micbias-vg - MicBias Voltage required.
|
|
1 - MICBIAS output is powered to 2.0V,
|
|
2 - MICBIAS output is powered to 2.5V,
|
|
3 - MICBIAS output is connected to AVDD,
|
|
If this node is not mentioned or if the value is incorrect, then MicBias
|
|
is powered down.
|
|
|
|
Example:
|
|
|
|
tlv320aic3x: tlv320aic3x@1b {
|
|
compatible = "ti,tlv320aic3x";
|
|
reg = <0x1b>;
|
|
};
|