pinephone, pinetab, etc devel chat | https://gitlab.com/pine64-org/ Bridged to #pinedev on Freenode and #pine-dev:matrix.org on Matrix
[I] <megi> that's why I don't use UCM, and instead define states of all controls of the codec based on a target use case in a declarative manner and not in the procedural way of "change these controls when transitioninig to this state"
Читать полностью…[I] <megi> it doesn't even configure any of the remaining hpo mix inputs to any particular state, other than povolr
Читать полностью…[I] <megi> the one you shared leaves out a lot of controls, including many that would put random noise into HP output
Читать полностью…[I] <megi> you will not hear anything if you basically just turn off the speaker
Читать полностью…[M] <piggz> megi: i found that the control "HP R Playback Switch" seems responsible for the noise when trying to use the speaker ... the UCM turns this ON when activating the speaker, turning it off removes the noise .. though i still dont hear from the speaker
Читать полностью…[M] <Newbyte> megi: thanks, so the strange name is intentional?
Читать полностью…[M] <piggz> megi: these are the things that happen when enabling the speaker https://github.com/sailfish-on-dontbeevil/droid-config-pinephone/blob/pro/sparse/usr/share/alsa/ucm2/PinePhonePro/VoiceCall.conf#L178
Читать полностью…[I] <megi> it must be from somewhere else, it doesn't make sense to be affected by speaker on/off
Читать полностью…[M] <piggz> ok, keep it in mind for when you get a chance ... the PPP speaker end is fine, but the noise from the mic is wful
Читать полностью…[I] <megi> Newbyte: jack is created by simple-sound-card now, not by codec driver
Читать полностью…[M] <piggz> (from the perspective of the other caller)
Читать полностью…[M] <piggz> how does it behave for you using the internal mic for input, and the speaker for output?
Читать полностью…[I] <megi> I don't have UCM, I use a tool that configures everything fully, and doesn't just do procedural modifications to alsa settings
Читать полностью…[I] <megi> noise can plauysibly can be comming in via 10 different paths with that UCM :D
Читать полностью…[I] <megi> it has recmixr input on out mixr enabled, it doesn't configure any other inputs of out mixr to any particular state, it doesn't configure any inputs to rec mixr to any particular state, except one of them, etc. etc.
Читать полностью…[I] <megi> UCM way of setting things is meh... you just can't know how the audio will actually be routed when using it
Читать полностью…[I] <megi> that's what turns on/off the final part of the audio path to the speaker :)
Читать полностью…[I] <megi> more unfortunate, than unintentional, but also not easily avoidable
Читать полностью…[M] <piggz> maybe i should test with alsamixer, with audio on the earpice, and just toggle the bits to enable the speaker
Читать полностью…[I] <megi> there's no noise from the mic in my tests
Читать полностью…[I] <megi> I have not tried that yet, last I worked on this I did optimizations for main codec I2S -> modem codec I2S paths
Читать полностью…[I] <megi> except PPP has two codecs and is much more complicated
Читать полностью…[I] <megi> pretty similar to my work on this for PP https://xnux.eu/devices/feature/audio-pp.html
Читать полностью…[M] <piggz> i dread to think how your audio config is set up
Читать полностью…