libera/#maemo-leste/ Saturday, 2023-09-02

arno11Wizzup: btw did you find time for serial ir-tx debug ? that's not urgent but i'd like to finish pierogi port properly :P15:56
Wizzuparno11: I can set it up later tonight, say 1900 or so (in 3.5 hours). I was just finishing up setting up the maemo part of my desk :D16:29
* Wizzup eyes the serial device16:29
arno11ok cool :)16:31
Wizzuparno11: 30-50 mins and I'll set it up fyi19:26
arno11ok19:31
Wizzuphooking it up nopw.21:06
Wizzupnow21:06
arno11oki21:14
Wizzuphard to get n900 on it properly ;)21:17
arno11:)21:19
Wizzupok21:19
WizzupStarting kernel ...21:19
Wizzuplet's see21:19
arno11cool21:19
Wizzup[   23.331420] rc rc0: Unspecified device as /devices/platform/n900-ir/rc/rc021:20
Wizzup[   23.332000] rc rc0: lirc_dev: driver ir_rx51 registered at minor = 0, no receiver, raw IR transmitter21:20
arno11i know this error21:20
WizzupAh, I don't think it's an error21:21
WizzupI'm just sharing the progress.21:21
Wizzupsince the boot takes a while ;)21:21
arno11yes indeed just a message21:21
arno11yes21:21
Wizzupso what command do I run again?21:21
arno11let me check21:21
siceloir-ctl -S rc5:0x1e0121:22
arno11yes21:22
arno11:)21:23
Wizzup-bash: ir-ctl: command not found21:23
Wizzuplet me get it21:23
siceloprovided by v4l-utils21:23
Wizzupmaemo decided to run apt worker first ;)21:24
arno11lol21:24
arno11the old fremantle tweak works to block it btw21:25
WizzupI like it :P21:25
Wizzupit's been a long time wish for me to extend it to work for all packages too21:25
Wizzupnot just the ones with X-Maemo-etc21:25
arno11ok21:26
Wizzupgot a trace21:26
Wizzuphttps://bpa.st/UAOFS21:27
Wizzupso the first thing that happens after ir-ctl is:21:28
Wizzuprc_core: Loaded IR protocol module ir-rc5-decoder, but protocol rc-5 still not available21:28
Wizzupand after that there is an oops21:28
arno11rc5 is supposed to be available, weird21:29
arno11difficult to see something relevant21:30
freemangordonarno11: tonegend21:32
arno11freemangordon: yes i found it :)21:32
freemangordonhttps://github.com/maemo-leste/maemo-multimedia-tone-generator21:33
arno11yep21:33
freemangordonI wonder why PA is so slow in resampling 8<->4821:34
freemangordonit should be optimized, in theory21:34
arno11i think that's because it is doing 8 to 48 to 821:35
arno11the modem accept only 8 and 1621:35
freemangordonok, but fremantle is doing the same, no?21:35
arno11nope21:36
freemangordonhow's that?21:36
WizzupI think we have problems reading 8Kz from the mic21:36
freemangordonit is the same modem21:36
Wizzupprobably in fremantle they just do that21:36
freemangordonno21:36
arno11Wizzup: yes21:36
freemangordonwait, why is 48<->8 code in fremantle then?21:36
arno11in fremantle th trick is to record at 4821:36
arno11and then downsampling to 821:37
arno11in leste we record at 4 to avoid crash and then 4 to 4821:37
freemangordoncrash?21:37
freemangordonsome kernel bug?21:38
arno11yes we can't record at 821:38
arno11none issue with PA21:38
Wizzupfreemangordon: do you have any idea about the stack trace above?21:38
Wizzupwe don't really know how to read it, as per usual :)21:38
freemangordonok, but can;t we do the same in leste?21:38
freemangordonWizzup: sec21:38
arno11we can do the same in leste but with a module like pulseaudio-nokia lol21:39
freemangordonwait, we can;t tell PA to resmple?21:40
freemangordon*resample21:40
arno11it does everything automatically21:40
arno11excepting if we use a specific module for that21:40
freemangordonhmm21:41
arno11even if you ask PA to resample differently, daemon.conf will probably cancel it21:43
arno11we have the example with latency: impossible to set it manually21:44
freemangordonWizzup: may I have tho .ko file?21:45
freemangordon*the21:45
freemangordonir_rx51.ko that is21:45
Wizzupfrom my n900?21:46
freemangordonmhm21:46
Wizzupsure, let me get it21:46
freemangordonso, "but protocol rc-5 still not available" is harmless?21:46
Wizzupdon't know21:47
arno11probably not21:47
arno11because even using other tools it crashes21:47
arno11like lirc or pierogi21:47
Wizzupso is this a missing config?21:47
Wizzupfreemangordon: https://wizzup.org/is-rx51.ko21:48
arno11misunderstanding: rc5 not available is not a problem21:50
freemangordonWizzup: 40421:50
freemangordonwget https://wizzup.org/is-rx51.ko gives that21:50
Wizzupprobaly unix perms21:51
Wizzupsec21:51
Wizzupoh21:51
Wizzuphttps://wizzup.org/ir-rx51.ko21:51
freemangordonok now21:51
Wizzuparno11: do you need me to test anything else now?21:55
arno11i think eveything else is ok ;) tyvm21:56
freemangordonWizzup: arno11: is it possible that we have issue with sections: https://github.com/maemo-leste/droid4-linux/blob/master/drivers/media/rc/ir-rx51.c#L17122:04
freemangordondevice private is a static struct22:04
freemangordonthat should be devm_kzalloc()-ed I think22:05
freemangordonlike here https://github.com/maemo-leste/droid4-linux/blob/master/drivers/media/rc/tango-ir.c#L17822:06
Wizzupseems likely given https://github.com/maemo-leste/droid4-linux/commit/a92def1becf33e91fc460c7ae575aa9210ba8f4022:08
Wizzup"22:08
WizzupCompile tested only.22:08
Wizzupnightmare commits for niche projects :P22:08
freemangordonwell, if you have kernel build around, we can easily test22:09
freemangordonjust remove global struct declaration and allocate it with devm_kzalloc22:09
freemangordonthat is a pretty trivial22:10
freemangordonfix22:10
arno11for you lol22:10
freemangordonok, I can provide you with a patch22:10
freemangordontomorrow :)O22:10
arno11arghhhh :)22:11
freemangordonBTW, we are using the same tree for n900 and d4, right?22:11
freemangordonarno11: so,, just came22:11
freemangordonoops22:11
freemangordonthat was meant to be "sorry, just came home..."22:12
freemangordon:)22:12
arno11ok no probs :)22:12
freemangordonarno11: do you have machine you can build kernel on?22:25
arno11this evening no, i have a baby instead of the machine...22:27
freemangordonheh22:28
freemangordonok :)22:28
freemangordonwill try to provide a patch tomorrow, maybe Wizzup will be able to test it22:28
arno11i can try tomorrow if you want22:29
freemangordonok22:29
arno11thx anyway22:30
sicelothanks for checking fmg :-)22:44
siceloi am able to build kernel tonight22:44
arno11nice !!!22:45
freemangordonsicelo: I will provide patch tomorrow. build-tested though22:59
freemangordonor, feel free to fix it by yourself22:59

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