libera/#maemo-leste/ Thursday, 2024-07-18

inkysicelo, i have heard in an old podcast that alpine wants to discntinue builds for n900 chipset. do you know about it?03:08
tmlindfreemangordon: sounds like you figured out the vaudio stuff already, grepping the android values from uvos for 0800: shows 0x25 when in use and 0x65 when idle so only CPCAP_BIT_AUDIO_LOW_PWR gets set for idle, probably because of start-up latency causing audio glitches04:49
tmlindso yeah, the default value of 0 for the register is wrong and should be 0x65 instead04:50
tmlinduvos: heh a retro device suitable playback capture file name there?04:56
freemangordontmlind: I think 0x65 gets set because regulator is put in standby06:45
freemangordonthis is bit   CPCAP_BIT_AUDIO_LOW_PWR set06:47
freemangordonthis never happens with upstream as we don;t hit off mode, iiuc06:48
freemangordonals, I don;t think cpcap soc driver shall touch that register at all06:53
freemangordonit's already controlled by cpcap-regulator06:53
siceloinky: i don't listen to their podcasts. which one? anyway, there's no such thing. I'm the maintainer for that device on pmOS and not aware of those plans06:53
freemangordontmlind: I wonder if "abe-clkctrl:0030:0: failed to disable" I see in dmesg occasionally is harmless and not the reason for varying idle power usage06:59
uvos__sicelo: well alpine wants to drop armhf no?13:06
uvos__that would mean pmos has to do armhf itself or drop all old devices like n90013:07
sicelouvos__: meaning of armhf in context of alpine/pmos is different from meaning in debian13:55
sicelodebian's armhf is armv7 in alpine speak13:56
siceloand alpine's armhf is something like armel in debian speak13:57
arno11good to know14:00
freemangordonand how do they call armhf then?14:01
Wizzupyeah afaik armhf is just armhf14:13
Wizzuparmhf==armv7a no?14:13
Wizzupok, strange14:13
freemangordonWizzup: how do you read https://patchwork.kernel.org/project/alsa-devel/patch/87y2a1vk3a.wl-kuninori.morimoto.gx@renesas.com/ ?14:13
freemangordon"It doesn't have "SWITCH" control yet, thus it start automatically when probed, but can't stop, so far."14:14
freemangordonI can't find a way to turn off modem output patch14:14
freemangordon*path14:14
freemangordonlike, when calls work that is14:14
Wizzupbut this is 202114:14
freemangordonyeah14:14
Wizzupwasn't this updated since then?14:14
freemangordonbut is it still valid?14:14
freemangordonno idea14:14
Wizzupmaybe do git log on audio-graph-card214:15
freemangordonyeah14:15
freemangordonWizzup: so, I created widgets in DT for the remote modem and created routes like:14:18
freemangordonhttps://pastebin.com/SXqRwmZB14:19
freemangordonthis, along with c2c config makes it work fine14:19
freemangordonbut, "Remote Modem Speaker" is on all the time14:20
Wizzupsorry, I cannot check for another 2-3 hours14:39
uvos__sicelo: ah so they are dropping armv6 not v7 ok15:00
uvos__that dosent affect n900 then15:00
freemangordonoh, ok, seems to got it working properly15:49
tmlindfreemangordon: yes standby makes sense for vaudio, note that probably for off mode it would not be shut off either as it's the pmic and not the soc, and enable latency could be long15:59
tmlindfreemangordon: the abe-clkctrl disable message should be harmless timeout if the clock has the autoidle bit in dts, it just means it's in use and can't idle16:00
freemangordontmlind: thanks!16:15
freemangordonok,  going to force-push 6.6, keep away :)16:15
freemangordonsomehow even ringing while playing musing started to work :)16:26
freemangordonWizzup: ^^^16:26
freemangordonplease, make a new kernel release16:27
freemangordonperhaps disable dynamic debug16:27
freemangordondsc_: late pong16:29
freemangordonsorry, was deep in asoc s**t16:29
dsc_freemangordon: wanted to annoy you with some C bug but I already found Wizzup as a victim16:39
dsc_anyway, working on Matrix integration in conversations..16:40
freemangordonwhy it needs special handling?16:41
dsc_telepathy-tank is not useable at this point16:42
dsc_its missing some basic features like joining/leaving groupchats16:43
freemangordonok, but how is conversations involved?16:43
dsc_ah16:44
dsc_conversations needed a change to handle "room names" - which benefits both telegram and Matrix16:44
freemangordonah, ok16:44
dsc_but yes I'm mostly working on the telepathy side of things16:44
freemangordonthat will help me to implement group names for tp-haze16:45
dsc_its a property16:45
freemangordongood, but I don;t set it :)16:45
dsc_QString room_name = props.value(QString("%1.Interface.Room2.RoomName").arg(TP_QT_IFACE_CHANNEL)).toString();16:45
dsc_right16:45
freemangordonin tp-haze I mean16:46
dsc_yes16:46
freemangordonthe reason was missing support in conversations ;)16:46
dsc_I dont know if it should be "Room2", but this is what tp-tank does16:47
freemangordonwell, there are specs16:47
freemangordonthat describe the interfaces16:47
freemangordonhttps://telepathy.freedesktop.org/doc/book/16:48
freemangordonhttps://telepathy.freedesktop.org/spec/index.html16:49
freemangordonhttps://telepathy.freedesktop.org/spec/Channel_Interface_Room.html16:49
dsc_yes16:50
dsc_https://github.com/maemo-leste/rtcom-eventlogger-plugins/blob/49c1843af4e93b9e7b3cb45cef42533857abd4c2/rtcom-eventlogger-plugins/chat.h#L4516:51
dsc_i failed to call this function16:51
dsc_from conversations16:51
dsc_https://bpa.st/raw/XIGQ16:51
dsc_after thats fixed, conversations will have support for room names :)16:52
dsc_https://plak.infrapuin.nl/selif/69e3l46u.png16:52
freemangordon:)16:52
freemangordonhmm, this is a plugin function16:53
freemangordonI am not sure you are allowed to call it16:53
dsc_:D16:54
freemangordonoh16:54
freemangordonyou need rtcom-eventlogger-plugins.pc16:54
dsc_sure, i have it16:54
freemangordonweird16:54
dsc_https://github.com/maemo-leste/conversations/commit/ea2de18ff0958d5a62958a57a708fecf64438d5d16:54
dsc_yeah not sure16:54
freemangordonmaybe the order is wrong16:55
freemangordonld is picky about libs order16:55
dsc_thing is I can reach other symbols16:55
dsc_like enum `RTCOM_EL_FLAG_CHAT_GROUP`16:55
dsc_well ok, its just an enum16:55
freemangordonthis is in the header I guess16:55
uvos__missing extern c?16:55
freemangordonyeah16:55
dsc_thats via header include, yeah wrong example16:55
uvos__it might be looking for a c++ mangled version16:56
dsc_undefined reference to `rtcom_el_plugin_chat_set_group_title(_RTComEl*, char const*, char const*)'16:56
dsc_but my args are 'gchar'16:56
freemangordonyeah, this is c++16:56
dsc_so this error is weird, no?16:56
freemangordonsec16:56
freemangordonuvos__: yeah, headers are missing extern "C"16:57
uvos__yup16:57
freemangordondsc_: make #include like "extern "C" { #include <chat.h> }16:58
uvos__headers should be fixed with the ifdef cxx extern "C" {  pattern16:59
uvos__instead16:59
uvos__but yeah that fixes it for dsc16:59
dsc_compiling16:59
freemangordonuvos__: well, that's C library, not sure it must support c++17:00
dsc_that fixes it, nice o/17:00
dsc_thanks17:00
uvos__freemangordon: why should it not?17:01
freemangordonwell, I am not saying it should not17:02
freemangordonbut that it is not a must17:02
freemangordonuvos__: with fixed 6.6 I have on my device, call ringing while music plays works, no idea why17:05
freemangordonthe only remaining issue I am aware of with 6.6 is that reboot/powerdown does not work17:06
uvos__its racy17:06
freemangordonnot anymore it seems17:06
uvos__it works with ofono on 6.1 too17:06
uvos__it may return17:06
uvos__dunno17:06
uvos__or its fixed17:06
freemangordonit shoudl be, as now everything is controlled by the kernel17:07
freemangordonuserspace just switches ucm17:07
Wizzupshutdown racy or call audio?17:07
freemangordoncall audio I guess17:07
Wizzup6.6 is great now17:07
Wizzupbut yes 6.1 was also racy17:07
freemangordondid you try it? the one I just pushed?17:07
uvos__hifi audio between modem activation and ucm swith is racy somehow17:07
uvos__or was at least17:08
freemangordonit can;t be anymore17:08
Wizzupnot that one but the last one17:08
freemangordontry the one I pushed17:08
Wizzupbbiab finally home17:08
Wizzupok will do17:08
freemangordonthis *is* the thing17:08
WizzupI'm glad the issue wasn't in vcm in any case17:08
freemangordonat least sound wise17:08
uvos__Wizzup: Wizzup tolled me to remind Wizzup about 2 droid4 when he arrives at home17:08
Wizzup2 minutes too soon :p17:08
uvos__ok ok17:09
freemangordonWizzup: oh, and for some reason when I upgraded iphb was not rebuild17:09
freemangordonso there is still something wrong with debian scripts17:10
arno11weird, it worked for me last time (iphb)17:16
freemangordonmaybe because I installed the same version17:17
freemangordonnext time will downgrade the kernel first17:17
arno11ah yes that's what i did17:17
arno11btw well done @calls17:18
arno11for playing music while call ringing, you mean with omp or in general ?17:21
freemangordonомп17:22
freemangordonomp17:22
freemangordonlemme try with ytmusic17:23
arno11ok17:23
freemangordonarno11: as expected, both sounds play :D17:28
arno11cool :)17:29
freemangordonnot really17:29
freemangordonringing should stope everything else17:30
freemangordonlemme see what will happen if I pick-up17:30
freemangordonok, at least that works properly, though I am sure chromium does not stop playback17:31
freemangordonunless PA does something behind the scenes to block non-active streams, dunno17:32
arno11we can never be sure with PA17:35
freemangordonmafw-tracker-source seems to leak alot17:48
freemangordonarno11: that could be the reason for your n900 slowness17:48
arno11ah indeed but i already blocked it before17:49
arno11btw there is no slowness anymore17:49
freemangordonblocked what?17:49
arno11mafw stuff17:49
freemangordonwhy?17:49
arno11because of slowness (long time ago)17:50
freemangordonheh17:50
freemangordonok17:50
arno11the recent slowness is due to something wrong with emmc swap17:50
arno11with sd swap, no more issue17:50
arno11to resume: no blur, no mafw, no tracker in home and everything is fine17:51
arno11on N90017:51
freemangordonmafw should not cause any slowness, in theory17:51
freemangordonbut, seems there is some memleak17:51
freemangordonI will look at it17:52
arno11ok great17:52
uvosfreemangordon: pa dose indeed block non active streams19:08
uvosthis is something you can configure19:08
uvosyou can simply make it not accept any samples anymore19:08
uvosunaware applications using blocking io will simply hang in write() untill the stream unblocks, smarter applications will do something smarter19:09
uvosin addition to this we could eventually use the fdo media interface to tell applications to pause19:10
uvoshttps://gitlab.freedesktop.org/mpris/mpris-spec/19:11
Wizzupbonus of having mpris is that it works with bluetooth connected devices like cars19:56
Wizzupuvos: I believe PA calls this "cork"ing a stream, or maybe nokia called it this19:57
arno11Wizzup: btw (if you have time to have a look) i still have a PR pending for leste-config (swappiness and cache pressure too 'agressive')21:54
arno11*specially for slow sd cards21:55
Wizzupcare to link it here?21:56
arno11yep let me check21:56
arno11/leste-config/pull/4721:58
fmg_d4where is the new 6.6?21:58
fmg_d4:p21:59
arno11in experimental repo i suppose22:03
Wizzupfreemangordon: hmm @ 6.6?23:32
Wizzuparno11: ty23:32

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