libera/#maemo-leste/ Thursday, 2022-05-12

tmlindno idea on the voice call mic issues.. but i'm slowly rebasing patches for v5.18, there are bunch of n_gsm fixes that just got merged, also fixed a few module reload issues for the d4 serdev drivers but have not yet pushed out anything, maybe over the weekend06:20
tmlindunlikely any of these affect m-l, but being able to reload the modules makes development easier, that's been buggy for a while06:21
Wizzupagreed, great06:55
Wizzuptmlind: but you have voice calls working on non-speakerphone for you still?07:23
tmlindWizzup: i only have been using speakerphone and some hackish scripts, no ofono so far..07:24
Wizzupok, how is noice cancelling for you?07:24
Wizzupyeah ofono doesn't manage our audio routes either07:25
Wizzupsorry, echo cancelling*07:25
Wizzupwhen I tried speakerphone it was not usable due to echo07:25
WizzupI can load the pa echo cancelling module and try that of course07:28
WizzupI had the switch on in alsamixer I think07:28
tmlindWizzup: mdm6600 has built in noise cancellation, i keep that enabled in the alsamixer all the time07:42
Wizzupyeah I had that on too08:03
Wizzupmaybe it needs to be on at the start of the call and I didn't have it then or something08:27
Wizzupnot sure what else it could be08:27
uvos__Wizzup: we cant add pa noise cancelation or any filter whatsoever since the audio never passes throug the cpu09:35
uvos__that said the built in echo cancelation worked fine when i used it09:35
uvos__s/noise/echo09:36
Wizzupuvos: I think we can, since the audio leaves the speakers?12:01
uvos__Wizzup: no the speakers are directly connected to the modem in this mode12:03
Wizzupaha12:03
uvos__nothing you do on the cpu can change the audio ouptut12:03
Wizzupok, well, I am pretty sure it was on in alsamixer but it was clearly not working12:03
uvos__its all in hw the omap4 can be off in a call for all the modem cares12:03
Wizzupright12:03
uvos__there is a way you could do it tho12:03
WizzupI don't think we need to investigate that way atm, I'd rather figure out why the echo cancel doesn't work even though it's on12:04
uvos__theres a modem<->cpu dai that android uses for call recording12:04
Wizzupaha12:04
uvos__you could use that path all the time and disconnect the speakers from the mode12:04
uvos__but this means looksing the awsome talk time the d4 has12:04
Wizzupright12:05
Wizzupbtw, I tried to use ofono + data again on the d4 today while travelling and about every time I do it, it works for a bit, and then bugs in our ofono driver bite me hard12:06
WizzupI'll try to do a few more calls when I get home in an hour or two, see if I can get echo cancellation to work12:06
uvos__iirc cpcap provides eco cancellation not the mdm12:07
uvos__so maybe check the datasheet for the bit12:07
Wizzupif you know how I can figure out the required registers for earpiece/hp... that'd be neat12:07
uvos__but im pretty sure it was working12:07
Wizzupmaybe writing to the same register somehow causes issues12:07
WizzupI will try again12:08
WizzupI guess for input mostly the handset matters, not hp so much12:16
uvos__Wizzup: https://github.com/maemo-leste/sphone/blob/1eaa6f40a86748c327420321c54416e30659a20d/src/modules/route-mapphone-hack.c#L12314:46
uvos__your freeing an uninitalized pointer14:46
uvos__(you fail to set data in init)14:46
Wizzupuvos__: let me fix that14:55
Wizzupthe code wasn't quite ready for normal usage yet :)14:55
tmlindWizzup, uvos__: pushed out an updated v5.18-rc6 based topic branch for d4 modem serdev stuff: https://github.com/tmlind/linux/commits/serdev-gsm-pending-v5.1815:21
tmlindas always, had to first fix yet another kernel regression for the phy, one for n_gsm debug.. rebased on the recern n_gsm changes, fixed up issues on reloading the d4 serdev modules15:22
tmlindprobably no need to backport anything to m-l15:22
tmlindwill do a v5.18-rc based topic branch for the pending pvr patches, i think i have one fix i should improve a bit and then send out, then backport freemangordon's patches in linux next15:23
tmlindbut that will likely be few days15:24
tmlindhmm i also have a musb pm fix for dumb chargers that i need to test15:24
tmlindlooks like with some dumb chargers musb never idles currently..15:25
WizzupI can try to rebase on m-l tree on this, I suppose we don't have the pvr stuff on top of it yet?15:25
tmlindWizzup: best to wait few days so we get a much cleaner pvr topic branch15:27
Wizzupok, I can wait15:27
tmlindi think we pretty much only have one pvr kernel patch left now :)15:27
WizzupI plan to put me teeth in ofono on the d4 and not let go once it works in a stable manner - it's been the source of much frustration in my day to day usage :P15:27
Wizzupright, sweet15:27
tmlindwell one patch left for omapdrm for mainline i mean, the whole pvr kernel driver is a big mess15:27
Wizzupright15:28
tmlindWizzup: yeah ok, i suggest you use some temporary shell script to change the cpcap voice output if you need that for own usage15:28
tmlindwell could be clock changes are also needed.. uvos knows15:29
tmlindhmm so the serial console issue again.. so that happens on shutdown or reboot?15:30
tmlindand serial console needs to be detached for it to happen?15:31
tmlindi could not reproduce the last time i tried with just a kernel and a minimal filesystem so some more info would be nice15:32
tmlindtoo much computing for me already today, will be mostly offline for the rest of the day though :)15:33
Wizzuptmlind: with voice output, do you mean for speakerphone/headphone/earpiece, or you mean input?15:33
Wizzuptmlind: if for output from the call, I'm working on a temporary sphone module for that15:33
Wizzupif for input from the call, I don't know how to get it to work with anything but speakerphone yet15:33
Wizzupinput for the call*15:33
WizzupI think we should re-test the serial problems on 5.1815:34
Wizzupno need to try to reproduce it on older15:34
tmlindWizzup: ok yeah let's retest on 5.1816:04
tmlindWizzup: sounds like you're all set with a temporary sphone module then, that's better than a shell script :)16:05
Wizzuptmlind: right, apart from the fact that switching to earpiece or headphone is not useful as the input doesn't work then, so the other side cannot ehar me16:06
Wizzuphear me*16:06
Wizzupso really only speakerphone 'works' at this point (and I still need to re-test the echo cancellation alsamixer stuff again)16:06
uvos__ucm should set the echo cancellation correctly16:08
uvos__if it dosent its a bug16:08
Wizzupit was set but didn't work, but I will re-test to rule out pebcak16:09
uvos__ok16:09
buZzait, borrowing a pinephone soon17:56
buZzoh nice, voice routing stuff coming soon? :) my mom will be happy17:57
buZzi was discussing yesterday with dreamer a bit, and we both thought it would be cool if we could run asterisk and get the voice routing into that17:58
dreamerhehe18:00
dreamersomething we've been saying for years already18:00
dreamerno clue how doable though18:00
WizzupbuZz: well I'd be happy when it works with headset, not just speakerphone18:03
Wizzupbut we'll get there I think18:03
Wizzuphmmm dreamer, don't you run android on those things?18:03
sixwheeledbeastDoes it even need asterisk?18:03
dreamerWizzup: I have a dual boot and a leste18:04
dreamerbut personal dev focus lately has been nearly entirely on music :#18:05
buZzsixwheeledbeast: the idea was doing locally run voicemail mostly18:11
buZzand call screening, possibly some IVR to catch spammers etc18:11
sixwheeledbeastoh i see, I am not much of a voicemail user. I assume telepathy-gabble will be able to do calls via XMPP like N900?18:13
sixwheeledbeastwell fremantle18:14
Wizzupsixwheeledbeast: yes, planned18:21
Wizzupdreamer: ok, maybe you can help get some debug regs later18:21
dreamerWizzup: regs?18:26
Wizzupsry mtg18:27
dreamerone of my installs is the "dumb user doing dist-upgrade once every 6-12 months" which imo is a good indication for stability ;)18:27
dreamermtg?18:27
Wizzupmeeting18:27
dreamerah :)18:29
buZzdreamer: there's some registers on the modem/baseband or something that determine how/where audio gets routed18:49
buZzthe android might help to show which settings are used for what :)18:50
Wizzupright and I think uvos__ had done that before18:51
dreamerbuZz: aha18:51
lelMerlijnWajer opened an issue: https://github.com/maemo-leste/bugtracker/issues/617 (pinetab image loads pinephone braveheart dts)19:47
Wizzupuvos__: thx for that find btw @ not setting data20:49
Wizzupuvos__: can you ping me when you're home?20:52
uvosWizzup: im here22:04
Wizzupuvos: unrelated but I just made a call, and the n900 started ringing, but ofono didn't let sphone know until I hung up22:18
Wizzupsphone: comm-ofono: Error: Timeout was reached22:18
Wizzupsphone: comm-ofono: call_added_cb: /motmdm_0/voicecall0122:18
Wizzupsphone: comm-ofono: call: /motmdm_0/voicecall01, state: Active, line identification , emergency: 022:18
Wizzupsphone: comm-ofono: ofono_voice_call_properties_add_handler: /motmdm_0/voicecall0122:18
Wizzupsphone: manager: check_needed_state: call  state Active22:18
Wizzupsphone: manager: check_needed_state: incall true, incall_no_route false22:18
Wizzupsphone: sphone-mce: call_mode_trigger: active22:18
Wizzupone more for the bucket of ofono bugs :)22:18
Wizzupalso if there's an active call in this state (well, according to ofono or sphone), you can't "hang up"22:19
uvosyou sure that was ofonos fault?22:21
uvos(the n900 thing)22:22
Wizzupyes. 100%22:22
Wizzupthis is entire consistent with it not getting other notifications like data connection ready, sms received, etc22:22
Wizzupit's random, of course22:22
uvosok22:22
uvosWizzup: ill do the reg dumping on android later22:23
Wizzupok :)22:23
uvoslike in 1h22:23
Wizzupcool22:23
Wizzupok, this time when I toggled it (off, on) noise cancelling worked23:05
Wizzup(had to get another person involved and get them to walk away)23:05

Generated by irclog2html.py 2.17.0 by Marius Gedminas - find it at https://mg.pov.lt/irclog2html/!