08-12-2023, 05:54 AM
Hello,
I have archlinux running on pine64+, everything is fine except mic input. Output to 3.5mm jack works nice, but I can't get recording anything. Can you please share asound.state file with mic enabled.
So far I went through sound codec code and tried to enabled the path from Mic2 -> DAC Mixer -> AIF1 -> Capture, but only thing I'm having is white noise.
Here is some debug info from capture:
I have archlinux running on pine64+, everything is fine except mic input. Output to 3.5mm jack works nice, but I can't get recording anything. Can you please share asound.state file with mic enabled.
So far I went through sound codec code and tried to enabled the path from Mic2 -> DAC Mixer -> AIF1 -> Capture, but only thing I'm having is white noise.
Here is some debug info from capture:
Code:
$ cat './1c22e00.codec/dapm/AIF1 Capture'
AIF1 Capture: On in 4 out 1
stream AIF1 Capture active
out "static" "Capture"
in "static" "AIF1 AD0L"
$ cat /sys/kernel/debug/asoc/sun50i-a64-audio/1c22e00.codec/dapm/AIF1 AD0L
AIF1 AD0L: Off in 4 out 0 - R68(0x44) mask 0x8000
stream AIF1 Capture inactive
out "static" "AIF1 Capture"
in "static" "AIF1 AD0L Stereo Mux"
in "static" "RST AIF1"
$ cat './1c22e00.codec/dapm/AIF1 AD0L'
AIF1 AD0L: On in 4 out 1 - R68(0x44) mask 0x8000
stream AIF1 Capture inactive
out "static" "AIF1 Capture"
in "static" "AIF1 AD0L Stereo Mux"
in "static" "RST AIF1"
$ cat './1c22e00.codec/dapm/AIF1 AD0L Stereo Mux'
AIF1 AD0L Stereo Mux: On in 4 out 1
out "static" "AIF1 AD0L"
in "Sum Mono" "AIF1 AD0R Mixer"
in "Sum Mono" "AIF1 AD0L Mixer"
$ cat './1f015c0.codec-analog/dapm/Mic2 Amplifier'
Mic2 Amplifier: On in 1 out 2 - R8(0x8) mask 0x8
out "Mic2 Capture Switch" "Right ADC Mixer"
out "Mic2 Capture Switch" "Left ADC Mixer"
in "static" "MIC2"