*** shadsec2 has joined #maemo-devel | 00:20 | |
*** shadsec2 is now known as ShadSEC | 00:20 | |
*** _0x47 has quit IRC | 00:52 | |
*** swc|666 has quit IRC | 01:24 | |
*** SpeedEvil1 has joined #maemo-devel | 02:12 | |
*** SpeedEvil has quit IRC | 02:14 | |
*** SpeedEvil has joined #maemo-devel | 02:15 | |
*** SpeedEvil1 has quit IRC | 02:16 | |
*** SpeedEvil has quit IRC | 02:36 | |
*** SpeedEvil has joined #maemo-devel | 02:52 | |
*** SpeedEvil has quit IRC | 03:05 | |
*** SpeedEvil has joined #maemo-devel | 03:06 | |
*** swc|666 has joined #maemo-devel | 04:59 | |
*** tealbird has quit IRC | 05:22 | |
*** Milhouse has joined #maemo-devel | 05:47 | |
*** kamui__ has joined #maemo-devel | 07:18 | |
*** shinkamui has quit IRC | 07:21 | |
*** achipa has quit IRC | 07:33 | |
*** DocScrutinizer has quit IRC | 07:34 | |
*** DocScrutinizer has joined #maemo-devel | 07:34 | |
*** tealbird has joined #maemo-devel | 08:06 | |
*** DeeGeneRaL has joined #maemo-devel | 08:15 | |
DeeGeneRaL | can i get help reflashing my nokia n800? | 08:15 |
---|---|---|
*** tealbird has quit IRC | 08:33 | |
air | what do you need? | 08:34 |
*** eggonlea has joined #maemo-devel | 08:49 | |
*** boogeyman has quit IRC | 08:51 | |
*** achipa has joined #maemo-devel | 09:20 | |
*** swc|666 has quit IRC | 10:21 | |
*** kulve has quit IRC | 10:58 | |
*** amigadave has joined #maemo-devel | 11:02 | |
*** kulve has joined #maemo-devel | 12:07 | |
*** kulve has quit IRC | 12:26 | |
*** kulve has joined #maemo-devel | 12:29 | |
*** kulve has quit IRC | 12:31 | |
*** kulve has joined #maemo-devel | 12:33 | |
*** _kW has joined #maemo-devel | 13:04 | |
*** _kW is now known as kaawee | 13:06 | |
*** kaawee has quit IRC | 13:08 | |
*** kaawee has joined #maemo-devel | 13:08 | |
*** kaawee is now known as kawe | 13:09 | |
*** MNZ has joined #maemo-devel | 13:13 | |
*** lizardo has joined #maemo-devel | 14:00 | |
*** kawe has quit IRC | 14:09 | |
*** kawe has joined #maemo-devel | 14:20 | |
*** kawe has quit IRC | 14:26 | |
MNZ | I've had very little time for hackery this past few days, but I just sat down to work some more on the audio codec driver and I sort of have bad news :/ | 15:00 |
MNZ | DocScrutinizer, SpeedEvil, ping | 15:00 |
SpeedEvil | ? | 15:00 |
SpeedEvil | Oh well. | 15:01 |
MNZ | The de-emph filter is very limited, it has only one 'pole' and one 'zero' | 15:01 |
SpeedEvil | Yeah - I kinda assumed that | 15:01 |
MNZ | Long story short, amplitude response is only 0 at frequency 0 | 15:01 |
SpeedEvil | When you have only 3 or 4 taps, the frequency response is not going to be complex. | 15:01 |
SpeedEvil | In practice, speaker protection doesn't require that | 15:02 |
MNZ | so with a high pass filter at cut off freq 250hz, with sampling rate 48kHz, amplitude is at about 50% at ~70Hz | 15:02 |
SpeedEvil | And -3dB/octave should be just fine. | 15:02 |
MNZ | SpeedEvil, are you positively sure? Will this be sufficient? | 15:04 |
SpeedEvil | No. | 15:04 |
SpeedEvil | Unfortunately, it's hard to tell without speaker datasheets. | 15:04 |
SpeedEvil | I may at some point inthe nearish future be opening up my n900 | 15:05 |
MNZ | I tried out the filter on headphone output with cut off at 200Hz and most/all of the bass was pretty much gone (as far as my ears could tell) | 15:05 |
SpeedEvil | To add a compass. | 15:05 |
SpeedEvil | And could measure stuff a bit better at that point | 15:05 |
DocScrutinizer | yup | 15:05 |
SpeedEvil | I would be surprised if there was a limit other than total dissipation, and no clipping | 15:05 |
SpeedEvil | That is - under 70mW total (guess) and not actually banging against the stops | 15:06 |
DocScrutinizer | speaker amp is d-class without coupling C in the output, this means the amp is +-0dB down to DC | 15:06 |
SpeedEvil | ah. | 15:07 |
SpeedEvil | That is clearly one reason, and will be entirely fixed by a filter that doesn't pass DC | 15:07 |
DocScrutinizer | it's probably rather easy to kill it with audio samples having DC offset or very low freq components | 15:08 |
MNZ | And the filter definitely doesn't pass DC | 15:08 |
DocScrutinizer | well, the amp input isn't DC coupled, but it has really decent capacitors in there, sufficient for freq down to some Hz | 15:09 |
MNZ | This is how scilab plots the filter with cut-off at 250Hz http://i56.tinypic.com/21jvl2w.png | 15:11 |
DocScrutinizer | C are 100nF, but amp inp Z is unclear (as I'm too lazy to search for datasheet :-P) | 15:11 |
DocScrutinizer | what's X ?? | 15:12 |
MNZ | multiply by sampling rate (48kHz) | 15:12 |
DocScrutinizer | I suppose it's not Hz | 15:12 |
DocScrutinizer | aaah | 15:12 |
MNZ | 250Hz is at .0052 | 15:12 |
DocScrutinizer | MNZ: I'd bet my speakers on this :-) | 15:14 |
MNZ | By all means, go ahead :D Iike I said, I tested on headphones and all audible bass is gone. | 15:14 |
MNZ | If you are willing to test I can roll a patch | 15:15 |
*** kawe has joined #maemo-devel | 15:16 | |
*** lmoura_ has quit IRC | 15:17 | |
*** lmoura has joined #maemo-devel | 15:17 | |
DocScrutinizer | hmm, what's meaning of "test" here. I don't think I'll go as far as trying to intentionally kill my speakers and see if that filter is preventing that | 15:21 |
MNZ | DocScrutinizer, so how far are you willing to go exactly :D | 15:23 |
DocScrutinizer | you *could* connect a DVM to headphones jack, and test filter response by sending a -6dB sweep form 0..1000Hz | 15:23 |
DocScrutinizer | usual DVM should work on 1000Hz | 15:23 |
DocScrutinizer | sox e.g can create arbitrary sine waves at any freq and level | 15:24 |
MNZ | I'd thought of doing that actually, but for the PA side of things | 15:25 |
MNZ | ie, play such an mp3 and dump PA output to see what it's doing | 15:25 |
MNZ | and by mp3 I meant audio file... they have become synonyms to me :/ | 15:26 |
DocScrutinizer | well, do it for your filter as well, and I'll review and we both sign for correctness of procedure and results, so there's no more arguing about if that filter is good enough to replace PA | 15:26 |
DocScrutinizer | yeah, but use .wav by all means | 15:26 |
MNZ | I wasn't *really* going to use an mp3 haha. Anyway, I'll see what I can do about this | 15:27 |
*** lupine_85 has joined #maemo-devel | 15:51 | |
*** kawe has quit IRC | 15:54 | |
*** kawe has joined #maemo-devel | 15:57 | |
*** alvaro__ has joined #maemo-devel | 16:05 | |
*** kawe has quit IRC | 16:22 | |
*** kawe has joined #maemo-devel | 16:27 | |
*** achipa has quit IRC | 17:08 | |
*** edisson has joined #maemo-devel | 17:16 | |
*** kawe has quit IRC | 17:35 | |
*** kawe has joined #maemo-devel | 17:38 | |
*** kawe has quit IRC | 17:46 | |
*** amigadave has quit IRC | 17:57 | |
*** kawe has joined #maemo-devel | 18:02 | |
*** Milhouse has quit IRC | 18:02 | |
*** Milhouse has joined #maemo-devel | 18:11 | |
*** Milhouse has joined #maemo-devel | 18:11 | |
MNZ | one lunch and some hackery later, the PA filter's cut-off is at 350Hz and amplitude only reaches 0 at DC | 18:27 |
*** jacekowski has quit IRC | 18:32 | |
*** jacekowski has joined #maemo-devel | 18:32 | |
*** pH5 has joined #maemo-devel | 19:10 | |
*** shinkamui has joined #maemo-devel | 19:18 | |
*** kamui__ has quit IRC | 19:22 | |
*** _0x47 has joined #maemo-devel | 19:29 | |
*** kawe has quit IRC | 19:33 | |
MNZ | I've done my calculations and I've made the amplitude decline slightly faster than PA. I'm pretty convinced this is good enough for the speakers | 19:34 |
*** kawe has joined #maemo-devel | 20:00 | |
*** wnd has quit IRC | 20:00 | |
*** kawe has quit IRC | 20:06 | |
*** mirr0r has quit IRC | 20:19 | |
*** mirr0r has joined #maemo-devel | 20:19 | |
*** _0x471 has joined #maemo-devel | 20:22 | |
*** _0x47 has quit IRC | 20:25 | |
*** _0x471 has quit IRC | 20:29 | |
DeeGeneRaL | can i get some help with my nokia n800 | 21:01 |
*** kawe has joined #maemo-devel | 21:03 | |
*** DeeGeneRaL has left #maemo-devel | 21:11 | |
SpeedEvil | No. | 21:15 |
*** kawe has quit IRC | 21:16 | |
shadeslayer | hehe | 21:24 |
MNZ | SpeedEvil, DocScrutinizer I've analyzed the PA filter like I already said and I set the deemph filter to a slightly more aggressive high pass. FrieT on #maemo is willing to test it for me | 21:29 |
SpeedEvil | :) | 21:29 |
SpeedEvil | don't you have a device? | 21:29 |
MNZ | I do, but I'm only 99% sure about this. That 1% = speaker blown. And my dad would kill me heh | 21:30 |
SpeedEvil | ah | 21:30 |
lcuk | MNZ, !! | 21:30 |
lcuk | headphones | 21:31 |
MNZ | lcuk, yes I've tested on headphones, and it works | 21:31 |
MNZ | like I said, 99% sure. It's really that I'm not sure if there's something more to it besides the low freqs that can destroy the speaker | 21:32 |
MohammadAG51 | hmm | 21:32 |
MohammadAG51 | someone I hate has an N900 | 21:32 |
MohammadAG51 | will that do? :P | 21:32 |
MNZ | hehe | 21:33 |
MohammadAG51 | hmm, 1%? not good enough | 21:33 |
MNZ | actually, you can easily blow the speakers of anyone.... you just have to make them play something with mplayer directly to alsa | 21:33 |
lcuk | hrm | 21:33 |
MNZ | mplayer -ao alsa:device=hw:0 | 21:33 |
lcuk | that sounds more and more worrying | 21:33 |
lcuk | ! | 21:33 |
MNZ | don't do that kids | 21:33 |
MNZ | one catch though | 21:33 |
MNZ | that's not enabled by default | 21:33 |
MNZ | need to enable it in /etc/asound.conf | 21:34 |
MNZ | only the pulse device is enabled | 21:34 |
MohammadAG51 | oh | 21:34 |
MohammadAG51 | wait, WHAT | 21:34 |
MNZ | so: add a few lines in /etc/asound.conf, then mplayer and boom | 21:34 |
MohammadAG51 | <MNZ> actually, you can easily blow the speakers of anyone.... you just have to make them play something with mplayer directly to alsa | 21:34 |
MohammadAG51 | wtf | 21:34 |
MohammadAG51 | doesn't nitdroid do that? | 21:34 |
MohammadAG51 | I've noticed a higher volume on it | 21:34 |
MNZ | they probably have some other speaker protection somewhere | 21:35 |
MohammadAG51 | nope | 21:35 |
MNZ | or maybe that low freq thing is a myth.... | 21:35 |
MNZ | :D | 21:35 |
MohammadAG51 | at 100 percent the device kinda vibrates | 21:35 |
MohammadAG51 | cause of the loud sound | 21:35 |
MNZ | hrmmmm..... | 21:35 |
MNZ | directly to alsa? and there are no active alsa plugins in asound.conf that maybe used for filtering? | 21:35 |
MohammadAG51 | it vibrates like retarded bass | 21:36 |
MohammadAG51 | +a* | 21:36 |
MohammadAG51 | ask in #nitdroid, never tried it after a first run, too worrying | 21:36 |
MNZ | wtf. and the speakers worked again juts fine? | 21:36 |
SpeedEvil | It is unlikely to be instnat damage | 21:37 |
MNZ | well if you are playing a 4 minute song that should be enough no? | 21:37 |
MNZ | (I would imagine) | 21:37 |
MohammadAG51 | i played kryptonite twice and another song | 21:38 |
MohammadAG51 | more than 4 mins | 21:38 |
MohammadAG51 | speakers work fine | 21:38 |
MNZ | maybe it wasn't bassy enough :P | 21:39 |
MohammadAG51 | or my head has awesome sound imagination | 21:39 |
MohammadAG51 | can't remember the other song, though it was bassy :P | 21:39 |
MohammadAG51 | i think it was Low | 21:39 |
MohammadAG51 | Flo Rida | 21:39 |
DocScrutinizer | guaranteed speaker blowout | 21:41 |
DocScrutinizer | screw nitdroid | 21:41 |
DocScrutinizer | rumour has it the last delay of N900 rollout was due to implementation of audio protection, as they found speakers 'burning' without it | 21:42 |
MNZ | But if it's not instant damage then I should man up and just try it myself | 21:42 |
DocScrutinizer | Don't think Nokia introduced this for mere shits and giggles | 21:42 |
* MohammadAG51 shits and giggles :P | 21:43 | |
DocScrutinizer | MNZ: it's unpredictable, and does wear your hardwrae no matter what, just like overclocking does | 21:43 |
MNZ | DocScrutinizer, I'm pretttty sure I've nailed it down though. The filter is now even slightly more aggressive than what PA is doing, just to be sure | 21:44 |
DocScrutinizer | sounds pretty ok to me | 21:44 |
MNZ | btw, PA introduces a considerable bunch of nice to the audio stream | 21:44 |
DocScrutinizer | nice like what? | 21:45 |
DocScrutinizer | nice like renice 20 ? | 21:45 |
MNZ | noise* | 21:45 |
MNZ | haha | 21:45 |
DocScrutinizer | ooh | 21:45 |
ShadowJK | atleast it's not as bad on N8x0 where the hw introduced massive amounts of noise :/ | 21:49 |
ShadowJK | btw, I wish there was headphone blowout prevention in N900 :P | 21:50 |
ShadowJK | I've blown a few when plugging in | 21:50 |
MNZ | ????? | 21:50 |
ShadowJK | there's a loud POP when I plug in headphones | 21:51 |
MNZ | on the N900 ? | 21:51 |
ShadowJK | yeah | 21:51 |
MNZ | weird, never had that | 21:51 |
ShadowJK | Sometimes it doesn't do it if I plug it in very very fast | 21:51 |
ShadowJK | I think the headset/tvout detection runs too early? | 21:52 |
ShadowJK | or the amp is switched on too early.. or something like that | 21:52 |
MohammadAG51 | i've plugged mine in slowly/quickly | 21:52 |
MohammadAG51 | no pop | 21:52 |
ShadowJK | or it gets turned on with volume at max | 21:52 |
MNZ | No pops here either | 21:52 |
DocScrutinizer | ShadowJK: wtf? MIC_BIAS not disabled? AV-video-out enabled? headphones amp misconfigured? | 21:52 |
ShadowJK | It doesn't do it if I first plug in an extension cord ;p | 21:52 |
ShadowJK | And the default nokia headphones don't do it either, but they have the sensitivity of a large brick anyway | 21:53 |
DocScrutinizer | this makes me think it's wrong about what is actually connected | 21:53 |
ShadowJK | it does a few "biip biip bip" and presents the headset icon instead of headphone icon if I plug in headphones slowly ;p | 21:54 |
DocScrutinizer | never knew there's a difference | 22:00 |
DocScrutinizer | also what's the bipbip? | 22:00 |
ShadowJK | I thought I was hearing probing signals to detect headset button | 22:01 |
ShadowJK | or something similar | 22:01 |
DocScrutinizer | yeah, sounds like | 22:01 |
DocScrutinizer | though that shouldn't beep | 22:02 |
MohammadAG51 | i think it doesn't detect the button like that | 22:02 |
MohammadAG51 | that uses the 4th pin | 22:02 |
ShadowJK | These are the same class of headpones that can pick up the interference caused by N800 touchscreen signals | 22:05 |
ShadowJK | and in the right room in my house, with the headphone coord dangling but unconnected, and the right shirt, I can determine whether there's power flowing to the water heater or not :D | 22:06 |
ShadowJK | (there's a low pitched hum that builds up slowly and then pops and goes away when I touch the plug) | 22:07 |
MNZ | ShadowJK, that is just too sensitive | 22:09 |
ShadowJK | one notch above muted is a bit louder than my usual playback volume too :) | 22:10 |
*** silbo__ has joined #maemo-devel | 22:26 | |
*** edisson has quit IRC | 22:35 | |
air | anyone know what mce command keycode locks maemo4? | 23:02 |
MNZ | DocScrutinizer, can I have a link to that alsa plugin that you told me about? | 23:21 |
DocScrutinizer | MNZ: http://people.openmoko.org/joerg/ALSA/ACI/acihooklib/ | 23:47 |
DocScrutinizer | MNZ: see, this is the result of one year thinking and reducing complexity while exploiting what's already there | 23:52 |
DocScrutinizer | :-D | 23:52 |
*** lizardo has quit IRC | 23:53 | |
MNZ | Nice doc :D | 23:53 |
MNZ | This will come in handy | 23:53 |
DocScrutinizer | then, as nobody really picked it up, I abandoned it | 23:53 |
MNZ | it's in a usable state though? | 23:54 |
DocScrutinizer | thought it'd be a brilliant concept, but nobody else was interested | 23:54 |
DocScrutinizer | it works, needs cleanup | 23:54 |
SpeedEvil | Intreresting. | 23:54 |
DocScrutinizer | tested with the .asoundrc you find there | 23:54 |
*** pH5 has quit IRC | 23:55 | |
DocScrutinizer | you can call arbitrary commands on audio device open(), close(), and you can make open() fail when return code of called cmd is error | 23:55 |
MNZ | about muting everything else, any ideas? | 23:56 |
DocScrutinizer | meanwhile I hope the bug in ALSA we found and patched, was patched upstream as well | 23:56 |
DocScrutinizer | MNZ: see softvol same .asoundrc | 23:57 |
DocScrutinizer | think about a softvol down after a dmix | 23:57 |
DocScrutinizer | you can ute *all* processes that had opened that dmix for audio output | 23:57 |
DocScrutinizer | mute even | 23:58 |
Generated by irclog2html.py 4.0.0 by Marius Gedminas - find it at https://mg.pov.lt/irclog2html/!