Skip to content

PPP - capture volume changes and "fix" for the speaker - earpiece switching

I can't tell if this is good idea to merge or not - I will test this more but this works as good as it gets with postmarketos and manjaro These changes will make Pinephone Pro callaudio somehow usable - they should not but still they do 😄 So if you know something about this and want to help please do so - I am more or less just pressing buttons and hope for the best :D

One callaudio issue is that speaker mode will turn on some audio routing which will make the mic super sensitive (most likely that something will send the microphone output twice to modem). Without my changes that something will stay on even if you toggle the speaker off. And because some distros have serious issues in audio routing their calls might start all the time with that super sensitive mic (like sxmo because of their callaudio script) or at least sometimes because wireplumber does not route audio all the time correctly (mobian)

Capture volume change is the most critical - currently it is 47 and it is like 18%. 160 is something like 60%. Distros who are suffering more with that super sensitive mic are most likely behind the idea of 47 - but if mic gets routed correctly that 47 is way too silent.

About that super sensitive mic: to make it even little bit usable we need to set capture volume to 0 when on speaker-> the volume is still too loud but this does not generate super bad echo or screeching sound. Then to escape from that super sensitive mic we need to disable ADC MIXL ADC2 and set capture volume back to 160 when we toggle speaker off. And from the other side we need to enable ADC MIXL ADC2 when turning earpice on. These should not be necessary but as said it just doesn't work without xD

Merge request reports

Loading