IRC log of #maemo-ssu for Thursday, 2013-09-19

freemangordonfine00:01
*** xes has joined #maemo-ssu00:03
freemangordonPali: now we only need to make it work :D00:03
Paliyes :-)00:03
freemangordonDocScrutinizer05: iiuc the idea behind DT is that you don;t need to describe clock frequencies in DT00:03
freemangordonyou only tell the kernel which clock is your driver using00:04
freemangordonwhich is not that bad idea imo00:04
freemangordonand there *are* mul/div tables in the clock framework00:05
freemangordonPali: hmm, how familiar are you with the clock framework?00:06
freemangordonI wonder how to deal with that wrong frequency:00:06
freemangordon1. reparent cam_mclk on 343000:07
freemangordon2. add a divider by 200:07
Palifreemangordon: I do not know clock framework very good...00:07
freemangordonboth will work, but I really don;t know if there are real dividers, clocks etc behind those names or some of them are real and some virtual00:08
freemangordonPali: me either, I am trying to figure out what lays bahind it00:08
freemangordon*neither00:08
*** dos1 has quit IRC02:07
*** dos1 has joined #maemo-ssu02:07
*** dos1 has quit IRC02:08
*** xes has quit IRC02:24
*** jonwil has joined #maemo-ssu02:35
jonwilhi02:36
*** dos1 has joined #maemo-ssu02:38
*** Pali has quit IRC03:06
*** freemangordon has quit IRC03:50
*** freemangordon has joined #maemo-ssu03:51
*** M4rtinK has quit IRC04:11
*** LauRoman has joined #maemo-ssu04:28
*** nox- has quit IRC04:36
*** dos1 has quit IRC04:47
*** Martix_ has quit IRC04:49
*** LauRoman has quit IRC05:16
*** amiconn has quit IRC05:56
*** amiconn_ has joined #maemo-ssu05:56
*** amiconn_ is now known as amiconn05:56
*** jonwil has quit IRC06:57
*** M13 has joined #maemo-ssu07:10
*** Vlad_on_the_road has joined #maemo-ssu08:38
*** Vlad_on_the_road has quit IRC08:54
*** jonwil has joined #maemo-ssu09:11
freemangordonsailus: seems like cam_mclk clock propagation is FUBAR :( , see http://pastebin.com/m6KPax2R09:14
freemangordonI put printks in isp_xclk_XXX functions09:17
freemangordonsailus: this is the clock tree after all ^^^ :09:19
freemangordondpll4_ck              2           3            43200000009:19
freemangordondpll4_m6_ck        0           0            14400000009:19
freemangordondpll4_m6x2_ck   0           0            28800000009:19
freemangordonemu_per_alwon_ck 0           0            28800000009:19
freemangordondpll4_m5_ck        0           0            8640000009:19
freemangordondpll4_m5x2_ck   0           0            17280000009:19
freemangordoncam_mclk     0           0            17280000009:19
freemangordoncam_xclkb 0           0            1080000009:19
freemangordoncam_xclka 0           0            576000009:19
*** discopig has joined #maemo-ssu09:41
*** discopig is now known as Guest4159509:41
*** Guest41595 has quit IRC09:46
*** Guest41595 has joined #maemo-ssu09:46
*** Guest41595 is now known as bromide09:46
*** Martix_ has joined #maemo-ssu10:33
*** amizraa has quit IRC10:46
*** amizraa has joined #maemo-ssu10:51
*** Martix_ has quit IRC11:13
*** Martix_ has joined #maemo-ssu11:29
DocScrutinizer05freemangordon: http://talk.maemo.org/showpost.php?p=1375221&postcount=4411:36
DocScrutinizer05jonwil: ^^^11:37
freemangordongreat news11:37
freemangordonI guess those missing plugins can be easily REed11:37
*** Martix_ has quit IRC11:37
DocScrutinizer05:nod:11:38
jonwilif someone can get me binaries that work, that would be nice :)11:38
*** Pali has joined #maemo-ssu11:38
jonwilsince my compile box is down for the count11:38
DocScrutinizer05huh?11:38
jonwilfor reasons I haven't had the time to check11:38
DocScrutinizer05aaah11:38
jonwili.e. I want binaries matching whatever nicolai has been testing11:39
jonwilso I can play with them myself11:39
DocScrutinizer05so... ask nicolai ;-)11:39
* DocScrutinizer05 feels like Cpt Obvious11:39
jonwilpost made :)11:40
DocScrutinizer05:-))11:40
freemangordonhmm, what about the sources?11:41
DocScrutinizer05I hope you feel less bored than you did a week or so ago :)11:41
freemangordonjonwil: ^^^ :P11:41
DocScrutinizer05jonwil: and btw, awesome job you're doing!11:42
freemangordonPali: seems there is a nsasty bug in the clock framework :(11:43
freemangordonPali: see http://lxr.free-electrons.com/source/drivers/clk/clk.c#L1196 , what it is suppose to do in relation with CLK_SET_RATE_PARENT flag11:46
jonwilI think what I might do next is to try and match code modules in pulseaudio-module-nokia-voice to the open code and blobs in the first pushes of pulseaudio-modules-meego (using function names from both) and see what that tells me about whats open and whats closed11:51
jonwilIt might well be that the answer for pulseaudio-module-nokia-voice is to simply take the code we have (from meego/harmattan) and the binaries we have and use both to figure out how to make the code we have right for Fremantle12:00
DocScrutinizer05:nod:12:02
DocScrutinizer05though... they (Nok) may have realized that they don't need their own nifty AGC algo since there are abundance of them in several free libs and toolkits, and thus the binaries might massively differ though functionally identical12:05
*** Mihanizat0r has joined #maemo-ssu12:09
jonwilI am planning to compare the oldest code drop (back when the code consisted of a set of code and then a binary pulseaudio-modules-nokia package containing module-nokia-algorithms.so, module-nokia-algorithms-agc.so, module-nokia-audiots.so, libnokia-common.so and module-nokia-parameters.so)12:12
jonwilso I plan to figure out for all the bits in Fremantle pulseaudio-module-nokia-voice, which bits ended up in open code, which bits ended up in those blobs I just mentioned and which ones dont match anything I can find12:13
*** M13 has quit IRC12:13
* DocScrutinizer05 can't help reading xxidiots instead of audiots12:13
DocScrutinizer05ooh wait, i migth have a paper for you I dunno if it could help understand what that *-*-*-voice does12:16
jonwilok, maybe it will12:17
DocScrutinizer05http://linuxplumbersconf.org/2009/slides/Jyri-Sarha-audio_miniconf_slides.pdf12:17
jonwilOoh, "acoustic echo cancellation" sounds important12:20
jonwilneed to keep an eye out for indications of modules or functions that are doing that12:20
jonwilalso mentions "Speex SRC and Nokia proprietary algorithms"12:21
jonwilThe diagram on page 15 looks interesting12:22
jonwilAlthough it doesn't appear that useful as its just a theoretical overview and doesn't contain details12:23
Pali~seen _nicolai_12:28
infobot_nicolai_ <~nicolai@pop8-1810.catv.wtnet.de> was last seen on IRC in channel #maemo, 68d 15h 23m 24s ago, saying: 'merlin1991, please do so. It is for my "ledpulse" package. maemo package interface says: "old version cleaned ..." every 4 hourse. The newest version to import is ledpulse 0.3'.12:28
*** zomack has joined #maemo-ssu12:33
*** freemangordon has quit IRC12:37
*** freemangordon has joined #maemo-ssu12:37
*** zomack has quit IRC12:54
*** bromide has quit IRC12:56
*** bromide has joined #maemo-ssu12:57
*** bromide is now known as Guest2304112:57
*** Guest23041 is now known as discopig13:06
*** discopig has joined #maemo-ssu13:06
*** freemangordon has quit IRC13:14
*** freemangordon has joined #maemo-ssu13:14
*** freemangordon has quit IRC13:41
*** freemangordon has joined #maemo-ssu13:41
*** amizraa has quit IRC13:50
freemangordon /join ##fptf-private13:51
DocScrutinizer05tz13:53
freemangordon~tz14:00
infoboti heard tz is defined in /etc/default/rcS to fix that annoying warning message output by hwclockfirst.sh if your /usr is not on the root filesystem14:00
freemangordonsailus: ping14:02
*** amizraa has joined #maemo-ssu14:09
DocScrutinizer05~factinfo tz14:21
infobottz -- created by bdarrow <bdarrow@ool-182d933c.dyn.optonline.net> at Tue Oct 23 18:42:51 2001 (4348 days); it has been requested 4 times, last by freemangordon, 20m 29s ago.14:21
DocScrutinizer05thought as much14:21
DocScrutinizer05~forget tz14:21
infoboti forgot tz, DocScrutinizer0514:21
kerio2001? woah14:30
keriodid the internet even exist then14:30
keriothat must've been like carrier pigeons14:30
*** ceteigrek has joined #maemo-ssu14:36
DocScrutinizer052001? I had DSL14:36
keriocarrier pigeons i said14:36
DocScrutinizer05and a cheesy P-II-30014:37
DocScrutinizer05with 256MB14:38
DocScrutinizer05but with *SCSI* ;-P14:38
kerioi think i had dial-up in 200114:38
DocScrutinizer05nah, ISDN in 200014:39
DocScrutinizer05which cost me an arm and a leg when one time I forgot to tear down the connection for a week or so14:40
DocScrutinizer05been like 19ct/min back when14:41
*** arcean has joined #maemo-ssu14:46
sailusfreemangordon: pong14:53
* ShadowJK had a P3-733 and a compaq prosignia (486 *overdrive*, 24M ram)14:54
freemangordonsailus: hi, someone is changing cam_mclk rate evry now and then http://pastebin.com/m6KPax2R14:54
freemangordonsailus: I even made a version with stack_dump() called, but it shows noting interesting :)14:55
sailus:-P14:55
sailusI think the highest operating point used to be selected when the ISP was in use.14:56
sailusI'm not sure whether that's being done any longer.14:56
sailusBut I have to say I haven't had this issue with the mainline kernel.14:56
sailusWell, with N950.14:56
freemangordonsee - isp_xclk_set_rate:257 rate(5760000) divider(30)14:56
freemangordonso actually it sets the correct frequency :D14:57
freemangordonwell, not correct , but requested14:57
freemangordonsailus: which mainline version?14:57
freemangordonbecause there are some changes in 3.10 compared to 3.6 for example14:58
freemangordonesp in the way how are rate changes propagated and usage of CLK_SET_RATE_PARENT flag14:59
sailusfreemangordon: I tried linux-media tree yesterday (with a few patches from Aaro Koskinen).15:00
sailusI guess the patches are in linux-omap already.15:00
freemangordonwhich patches?15:02
sailusAlso apparently others than him.15:03
sailususb: musb: fix resource passed from glue layer to musb15:03
sailusARM: OMAP: rx51: change musb mode to OTG15:03
freemangordonwell, those should not matter in this case15:03
freemangordonsailus: hmm, I thinks this code has never been tested on 343015:04
*** ceteigrek has left #maemo-ssu15:05
sailusPerhaps so.15:06
sailusI guess it should boot on N900 as well but I haven't tried it out.15:06
freemangordonby *this* code I mean omap3isp15:06
freemangordonsailus: anyway, what is your advice? Should I try to fix that by recalculating the divisor every time a rate change happens?15:07
freemangordonxclka/b divisor that is15:07
freemangordonbwt aiui it is this http://git.kernel.org/cgit/linux/kernel/git/tmlind/linux-omap.git/commit/drivers/media/platform/omap3isp?id=6d1aa02f10497b138e01ebe6eafabd6071729334 patch that brings the problem15:09
freemangordonor maybe not15:09
sailusI think the rate change must not be allowed.15:09
sailusThat may crash the sensor as it's certainly not expected.15:10
freemangordonhmm, maybe I can just lock dpll15:10
sailusI think there's a way to register a notifier to prevent it.15:10
sailusOr something.15:10
freemangordonon cam_mclk?15:10
freemangordonhmm, no, on xclka/b15:11
sailusAck.15:12
*** ceteigrek has joined #maemo-ssu15:12
sailusI think the smia driver would need to do that.15:12
freemangordon:nod:15:12
freemangordonwill try to implement that15:12
*** ceteigrek has left #maemo-ssu15:12
sailusI actually haven't seen a situation before that someone would like to change the *same* clock so this hasn't been needed.15:13
freemangordonI guess this results from  CLK_SET_RATE_PARENT flag on mclk and parents15:13
freemangordonas the rate changes are is propagated back and forth15:14
sailusclk_notifier_register()15:14
freemangordonamybe a bug in the clock framework, dunno15:14
freemangordonyeah, was reading the code :)15:14
jonwilthe closest I want to get to kernel coding is rebuilding my Gentoo kernel when it needs it :P15:15
sailusAnd return NOTIFY_BAD.15:15
sailusI mean NOTIFY_BAD if the sensor is powered.15:15
sailusOr... the clock is enabled. :-)15:16
freemangordonyep15:16
freemangordonhmm, and rate != old_rate15:16
freemangordonsailus: maybe I should set the rate in power_on too15:21
freemangordonand set notifier from there (and unset it on power_off)15:22
sailusIsn't that already being done?15:27
sailusThere have been relatively recent changes to clock handling in the smiapp driver.15:27
freemangordonsetting the rate in power_on?15:27
freemangordonhmm, nooo :)15:27
freemangordonat least in our tree, lemme check upstream15:28
sailusApparently not.15:28
sailushttp://git.linuxtv.org/sailus/media_tree.git/commitdiff/a0c7bf81a5a8a3f817fc03c60a9807270e4bf4da15:28
freemangordonsailus: not implemented in mainline?15:28
sailusJust that they're correctly prepared before enabling.15:28
freemangordon:nod:15:29
sailusBut the rate is already set there.15:30
sailusI think you'd only need to register the notifier.15:30
freemangordonsomeone changes it15:30
freemangordonseed the log ^^^15:30
freemangordon*see15:30
sailusBecause they can? :-P15:31
freemangordonalso, platform_dtata set_xclk is called in power on15:31
freemangordon(if not NULL)15:31
freemangordonwhich will lead in clock being set in case we don;t use clock framework15:31
sailusYes.15:32
sailusAnd don't you use the clock framework?15:32
freemangordonsure15:32
freemangordonmy point is - if we *don't* use it, the clock will be set15:32
freemangordonshit, I can't pass data to notifier function :(15:35
freemangordonwtf is with those guys15:35
*** ceteigrek has joined #maemo-ssu15:35
freemangordonoh, I already have it in some clk_notifier_data15:36
*** ceteigrek has left #maemo-ssu15:38
*** ceteigrek has joined #maemo-ssu15:38
*** ceteigrek has left #maemo-ssu15:45
*** dos1 has joined #maemo-ssu16:14
*** LauRoman has joined #maemo-ssu16:16
*** oldtopman has joined #maemo-ssu16:17
*** freemangordon has quit IRC16:31
*** freemangordon has joined #maemo-ssu16:36
*** Mihanizat0r has quit IRC16:39
*** freemangordon has quit IRC16:39
*** freemangordon has joined #maemo-ssu16:39
*** arcean_ has joined #maemo-ssu16:43
*** arcean has quit IRC16:46
*** ceteigrek has joined #maemo-ssu17:00
*** Martix_ has joined #maemo-ssu17:04
*** ceteigrek has left #maemo-ssu17:08
*** arcean_ has quit IRC17:15
*** Sicelo has quit IRC17:17
*** Sicelo has joined #maemo-ssu17:20
*** Martix_ has quit IRC17:24
freemangordonsailus: clk notifier in ISP, the result: http://pastebin.com/yQ1yH2wN :(17:36
freemangordonthe divider etc seems just fine17:36
freemangordonbut maybe ISP doesn't run at all17:36
freemangordonsailus: see that "omap3isp omap3isp: CCDC stop timeout!" after I stopped yavta17:37
*** Martix_ has joined #maemo-ssu17:50
*** sunny_s has joined #maemo-ssu18:00
sailusfreemangordon: That suggests there could be a problem with the configuration.18:01
sailusThe CCDC will only stop after it has processed a full frame.18:01
freemangordonyep, I am checking MUX18:01
freemangordonseems like it is wrong18:01
sailusDoes your sensor configuration have the correct CCP2 bus in it?18:01
freemangordonhmm, isn't CSI used?18:02
sailusIt's the same. :-)18:03
freemangordonok :)18:03
sailusCSI-2 is different.18:03
freemangordonwell, MUX was set wrongly18:03
freemangordonI will check all the needed gpios and will retry18:04
sailus:-)18:04
sailusYour .interface should be ISP_INTERFACE_CCP2B_PHY1.18:07
sailusAnd the signalling mode is SMIAPP_CSI_SIGNALLING_MODE_CCP2_DATA_CLOCK.18:07
freemangordon.csi_signalling_mode= SMIAPP_CSI_SIGNALLING_MODE_CCP2_DATA_CLOCK,18:08
sailusGood.18:11
sailusAny luck with changed gpio configuration?18:11
freemangordonI am trying to grok what PULLUDENABLE1 is supposed to mean18:12
sailusDoesn't say anything to me. :-P18:13
sailusPinmux?18:13
freemangordonyep18:13
freemangordonI suspect this is input with pulldown :)18:13
freemangordonshould be OMAP_PIN_INPUT_PULLDOWN, going to test18:15
freemangordonsailus: don;t help :(18:27
*** NIN101 has joined #maemo-ssu18:30
*** mkaindl has joined #maemo-ssu18:31
sailus:-P18:33
sailusfreemangordon: Do you get any interrupts now?18:33
sailusIf you have a patch for the clock notifier we could still see if we could upstream it.18:34
freemangordonsailus: I am not sure this patch is really needed18:38
freemangordonsailus: 40:          0      INTC  OMAP3 ISP18:38
freemangordonstill no interrupts18:38
freemangordonsailus: do I have to have cameras as consumers of VCSI/vaux2?18:53
Pali~seen _nicolai_19:30
infobot_nicolai_ <~nicolai@pop8-1810.catv.wtnet.de> was last seen on IRC in channel #maemo, 68d 22h 24m 58s ago, saying: 'merlin1991, please do so. It is for my "ledpulse" package. maemo package interface says: "old version cleaned ..." every 4 hourse. The newest version to import is ledpulse 0.3'.19:30
sailus:-P19:42
sailusfreemangordon: I think yes. If that was the regulator which used to be there, then so it be.19:42
freemangordonsailus: it is not that, ISP is consumer of VCSI19:43
freemangordonand it is powered when needed19:43
*** M4rtinK has joined #maemo-ssu19:49
sailusBack later.19:51
freemangordonI hope with a solution :P19:51
*** Vlad_on_the_road has joined #maemo-ssu20:25
*** Martix_ has quit IRC20:49
*** discopig has quit IRC20:59
*** discopig has joined #maemo-ssu20:59
*** discopig is now known as Guest8452621:00
*** Guest84526 has quit IRC21:01
*** Guest84526 has joined #maemo-ssu21:01
*** Guest84526 is now known as piscodig21:01
*** amizraa has quit IRC21:04
*** amizraa has joined #maemo-ssu21:06
*** Vlad_on_the_road has quit IRC21:06
*** xes has joined #maemo-ssu21:09
*** arcean_ has joined #maemo-ssu21:36
*** _rd has joined #maemo-ssu21:38
*** xes_ has joined #maemo-ssu21:42
*** xes has quit IRC21:44
*** jonwil has quit IRC21:45
*** BCMM has joined #maemo-ssu21:50
*** _nicolai_ has joined #maemo-ssu21:58
_nicolai_hi22:00
sailusfreemangordon: The ISP does need a few regulators.22:01
sailusIt works on 3630, so I assume that should be in order.22:01
sailusThe sensors require actually a few different ones but only one is controlled by the driver.22:01
*** dos1 has quit IRC22:04
*** dos1 has joined #maemo-ssu22:04
Pali_nicolai_: hi22:06
*** piscodig has quit IRC22:17
*** _rd has quit IRC22:19
*** _rd has joined #maemo-ssu22:26
*** xes_ has quit IRC22:48
*** xes has joined #maemo-ssu22:48
*** arcean_ has quit IRC22:50
*** mkaindl has left #maemo-ssu22:55
*** mkaindl has joined #maemo-ssu22:56
sailusfreemangordon: Here the cameras both use vaux4.22:59
sailusWhere did vaux2 come from?22:59
sailushttp://git.linuxtv.org/sailus/media_tree.git/commitdiff/e4d76d27873a7a5edfb470a25ea521806105087323:01
*** discopig has joined #maemo-ssu23:05
*** discopig is now known as Guest2473723:06
*** Guest24737 is now known as piscodig23:15
*** piscodig has joined #maemo-ssu23:15
*** mkaindl has left #maemo-ssu23:34
*** _rd has quit IRC23:44

Generated by irclog2html.py 2.15.1 by Marius Gedminas - find it at mg.pov.lt!