00:01:07 | | Quit Moarc (Ping timeout: 240 seconds) |
00:01:33 | [Saint] | The canonical answer is to fix your damn metadata, though. |
00:01:47 | | Join Moarc [0] (~chujko@a105.net128.okay.pl) |
00:02:54 | [Saint] | Ugggh, I just re-read your question, and the massive list of comparators required for your use case are not trivial. |
00:03:56 | [Saint] | Though...it isn't /impossible/. Sec. |
00:05:40 | [Saint] | Hmmm, no, it's not as ugly as I thought...assuming this works. |
00:06:49 | [Saint] | %?if(%pp,<=,9)<0%pp|%pp> should work to zero-pad, which IMO is nicer than space-padding. |
00:09:10 | [Saint] | there's also %?and() for using logical comparators against multiple tags without nesting. |
00:09:17 | | Quit lebellium (Quit: ChatZilla 0.9.93 [Firefox 51.0.1/20170125094131]) |
00:10:54 | [Saint] | From memory the syntax is: |
00:10:54 | [Saint] | %?and(tag,tag,...,tag,tag,comparator,operator)<true|false> |
00:11:34 | [Saint] | %?and() will only fire if _all_ tags compared against the operator are true. |
00:12:19 | [Saint] | you can use %?or() to for comparisons you want to fire if _any_ of them are true. |
00:14:13 | [Saint] | There's also several other approaches that spring to mind. Mostly because I'm a lunatic. |
00:15:41 | [Saint] | Defining a separate viewport for this value and then using the text alignment tags is the most flexible case as it allows for both RTL text and values of arbitrary length. |
00:15:41 | amazoniantoad | [Saint], hey man the bluetooth module project worked! |
00:15:43 | amazoniantoad | thanks for your help |
00:15:58 | [Saint] | amazoniantoad: Not a problem, what route did you end up taking? |
00:16:17 | * | [Saint] was just waxing lyrical abour our convoluted theme engine, which is a topic he likes to rant about |
00:16:21 | [Saint] | *about |
00:21:34 | amazoniantoad | [Saint], I soldered to the aux input |
00:21:49 | amazoniantoad | Then soldered the power supply to the pcb board of the ipod |
00:22:05 | amazoniantoad | Next I just need to drill some holds or something in the back of the ipod |
00:22:15 | amazoniantoad | So I can turn the bluetooth on and get a signal out |
00:22:20 | amazoniantoad | It's crystal clear too |
00:23:59 | amazoniantoad | How can I add a list of artists to rockbox? I want to be able to have the option of searching by album v artist v playlists |
00:24:09 | amazoniantoad | All I can seem to do is add playlists though |
00:26:25 | [Saint] | This is precisely what the Database function is for. |
00:26:37 | [Saint] | It does exactly that. |
00:29:24 | amazoniantoad | Oh cool |
00:29:25 | amazoniantoad | thanks |
00:34:41 | chrisjj | [Saint], that didn't work, but this adjusted version |
00:34:55 | chrisjj | %?if(%pp,<,10)< %pp|%pp> |
00:35:11 | chrisjj | did, and gives a good result: http://i.imgur.com/iR0v7Wg.png |
00:35:13 | chrisjj | Thanks! |
00:35:54 | | Quit pamaury (Ping timeout: 255 seconds) |
00:35:57 | [Saint] | chrisjj: FWIW, this is a _very_ error prone way of handling this. |
00:36:01 | chrisjj | "That" being your 22:58. |
00:36:12 | chrisjj | I've just seen your 23:06. Thanks. |
00:36:48 | [Saint] | The "right" way to do this is to give this value its own viewport and use the alignment tags. |
00:37:35 | [Saint] | then it'll work with values of arbitrary length whether they're space padded, zero-padded, or otherwise. |
00:38:15 | chrisjj | This value is embedded in a line, so the viewport coordinates would be font-size dependent. |
00:38:47 | [Saint] | correct. but you should be specifying a specific font anyway. |
00:39:05 | [Saint] | allowing the user to use userfont makes for a very easily broken theme. |
00:39:23 | [Saint] | if a user loads a 40pt font it screws up the entire theme. |
00:40:01 | [Saint] | (by way of pushing down all other lines) |
00:41:03 | | Quit Moarc (Ping timeout: 240 seconds) |
00:41:04 | chrisjj | I was following the lead of the default theme cabbiev2, which uses the user's font choice. |
00:42:01 | chrisjj | However I take your point and if I release this, I'll switch to a known font size. Shame that can't allow the users choice of font family, though. |
00:43:51 | | Join Moarc [0] (~chujko@85.28.128.105) |
00:43:53 | [Saint] | cabbie does somewhat of a compromise by allowing the use of userfont, but forcing a specific font when cabbiev2.cfg is loaded. |
00:44:16 | [Saint] | it allows for users to break the display at their discretion, which I'll admit isn't ideal. |
00:44:23 | [Saint] | I struggled with how exactly to handle that. |
00:46:45 | [Saint] | Another concern was size of the end binary, as including a font that doesn't make the users eyes bleed, which also has wide unicode glyph coverage, balloons the size of the shipped archive quite a lot. |
00:48:29 | *** | Saving seen data "./dancer.seen" |
00:49:59 | [Saint] | From a UI/UX point of view there's many aspects of cabbie that I wouldn't necessarily repeat. |
00:53:34 | | Quit ender` (Quit: Anti-intellectualism has been a constant thread winding its way through our political and cultural life, nurtured by the false notion that democracy means that 'my ignorance is just as good as your knowledge.' — Isaac Asimov) |
01:00 |
01:13:11 | fs-bluebot | Build Server message: New build round started. Revision 2220a4b, 255 builds, 15 clients. |
01:13:37 | | Quit alexweissman (Remote host closed the connection) |
01:14:36 | | Quit girafe (Read error: Connection reset by peer) |
01:20:30 | * | __builtin is unsure how he should integrate libSDL into rockbox plugins |
01:22:17 | __builtin | it can't go into pluginlib for multiple reasons, the main one being the size and resulting code bloat |
01:22:46 | __builtin | does someone have any ideas? |
01:23:53 | fs-bluebot | Build Server message: Build round completed after 642 seconds. |
01:23:54 | fs-bluebot | Build Server message: Revision 2220a4b result: 6 errors 0 warnings |
01:24:51 | [Saint] | The only real "fix" I'm aware of would be gutting the plugin system to allow for dynamically relocatable plugins. |
01:25:41 | __builtin | I think wodz did some work on that, with the elf loader |
01:25:56 | [Saint] | gevaerts worked on it a wee bit too from memory. |
01:26:15 | [Saint] | more than a wee bit. |
01:30:55 | __builtin | relocatable plugins would allow for multitasking between plugins, too, right? |
01:32:44 | | Quit Rower (Ping timeout: 264 seconds) |
01:32:57 | | Join Rower [0] (husvagn@d83-183-134-99.cust.tele2.se) |
01:37:25 | [Saint] | Not in and of itself, but it is a prerequisite for the Do It Right way of achieving it. |
01:54:45 | fs-bluebot | Build Server message: New build round started. Revision 324ad24, 255 builds, 15 clients. |
02:00 |
02:03:55 | | Quit furrywolf (Ping timeout: 256 seconds) |
02:04:26 | fs-bluebot | Build Server message: Build round completed after 582 seconds. |
02:04:28 | fs-bluebot | Build Server message: Revision 324ad24 result: All green |
02:06:43 | | Quit xorly (Ping timeout: 240 seconds) |
02:48:30 | *** | Saving seen data "./dancer.seen" |
03:00 |
03:02:41 | | Quit Moarc (Ping timeout: 248 seconds) |
03:03:32 | | Join Moarc [0] (~chujko@a105.net128.okay.pl) |
03:15:58 | | Quit dys (Read error: Connection reset by peer) |
03:23:42 | | Quit ranmachan (Ping timeout: 258 seconds) |
03:33:07 | | Quit Rower (Ping timeout: 240 seconds) |
03:33:53 | | Join Rower [0] (husvagn@d83-183-134-99.cust.tele2.se) |
04:00 |
04:07:19 | | Quit ZincAlloy (Quit: Leaving.) |
04:19:04 | | Quit Rower (Ping timeout: 240 seconds) |
04:19:15 | | Join Rower [0] (husvagn@d83-183-134-99.cust.tele2.se) |
04:48:34 | *** | Saving seen data "./dancer.seen" |
04:48:59 | Bilgus | __builtin: I found part of the issue of the first bug struct GameRec GameList[240]; |
04:50:16 | Bilgus | Moved it to 250 and I got $ more moves in before it freaked moved it to 300 and I got 4 moves and it swaped a pawn with my knight so still something wrong.. |
04:50:24 | Bilgus | $ = 4 |
05:00 |
05:01:11 | [Saint] | A strange game, Bilgus. |
05:01:17 | [Saint] | The only winning move is not to play. |
05:01:31 | Bilgus | chessbox |
05:01:47 | Bilgus | Its all fuckered |
05:02:28 | [Saint] | wow...way to make me feel old my man. |
05:02:40 | [Saint] | _someone_ has to get that reference, surely? |
05:05:51 | Bilgus | I can't say I've seen that movie or maybe I have and forgotten it |
05:06:44 | [Saint] | blasphemy! |
05:08:44 | Bilgus | Nope never saw it lol but I did make that tic tac toe game :p |
05:50:32 | | Quit Rower (Ping timeout: 258 seconds) |
05:50:49 | | Join Rower [0] (husvagn@d83-183-134-99.cust.tele2.se) |
06:00 |
06:01:27 | | Join Senji [0] (~Senji@85.187.103.250) |
06:04:25 | | Quit Senji_ (Ping timeout: 255 seconds) |
06:08:29 | | Quit TheSeven (Disconnected by services) |
06:08:40 | | Join [7] [0] (~quassel@rockbox/developer/TheSeven) |
06:29:51 | | Quit Bray90820 (Ping timeout: 245 seconds) |
06:32:18 | | Join Bray90820 [0] (~bray90820@173-25-204-30.client.mchsi.com) |
06:32:45 | | Quit [Saint] (Remote host closed the connection) |
06:33:57 | | Join [Saint] [0] (~sinner@rockbox/staff/saint) |
06:35:00 | | Join dys [0] (~dys@ip-109-44-1-147.web.vodafone.de) |
06:35:48 | | Quit Rower (Ping timeout: 240 seconds) |
06:36:21 | | Join Rower [0] (husvagn@d83-183-134-99.cust.tele2.se) |
06:46:04 | Bilgus | ok I believe chessbox is fixed |
06:48:35 | *** | Saving seen data "./dancer.seen" |
07:00 |
07:29:13 | | Join wodz [0] (~wodz@iwl138.internetdsl.tpnet.pl) |
07:54:32 | | Quit amiconn (Quit: http://quassel-irc.org - Chat comfortably. Anywhere.) |
07:54:32 | | Quit pixelma (Quit: .) |
07:56:58 | | Join pixelma [0] (pixelma@rockbox/staff/pixelma) |
07:56:58 | | Join amiconn [0] (amiconn@rockbox/developer/amiconn) |
08:00 |
08:14:00 | amazoniantoad | Bilgus, hey\ |
08:14:03 | amazoniantoad | You there? |
08:14:11 | Bilgus | yep for a minute |
08:14:33 | amazoniantoad | Bilgus, so I ahd it all working and the soldering point broke right before I was about to glue it |
08:14:40 | amazoniantoad | IO spent the past 5 hours trying to get it to take again |
08:14:54 | amazoniantoad | Just got it, but now the bluetooth powers but the ipod doesn't. Could the battery just be low? |
08:15:05 | amazoniantoad | Should I charge it? I mean the screen wont turn on |
08:15:28 | Bilgus | which wire was it? |
08:15:45 | amazoniantoad | Black one |
08:15:46 | amazoniantoad | https://imgur.com/a/HDxYM |
08:15:48 | amazoniantoad | Blue circle |
08:16:04 | amazoniantoad | I mean holy hell this was a pain the second time |
08:16:25 | amazoniantoad | But if the bluetooth is turning on, my ipod should be okay right? |
08:16:36 | amazoniantoad | I'm kinda worried now because the screen wont turn on. |
08:17:32 | Bilgus | how long did you hold the soldering iron there? |
08:18:04 | amazoniantoad | Want to see a picture of the state of things? |
08:18:08 | Bilgus | 1st thing i'd do is disconnect the battery |
08:18:18 | Bilgus | sure |
08:18:31 | Bilgus | second thing i'd do is look for solder bridges |
08:19:17 | amazoniantoad | what are those? |
08:19:53 | Bilgus | and the 3rd is take your meter and set it to the diode function ->|- lower right and check across each diode |
08:20:29 | Bilgus | put one lead on the blue circle and the other on the other side of those black boxes top to bottom in that pic |
08:20:41 | Bilgus | then flip the leads and do it again |
08:21:03 | amazoniantoad | Bilgus, http://i.imgsafe.org/ee8cdb8a94.jpg |
08:21:03 | Bilgus | you should get a reading 100-300 one way and a reading of -1 or 0 the other |
08:21:05 | fs-bluebot | Gerrit review #100 at http://gerrit.rockbox.org/r/100 : IAP rework patch 8: Revert to static buffers by Ralf Ertzinger |
08:21:24 | amazoniantoad | The top looks like shit now |
08:21:29 | amazoniantoad | it was really nice the first time around |
08:21:44 | amazoniantoad | Everything worked too |
08:21:47 | Bilgus | first thing that red wire is too long and prone to shorting against the case |
08:21:57 | | Quit Rower (Ping timeout: 264 seconds) |
08:22:08 | Bilgus | you probably fried those diodes heating them up too much |
08:22:19 | amazoniantoad | I tested them and still get power |
08:22:29 | | Join Rower [0] (husvagn@d83-183-134-99.cust.tele2.se) |
08:22:34 | amazoniantoad | Should I check again? |
08:22:38 | amazoniantoad | I just did it a min ago |
08:22:40 | Bilgus | but i do see what looks like a solder bridge above them too |
08:23:08 | Bilgus | well what a diode does is block flow one way but not the other kinda like a one way valve |
08:23:19 | amazoniantoad | okay |
08:23:24 | amazoniantoad | ohhh |
08:23:25 | amazoniantoad | I see |
08:23:31 | amazoniantoad | So I need to move the wire to the left? |
08:24:02 | Bilgus | wire to the left? |
08:24:25 | Bilgus | I see right now that you have a solder bridge just above the blob in that pic |
08:24:36 | Bilgus | up and to the right |
08:24:54 | amazoniantoad | yeah |
08:25:00 | Bilgus | add some flux there and heat it up with your iron and it should cling to each pad |
08:25:04 | amazoniantoad | both of those black chips give me power |
08:25:23 | Bilgus | be sure to wipe your iron first though you don't want to add any more sodler |
08:25:24 | amazoniantoad | so am I trying to break the bridge? |
08:25:27 | Bilgus | solder* |
08:25:57 | Bilgus | to test diodes you need to d/c the battery and put meter on ->|- |
08:26:29 | Bilgus | and put one lead on your blob and the other on the grey side of those black rectangles |
08:26:37 | Bilgus | then flip and note the readings |
08:27:40 | Bilgus | should always have the power disconnected when doing things unless there is no way around it or you need to actually test for power |
08:33:48 | | Join ender` [0] (krneki@foo.eternallybored.org) |
08:34:41 | | Join funman_ [0] (~fun@37.187.19.138) |
08:34:42 | | Quit funman (Ping timeout: 240 seconds) |
08:34:42 | | Quit Cu5tosLim3n (Excess Flood) |
08:34:52 | | Join Cu5tosLimen [0] (~CustosLim@unaffiliated/cust0slim3n) |
08:36:18 | amazoniantoad | Yeah I think the board is fried |
08:36:19 | amazoniantoad | ffs |
08:37:41 | Bilgus | huh? |
08:38:07 | amazoniantoad | I removed the bluetooth solder |
08:38:11 | amazoniantoad | the screen wont turn on |
08:38:37 | Bilgus | ok so again its the solder bridge above it did you test the diodes yet? |
08:38:48 | amazoniantoad | I removed the solder bridge? |
08:38:53 | amazoniantoad | The thing to the right of the blob? |
08:39:03 | amazoniantoad | let me test the diodes again |
08:40:08 | amazoniantoad | -.04 on the left diode |
08:40:19 | amazoniantoad | 3.84 on the right |
08:40:26 | amazoniantoad | Bilgus, ^ |
08:42:18 | Bilgus | https://imgur.com/a/QxGGL |
08:42:22 | | Quit jhMikeS (Ping timeout: 255 seconds) |
08:42:31 | Bilgus | ok so green is at the solder bridge |
08:42:48 | Bilgus | the diodes get tested twice |
08:43:15 | Bilgus | 1st time red on top black on bottom then black on top and red on bottom |
08:44:07 | amazoniantoad | Bilgus, I removed the soldering point |
08:44:15 | amazoniantoad | updated picture? |
08:44:21 | amazoniantoad | ohh |
08:44:27 | amazoniantoad | so that piece of solder is the soldering bridge? |
08:44:39 | Bilgus | yes its shorting those two pads |
08:44:47 | amazoniantoad | fuck |
08:44:51 | amazoniantoad | I just removed the fucking solder |
08:44:55 | amazoniantoad | sorry |
08:44:59 | amazoniantoad | really frustrated lol |
08:45:11 | Bilgus | good blob of flux and touching your iron will make it separate |
08:45:18 | amazoniantoad | okay |
08:45:59 | Bilgus | now as for the diodes assuming you kep your leads the same way when you tested both diodes the one on the left is bad |
08:46:27 | Bilgus | but you need to test both like I said above |
08:46:38 | amazoniantoad | Well the one on the left is .04 |
08:46:44 | amazoniantoad | and the one on the right reads 3.84 |
08:46:57 | Bilgus | and when you flip your meter leads? |
08:47:07 | amazoniantoad | You mean switch black and red? |
08:47:11 | Bilgus | yes |
08:47:15 | amazoniantoad | let me try that now |
08:48:20 | amazoniantoad | one on left jumps from .03 to 1.59 |
08:48:29 | amazoniantoad | the right one reads around .04 |
08:48:36 | *** | Saving seen data "./dancer.seen" |
08:49:24 | | Quit Bray90820 (Ping timeout: 240 seconds) |
08:49:55 | Bilgus | the one on left still sounds suspect |
08:49:57 | amazoniantoad | Bilgus, so how do I separate the bridge? |
08:50:23 | Bilgus | blob of flux then touch your clean iron to the solder blob |
08:51:05 | Bilgus | then pull iron away fling it towards something non flamable then touch it again if it syill isn't separated |
08:54:31 | | Join Bray90820 [0] (~bray90820@173-25-204-30.client.mchsi.com) |
08:55:18 | | Join petur [0] (~petur@rockbox/developer/petur) |
08:58:14 | amazoniantoad | just dropped solder down the port for the battery ribbon |
08:58:18 | amazoniantoad | I'm going to go hang myself now |
09:00 |
09:00:09 | | Join alexweissman [0] (~alexweiss@c-68-51-123-75.hsd1.in.comcast.net) |
09:00:35 | | Quit petur (Read error: Connection reset by peer) |
09:00:59 | | Join p3tur [0] (~petur@91.183.48.77) |
09:01:00 | | Quit p3tur (Changing host) |
09:01:00 | | Join p3tur [0] (~petur@rockbox/developer/petur) |
09:06:01 | | Quit Bray90820 (Ping timeout: 258 seconds) |
09:11:48 | | Join Bray90820 [0] (~bray90820@173-25-204-30.client.mchsi.com) |
09:18:09 | | Nick p3tur is now known as petur (~petur@rockbox/developer/petur) |
09:33:23 | | Join xorly [0] (~xorly@ip-89-176-102-19.net.upcbroadband.cz) |
09:51:47 | | Nick funman_ is now known as funman (~fun@37.187.19.138) |
09:51:50 | | Quit funman (Changing host) |
09:51:50 | | Join funman [0] (~fun@rockbox/developer/funman) |
09:58:08 | | Join elensil [0] (~edhelas@2001:1c02:1903:d800:a81b:a73f:9e5c:5061) |
10:00 |
10:05:38 | | Join pamaury [0] (~pamaury@rockbox/developer/pamaury) |
10:19:34 | | Quit xorly (Ping timeout: 255 seconds) |
10:21:32 | wodz | prof_wolfff: Patched build returns this on usb plug http://paste.debian.net/911514 |
10:21:40 | wodz | prof_wolfff: HID does work |
10:22:40 | | Quit Rower (Ping timeout: 240 seconds) |
10:23:25 | | Join Rower [0] (husvagn@d83-183-134-99.cust.tele2.se) |
10:26:00 | wodz | prof_wolfff: dd reads and writes above 2GB are successful. |
10:28:58 | | Quit pamaury (Ping timeout: 276 seconds) |
10:34:59 | wodz | prof_wolfff: And this patched build does not hang on unplug |
10:48:37 | *** | Saving seen data "./dancer.seen" |
10:52:11 | | Quit Bray90820 (Ping timeout: 240 seconds) |
10:55:35 | | Join xorly [0] (~xorly@ip-89-176-102-19.net.upcbroadband.cz) |
10:55:52 | | Join Bray90820 [0] (~bray90820@173-25-204-30.client.mchsi.com) |
11:00 |
11:08:24 | | Quit Rower (Ping timeout: 240 seconds) |
11:08:44 | | Join Rower [0] (husvagn@d83-183-134-99.cust.tele2.se) |
11:29:22 | | Quit Bray90820 (Ping timeout: 248 seconds) |
11:35:27 | | Join robertd1 [0] (~root@186-90-12-124.genericrev.cantv.net) |
11:39:37 | | Join pamaury [0] (~quassel@rockbox/developer/pamaury) |
11:42:44 | | Quit Marex (Ping timeout: 240 seconds) |
11:43:46 | | Join Marex [0] (~Marex@195.140.253.167) |
11:45:36 | | Join ranmachan [0] (~ranma@yumi.uguu.de) |
11:50:08 | | Join Bray90820 [0] (~bray90820@173-25-204-30.client.mchsi.com) |
12:00 |
12:01:44 | | Quit Bray90820 (Ping timeout: 240 seconds) |
12:19:43 | | Join ZincAlloy [0] (~Adium@2a02:8108:8b80:1700:20af:c468:972a:a6e2) |
12:26:47 | | Join Bray90820 [0] (~bray90820@173-25-204-30.client.mchsi.com) |
12:26:48 | wodz | pamaury: ping |
12:31:08 | | Quit Bray90820 (Ping timeout: 240 seconds) |
12:37:55 | pamaury | wodz: pong |
12:37:59 | | Join Bray90820 [0] (~bray90820@173-25-204-30.client.mchsi.com) |
12:37:59 | | Quit xorly (Ping timeout: 258 seconds) |
12:38:17 | wodz | pamaury: what is the outcome of your aplay tests? |
12:38:40 | wodz | pamaury: what sounds does mtp program does? beeps? |
12:44:00 | | Join skapazzo [0] (~skapazzo@151.9.205.1) |
12:48:40 | *** | Saving seen data "./dancer.seen" |
13:00 |
13:01:10 | pamaury | wodz: no luck :( I found the proper sequence of enable sound, so at least I can always play sound, but it's still distorted |
13:02:05 | wodz | pamaury: What about mtp program? You said it produces undistorted sound (what kind of btw. beeps?) |
13:02:14 | pamaury | beep |
13:02:42 | wodz | pamaury: alright. beeps are generated in hardware by loading proper program into dsp |
13:03:13 | pamaury | well in the case of mpt I'm not so sure |
13:03:39 | wodz | pamaury: seems like sony has proprietary ioctl for this |
13:03:45 | pamaury | I disassembled the code and as far as I can tell, the only way it interacts with alsa is though the mptapp_mixer.sh and and aplay |
13:04:20 | pamaury | and if you look at the mixer script, it uses amixer to tweak controls and aplay to play some audio files in /usr/local/share |
13:05:38 | pamaury | I also disassembled the OF and the audio code is really complicated. But I found the "Builtin" audio startup sequence and it matches what I came up with, basically: |
13:05:38 | pamaury | amixer set cname='CODEC Power Switch' 1 |
13:05:46 | pamaury | amixer set cname='CODEC Mute Switch' 0 |
13:06:16 | pamaury | amixer set cname='Playback Src Switch' 1 # can't remember the exact name, 1 is for 'Music' |
13:06:30 | pamaury | and then the regular alsa stuff |
13:07:58 | wodz | pamaury: but then mptapp_mixer.sh implies you could simpy play wav |
13:08:25 | pamaury | yeah, and when I do it doesn't work, sound is distorted |
13:14:09 | wodz | pamaury: Is noican == noise canceling HP? |
13:14:40 | pamaury | I guess |
13:21:45 | | Join pamaury_ [0] (~pamaury@rockbox/developer/pamaury) |
13:22:24 | pamaury | wodz: one odd thing I noticed today is that the "silence32.wav" file played by mptapp.sh is encoded with 32-bit depth |
13:26:16 | | Join TheLemonMan [0] (~root@irssi/staff/TheLemonMan) |
13:29:51 | wodz | pamaury: interesting |
13:30:28 | wodz | pamaury: well even name implies it is 32bit version :-) |
13:30:58 | | Quit petur (Read error: Connection reset by peer) |
13:30:58 | | Join p3tur [0] (~petur@rockbox/developer/petur) |
13:31:01 | | Nick p3tur is now known as petur (~petur@rockbox/developer/petur) |
13:31:11 | pamaury | yeah but 32-bit audio is unexpected |
13:31:32 | pamaury | I'm wondering if it's possible that the pcm is broken and only expects 32-bit samples |
13:31:53 | pamaury_ | I will test this theory tonight |
13:32:21 | wodz | pamaury_: silence32.wav is the only wav on device |
13:32:43 | pamaury_ | yes I know |
13:35:26 | pamaury_ | I'm still studying the code of mtpapp and OF to see what they do with the dsp stuff |
13:36:06 | | Quit ZincAlloy (Quit: Leaving.) |
13:36:15 | wodz | pamaury_: This file is not silence it is a noise :P |
13:37:01 | pamaury_ | I know find that puzzling, but when played on device it seems to give silence... |
13:37:17 | pamaury_ | I mean in mptapp |
13:37:25 | wodz | pamaury_: you mean by aplay? |
13:37:35 | pamaury_ | I didn't try it with aplay directly |
13:40:33 | | Quit Rower (Ping timeout: 264 seconds) |
13:40:52 | * | wodz is curious enough to test right now |
13:41:09 | | Quit Senji (Ping timeout: 264 seconds) |
13:41:22 | | Join Rower [0] (husvagn@d83-183-134-99.cust.tele2.se) |
13:43:23 | pamaury_ | wodz: don't forget to power up codec and unmute using the sequence I put above |
13:43:50 | wodz | pamaury_: Yeah, just realized that :/ |
13:45:32 | pamaury_ | I left my player at home so I don't have the exact code but you should be able to figure it out ;) |
13:46:13 | pamaury_ | also the dsp stuff is very confusing, the OF opens two devives: /dev/dsp and /dev/sound/dsp and I can't figure out from the sony headers which ioctl applies to what |
13:52:28 | | Join Senji [0] (~Senji@85.187.103.250) |
13:52:37 | * | pamaury_ remembers that /dev/dsp is the old OSS stuff |
13:55:44 | wodz | pamaury_: aplay outputs noise for this file. I can't tell for sure but sounds similar enough to my PC so I can't tell the difference. |
14:00 |
14:00:11 | pamaury_ | wodz: you could try to convert an audio file to wav in 16-bit signed stereo and also in 32-bit signed stereo and try both with aplay ? |
14:00:26 | * | wodz just trying |
14:02:51 | wodz | pamaury_: 16bit wav plays just fine (minus fact that bitrate is wrong. I bet sony expects 48kHz and I dumped 44.1kHz one) |
14:04:05 | wodz | hmm, maybe I screwed conversion |
14:05:22 | pamaury_ | wodz: apaly is supposed to tell the pcm driver the sample rate and all |
14:05:46 | pamaury_ | but now I'm quite convinced that the driver is now following orders correctly |
14:05:49 | pamaury_ | *not |
14:05:55 | wodz | pamaury_: What kind of distortion it was? |
14:06:28 | wodz | pamaury_: No I screwed export to wav apparently. The file advertised itself as 32kHz despite being 44.1kHz |
14:07:10 | pamaury_ | wodz: I can't tell exactly |
14:07:16 | pamaury_ | it's just...wrong |
14:07:40 | wodz | pamaury_: Sonding like overdrived? Or totally scrambled or what? |
14:09:38 | wodz | BTW. working for me init sequence: amixer cset iface=MIXER,name='CODEC Power Switch' 1; amixer cset iface=MIXER,name='CODEC Mute Switch' 0; amixer cset iface=MIXER,name='Playback Src Switch' 1 |
14:10:42 | pamaury_ | not you can recognize the sound but something is not right, it sound saturated and I'm not sure the sampling rate is correct. But it might just be a problem with the sampling rate |
14:11:49 | wodz | pamaury_: The sound could be distorted here as well, I just don't know very well rockbox test tune to tell. |
14:12:56 | wodz | pamaury_: Do you have a clue what is 'CODEC Acoustic Switch' ? |
14:13:26 | pamaury | wodz: try with a music you know |
14:13:31 | pamaury | no clue |
14:13:46 | wodz | pamaury: I don't have here any file I know well enough |
14:16:22 | wodz | pamaury: amixer cset iface=MIXER,name='CODEC Acoustic Switch' 1 seems to make difference. The sound is clearer without saturation |
14:16:49 | wodz | hell, I don't have cable to record it back and compare :/ |
14:18:28 | pamaury_ | the acoustic setting is directly forwarded to the codec driver, you'll have to RE it to find out |
14:19:34 | wodz | pamaury_: I think it will be easier to record samples and compare to originals |
14:19:40 | pamaury_ | yeah |
14:20:06 | wodz | it very well might be some funky switch with wrong name |
14:25:24 | | Quit Rower (Ping timeout: 240 seconds) |
14:25:59 | | Join Rower [0] (husvagn@d83-183-134-99.cust.tele2.se) |
14:27:05 | Bilgus | I tell you what, that chessbox program is a marvel of data input it's a wonder it ever worked at all, big old buffer overflow waiting to happen at every turn |
14:29:28 | Bilgus | and looking at the original source it was just as shaky if not more so in original form |
14:48:42 | *** | Saving seen data "./dancer.seen" |
15:00 |
15:01:42 | | Join ZincAlloy [0] (~Adium@2a02:8108:8b80:1700:b108:e3c0:7a91:5d30) |
15:05:22 | | Quit wodz (Ping timeout: 248 seconds) |
15:08:54 | | Quit Galois (Ping timeout: 255 seconds) |
15:10:34 | | Join Senji_ [0] (~Senji@85.187.103.250) |
15:13:01 | | Quit Senji (Ping timeout: 252 seconds) |
15:15:09 | | Join Galois [0] (djao@efnet.math.uwaterloo.ca) |
15:21:19 | | Join Senji [0] (~Senji@85.187.103.250) |
15:23:39 | | Quit Senji_ (Ping timeout: 240 seconds) |
15:40:37 | prof_wolfff | wodz: at first glance it seems that the USB wire transfers are ok in both directions, but the logs shows read errors when then the OS is detecting and mounting the HDD partitions, looking at your first dmesg log (when you tried to write files) makes me think that the n2g hangs when trying to write 'bad' sectors |
15:42:11 | | Quit Rower (Ping timeout: 240 seconds) |
15:42:23 | | Join Rower [0] (husvagn@d83-183-134-99.cust.tele2.se) |
15:44:46 | prof_wolfff | I do not known how exactly n2g ftl works and how it manages bad sectors, anyway I would start with the read errors, to known if they are real you can try to launch Apple disk mode and read the whole disk using dd and verify if the read errors still appears on dmesg |
15:45:09 | | Join jhMikeS [0] (~jethead71@d192-24-173-177.try.wideopenwest.com) |
16:00 |
16:16:32 | | Join Senji_ [0] (~Senji@85.187.103.250) |
16:18:12 | | Quit fs-bluebot (Ping timeout: 255 seconds) |
16:19:00 | | Quit bluebrother (Ping timeout: 245 seconds) |
16:19:24 | | Quit Senji (Ping timeout: 240 seconds) |
16:20:45 | | Join bluebrother [0] (~dom@rockbox/developer/bluebrother) |
16:23:35 | | Quit jhMikeS (Ping timeout: 245 seconds) |
16:27:58 | | Quit Rower (Ping timeout: 258 seconds) |
16:28:18 | | Join Rower [0] (husvagn@d83-183-134-99.cust.tele2.se) |
16:32:44 | | Join fs-bluebot [0] (~fs-bluebo@x4d0988f7.dyn.telefonica.de) |
16:47:52 | | Quit TheLemonMan (Quit: "It's now safe to turn off your computer.") |
16:48:44 | *** | Saving seen data "./dancer.seen" |
16:51:28 | | Join paulk-collins [0] (~paulk@gagarine.paulk.fr) |
16:53:09 | | Join jhMikeS [0] (~jethead71@d192-24-173-177.try.wideopenwest.com) |
16:55:18 | | Join xorly [0] (~xorly@ip-89-176-102-19.net.upcbroadband.cz) |
17:00 |
17:18:53 | | Quit xorly (Ping timeout: 260 seconds) |
17:20:49 | | Quit pamaury (Remote host closed the connection) |
17:25:21 | | Quit pamaury_ (Ping timeout: 256 seconds) |
17:39:26 | | Quit petur (Quit: Connection reset by beer) |
17:43:43 | | Quit Rower (Ping timeout: 252 seconds) |
17:44:19 | | Join Rower [0] (husvagn@d83-183-134-99.cust.tele2.se) |
17:48:46 | | Join furrywolf [0] (~randyg@70-6-243-186.pools.spcsdns.net) |
18:00 |
18:04:41 | | Quit elensil (Quit: Leaving.) |
18:14:42 | | Join mutnai [0] (6db91733@gateway/web/freenode/ip.109.185.23.51) |
18:15:22 | | Join pamaury [0] (~pamaury@rockbox/developer/pamaury) |
18:19:20 | | Quit Ruhan (Quit: Connection closed for inactivity) |
18:21:26 | pamaury | wodz (logs): CODEC Acoustic seems to help a lot :) |
18:21:51 | pamaury | I tried 32-bit pcm and doesn't make a difference, ie distorted without Acoustic, correct with Acoustic |
18:22:02 | pamaury | however 48KHz sounds wrong, even with Acoustic |
18:22:47 | pamaury | I'll try to record if I can find my jack cable... |
18:24:21 | | Join girafe [0] (~girafe@LFbn-1-11729-221.w2-7.abo.wanadoo.fr) |
18:26:36 | | Join xorly [0] (~xorly@ip-89-176-102-19.net.upcbroadband.cz) |
18:28:33 | | Quit pixelma (Quit: .) |
18:28:33 | | Quit amiconn (Quit: http://quassel-irc.org - Chat comfortably. Anywhere.) |
18:30:47 | | Join pixelma [0] (~pixelma@rockbox/staff/pixelma) |
18:30:47 | | Join amiconn [0] (~amiconn@rockbox/developer/amiconn) |
18:44:39 | | Quit Rower (Ping timeout: 240 seconds) |
18:45:04 | | Join Rower [0] (husvagn@d83-183-134-99.cust.tele2.se) |
18:48:47 | *** | Saving seen data "./dancer.seen" |
19:00 |
19:07:14 | | Quit ender` (Quit: I used to build time machines when I was older.) |
19:09:14 | | Quit Senji_ (Read error: Connection reset by peer) |
19:09:32 | | Join Senji_ [0] (~Senji@85.187.103.250) |
19:12:54 | | Join ender` [0] (krneki@foo.eternallybored.org) |
19:27:38 | | Join lebellium [0] (~chatzilla@89-93-177-91.hfc.dyn.abo.bbox.fr) |
19:30:57 | | Quit Rower (Ping timeout: 264 seconds) |
19:31:24 | | Join Rower [0] (husvagn@d83-183-134-99.cust.tele2.se) |
19:45:38 | | Quit mutnai (Ping timeout: 260 seconds) |
19:48:02 | | Quit alucryd (Remote host closed the connection) |
19:49:01 | pamaury | dys: https://github.com/pamaury/onkyo_teac_tools |
19:49:03 | | Join alucryd [0] (~quassel@archlinux/developer/alucryd) |
19:49:20 | pamaury | I wrote the tool and tried it on TEAC firmware 1.30 |
19:50:17 | pamaury | it produces 2 elf files: one which looks like init (my guess is that it inits the SDRAM and/or peripherals) and is quite small. The second is the entire application. There is no way to distinguish data from code so the tool marks all data sections as code |
20:00 |
20:12:19 | dys | pamaury: It works on all images I have. the call-graph script now resolves 3786 calls (vs. 2491 with the boot headers still in) |
20:14:17 | [Saint] | wow - haven't seen TEAC in decades. |
20:14:24 | [Saint] | they're still alive? |
20:15:31 | dys | [Saint]: they appear to build luxury DAPs now. http://www.teac.com/product/ha-p90sd/ |
20:15:43 | dys | …with crappy firmware |
20:16:15 | [Saint] | Huh, I guess the shitty cassette tape market died off. |
20:16:16 | dys | used ones can be bought rather cheap compared to the USRP |
20:16:21 | dys | hehe |
20:19:17 | | Join mutnai [0] (6db91733@gateway/web/freenode/ip.109.185.23.51) |
20:20:49 | | Join petur [0] (~petur@rockbox/developer/petur) |
20:22:09 | | Quit mutnai (Client Quit) |
20:29:37 | | Quit scorche (Ping timeout: 248 seconds) |
20:32:57 | | Join scorche [0] (~scorche@rockbox/administrator/scorche) |
20:48:50 | *** | Saving seen data "./dancer.seen" |
21:00 |
21:51:40 | | Quit kugel (Ping timeout: 240 seconds) |
22:00 |
22:16:49 | | Quit Rower (Ping timeout: 248 seconds) |
22:17:17 | | Join Rower [0] (husvagn@d83-183-134-99.cust.tele2.se) |
22:18:35 | pamaury | lebellium: I have some sound on the E580 \o/ |
22:18:57 | pamaury | (non-distorted sound) |
22:19:37 | | Join wodz [0] (~wodz@89-74-169-198.dynamic.chello.pl) |
22:21:58 | pamaury | wodz: hey |
22:22:16 | pamaury | I modified rockbox to set acoustic mode and indeed the sound is now okay :) |
22:22:28 | wodz | pamaury: nice to hear that sound on nwz is somewhat working :-) |
22:23:03 | pamaury | It's still a hack for now, using system("amixer ..."); but at least I can reliably play sound and it's not distorted |
22:23:22 | wodz | pamaury: big step forward indeed |
22:23:46 | pamaury | there are few annoying things though: Sony exports the volume as a percent instead of dB |
22:23:59 | wodz | pamaury: How is this is done in amixer? some ioctl? |
22:24:06 | pamaury | amixer |
22:24:22 | pamaury | using the 'standard' playback volume |
22:24:43 | pamaury | there might be other ways, I don't know |
22:24:52 | pamaury | does the codec expose the registers to userspace ? |
22:25:17 | pamaury | also what the hell is acoustic mode ?? |
22:27:03 | wodz | pamaury: looking at cs47l01_d.ko I think it exposes codec registers somewhere in /proc. This is not very useful though as I can't find any documentation about cs47l01 |
22:29:45 | pamaury | it might be close enough to other codecs that with RE we figure some things out ? |
22:30:11 | pamaury | it's a bit strange that google does not seem to know *anything* about cs47L01 |
22:32:29 | wodz | pamaury: I think registers are exposed under /proc/asound/card0/ |
22:33:15 | * | pamaury looks |
22:34:06 | wodz | driver seems to support both reading and writing (I mean in both reading and writing hook there are calls to i2c transfer function) |
22:34:07 | pamaury | wodz: http://pastebin.com/LehN6Epu |
22:34:55 | wodz | pamaury: right, that match what I see in disasm |
22:35:41 | pamaury | there are interested bits, like "vol", but it's likely it is also in percent |
22:39:27 | wodz | pamaury: On init driver reads nvp I think index 0x0b |
22:43:28 | pamaury | wodz: is that the driver from E580 ? |
22:43:52 | pamaury | because index 0xb=011=kas, seems strange |
22:45:48 | wodz | from e474 |
22:46:54 | pamaury | ah let me see |
22:46:57 | wodz | the call is icx_nvp_read(0xb, &buf, 8) |
22:47:25 | pamaury | hum also kas |
22:48:47 | wodz | pamaury: It checks lower uint32 with 3 and 0x103 |
22:48:51 | *** | Saving seen data "./dancer.seen" |
22:49:37 | pamaury | hum, that sounds like a destination check, ie node "shp |
22:49:50 | pamaury | which is note 12 |
22:49:52 | pamaury | *node |
22:52:31 | __builtin | Bilgus: nice |
22:56:06 | __builtin | are you sure short is 4 bytes though? (I haven't checked) |
22:57:16 | wodz | __builtin: on most 32bit archs short is 2 bytes |
22:57:17 | | Quit paulk-collins (Quit: Leaving) |
22:58:05 | wodz | __builtin: definitely on rockbox archs (coldfire, sh4, arm, mips) short is 2 bytes |
22:58:20 | __builtin | yeah, that's what I was thinking, maybe Bilgus tested on a 64-bit sim or something? |
22:58:52 | wodz | could be |
22:59:00 | __builtin | by the way, how far did the whole ELF loader thing get? |
23:00 |
23:00:42 | wodz | Working proof of concept for single target. |
23:03:03 | | Quit Rower (Ping timeout: 260 seconds) |
23:03:06 | __builtin | hmm, ok |
23:03:24 | | Join Rower [0] (husvagn@d83-183-134-99.cust.tele2.se) |
23:04:57 | | Quit petur (Quit: Leaving) |
23:05:41 | wodz | __builtin: Extend this to more target is a matter with adding export symbol defines to target specific sources. But then problems starts - the next step would be to dynamically allocate plugin/codec buffer. I didn't reach that stage. |
23:06:59 | wodz | __builtin: And 'module symbol dependencies' are not touched - I mean it should be possible to load 'module' which exports some symbol needed by other module (just like dependent modules in linux kernel) |
23:08:58 | lebellium | pamaury: congrats! I knew you wouldn't need more than 24 hours to fix any issue :D |
23:10:13 | pamaury | we still don't understand why it works though... |
23:10:23 | pamaury | lebellium: does 'Acoustic mode' rings a bell ? |
23:10:50 | lebellium | There is no "acoustic mode" in OF |
23:10:59 | lebellium | or at least not called like that |
23:14:08 | | Quit wodz (Quit: Leaving) |
23:24:44 | | Join Bilgus_ph [0] (~Bilgus_ph@108.115.219.165) |
23:24:51 | | Quit pamaury (Read error: Connection reset by peer) |
23:33:18 | Bilgus_ph | you know __builtin i didn't even think about it being a 64 bit sim maybe i should make it explicit with uint8 just to be sure. also im pretty sure rolling the buffer will break .pgn saving but since partial games weren't saved anyways it isn't too high on my list |
23:35:03 | [Saint] | I looked at the chessbox.rock source, and my God you weren't kidding were you Bilgus_ph... |
23:35:15 | [Saint] | I'm really surprised that ever worked. |
23:35:32 | [Saint] | Actually, I'm not confident it ever did. |
23:36:27 | __builtin | ideally the whole plugin needs a rewrite |
23:37:27 | __builtin | I looked at it and it is not something that facilitates easy debugging, or even reading |
23:38:34 | | Quit Senji_ (Ping timeout: 240 seconds) |
23:39:29 | Bilgus_ph | Yeah I CALLS NOT IT |
23:40:43 | __builtin | maybe I'll find a good SDL chess program to port and replace it :D |
23:41:40 | __builtin | the current engine is very strong, though |
23:42:03 | __builtin | I've never managed to beat it, or even gain an advantage on it |
23:42:12 | Bilgus_ph | Agreed |
23:43:46 | __builtin | good, so it's not just me! :D |
23:45:21 | | Quit Bray90820 (Ping timeout: 248 seconds) |
23:48:03 | | Quit lebellium (Quit: ChatZilla 0.9.93 [Firefox 51.0.1/20170125094131]) |
23:51:02 | | Join Bray90820 [0] (~bray90820@173-25-204-30.client.mchsi.com) |
23:55:13 | __builtin | Bilgus: one thing regarding uint8_t, though |
23:55:22 | __builtin | sizeof(char) is guaranteed by the standard to be 1 |
23:55:27 | __builtin | and char is almost always 8 bits |
23:56:35 | __builtin | and if it's not, we have bigger issues than that :P |