Quantcast
Channel: Raspberry Pi Forums
Viewing all articles
Browse latest Browse all 4151

Graphics, sound and multimedia • TLV320AIC3100: TLV320AIC31XX-LINUX driver, Issues setting up mic bias, Raspberry Pi 4

$
0
0
We cannot send voltage to the MICBIAS through the audio controls, we have audio working but we so no way of turning on the mic bias from alsamixer. We can manually set the registers for the micbias to get the microphone partially working but it randomly turns off and we lose power to the microphone.

Do we need a custom sound card driver or or there edits we can make to this dts file to help resolve our mic bias issue?

Code:

/dts-v1/;/plugin/;/ {        compatible = "brcm,bcm2835";        fragment@0 {                target = <&i2s>;                __overlay__ {                        status = "okay";                };        };        fragment@1 {                target-path="/";                __overlay__ {                        tlv320aic3x_mclk: tlv320aic3x_mclk {                                compatible = "fixed-clock";                                #clock-cells = <0>;                                clock-frequency = <12000000>;                        };                };        };        fragment@2 {                target-path = "/";                __overlay__ {                        codec_1v8_reg: codec-1v8-reg {                                compatible = "regulator-fixed";                                regulator-name = "tlv320aic3100_1v8";                                regulator-min-microvolt = <1800000>;                                regulator-max-microvolt = <1800000>;                                regulator-always-on;                        };                };        };        fragment@3 {                target = <&i2c1>;                __overlay__ {                        #address-cells = <1>;                        #size-cells = <0>;                        status = "okay";                        tlv320aic3x: tlv320aic3x@18{                                #sound-dai-cells = <0>;                                compatible = "ti,tlv320aic3100";                                reg = <0x18>;                                HPVDD-supply = <&vdd_3v3_reg>;                                SPRVDD-supply = <&vdd_3v3_reg>;                                SPLVDD-supply = <&vdd_3v3_reg>;                                AVDD-supply = <&vdd_3v3_reg>;                                IOVDD-supply = <&vdd_3v3_reg>;                                DVDD-supply = <&codec_1v8_reg>;                                micbias-supply = <&vdd_3v3_reg>;                                ai31xx-micbias-vg = <0x3>;                                status = "okay";                        };                };        };        fragment@4 {                target = <&sound>;                __overlay__ {                        compatible = "simple-audio-card";                        simple-audio-card,name = "tlv320aic3100-soundcard";                        simple-audio-card,format = "i2s";                        simple-audio-card,frame-master = <&cpu_dai>;                        simple-audio-card,bitclock-master = <&cpu_dai>;                        status = "okay";                        cpu_dai: simple-audio-card,cpu {                                sound-dai = <&i2s>;                        };                        simple-audio-card,codec {                                sound-dai = <&tlv320aic3x>;                                clocks = <&tlv320aic3x_mclk>;                                clock-names = "mclk";                        };                };        };};

We would appreciate any help and guidance in setting up the MIC BIAS.

Statistics: Posted by MiguelGarnica — Fri Aug 16, 2024 12:24 am



Viewing all articles
Browse latest Browse all 4151

Trending Articles