00:02.37 | cr2 | good night :) |
00:02.48 | BabelO | good night |
00:03.15 | BabelO | me too bed time |
00:06.03 | bd2 | psokolovsky, sent other battery patches |
00:06.28 | psokolovsky | thanks! damn, gmail pop3 doesn't work ;-( |
00:12.02 | BabelO | psokolovsky: blueangel power driver to new api is ok :) send a patch tomorrow |
00:12.04 | BabelO | good night |
00:12.26 | psokolovsky | cool! gn! |
00:25.39 | psokolovsky | bd2: ok, so what's the reason for classdev -> dev conversion? |
00:26.13 | bd2 | psokolovsky, closer to mainline |
00:26.22 | bd2 | psokolovsky, remember that classdev will gone? |
00:26.36 | psokolovsky | so, that's it? |
00:26.51 | bd2 | usual "device" infrastructure is ready to replace classdev, so we're following |
00:27.18 | psokolovsky | ok |
00:27.57 | psokolovsky | bd2: what about /sys/class stuff? is it now /sys/device ? |
00:28.24 | bd2 | psokolovsky, nope. it's /sys/class/ (but now is symlinks to actual device) |
00:28.37 | psokolovsky | ok |
00:29.02 | bd2 | # ls -al /sys/class/battery/main-battery |
00:29.02 | bd2 | lrwxrwxrwx 1 root root 0 Jan 1 05:35 /sys/class/battery/main-battery -> ../../devices/platform/ds2760-battery/main-battery |
00:30.16 | bd2 | # cat /sys/class/battery/main-battery/status |
00:30.17 | bd2 | Discharging |
00:30.29 | bd2 | but it will still work old-way |
00:31.25 | bd2 | I guess /sys/class/ will never gone. it's just as /sys/bus, a device ""type"" |
00:32.44 | psokolovsky | I hope. but who knows mainline mad-men ;-\ |
00:32.57 | bd2 | ;-) |
03:45.06 | *** join/#htc-linux RoEn_PC (n=roen@p54a66f24.dip.t-dialin.net) |
05:06.55 | *** join/#htc-linux sadeness_ (n=LamersIn@nat2.rlan.ru) |
05:16.09 | *** join/#htc-linux rmoravcik (n=rmoravci@pc-3s0zt5w2e4y0vzmhnrzq3a21zqajzfw.users.student.utc.sk) |
05:29.16 | *** join/#htc-linux _law_ (n=law@mail.stiftadmont.at) |
05:47.33 | *** join/#htc-linux eremias (n=fdsfs@ACAE5B51.ipt.aol.com) |
05:57.16 | *** join/#htc-linux pleemans (n=peter@d5152D19B.access.telenet.be) |
06:06.39 | *** join/#htc-linux rob_w (n=rob_w@p549b8aa1.dip0.t-ipconnect.de) |
06:40.07 | *** join/#htc-linux goxboxlive (n=goxboxli@195.159.97.196) |
06:40.19 | goxboxlive | good morning |
06:42.21 | sadeness | goxboxlive, |
07:02.09 | goxboxlive | sadeness: yes |
07:03.24 | sadeness | hilite, just mean "good morning to you too" |
07:04.40 | goxboxlive | ahh good morning |
07:07.43 | *** join/#htc-linux Fossi (n=cmewes@195.177.48.115) |
07:15.19 | *** join/#htc-linux Foxdie (i=Foxdie@77-98-48-193.cable.ubr05.harb.blueyonder.co.uk) |
08:36.02 | *** join/#htc-linux tudenbart (n=willi@xdsl-81-173-172-36.netcologne.de) |
09:14.53 | *** join/#htc-linux BabelO (n=root@lun34-2-82-238-28-28.fbx.proxad.net) |
09:21.54 | *** join/#htc-linux kdag (n=aeroflot@84-74-29-80.dclient.hispeed.ch) |
09:39.14 | *** join/#htc-linux psokolovsky (n=psokolov@82.193.98.4) |
09:41.51 | BabelO | hi |
09:41.59 | BabelO | bd2: are you around ? |
09:54.32 | psokolovsky | "Do it three times just to be sure it is finished" |
09:54.33 | psokolovsky | lol |
09:54.38 | psokolovsky | Hi! |
09:57.05 | BabelO | hi psokolovsky |
09:57.46 | BabelO | i want to ask bd2 how he support backup battery with new API |
09:58.00 | goxboxlive | psokolovsky: Yes, there are a lot of peoples who complaines about booting stops at "init". And thats the only reson i can figure out causes the problem. |
09:58.18 | psokolovsky | BabelO: hi! just in case, feel free ask me, if bd2 not online. and as you saw, bd2 posted another batch of power-related patches, to be committed soon. |
09:58.43 | BabelO | i need to add a tsc2200_battery to hwmon/battery |
09:59.10 | psokolovsky | BabelO: backup battery is supported just the same as main, except that only main's status is being reported (via leds, etc.) |
09:59.30 | psokolovsky | BabelO: you can look at hx4700 or h4000 code - they both handle backup battery |
09:59.36 | BabelO | yes i understand now, i see a adc_battery.c |
09:59.53 | BabelO | it is backup battery for hx4700 |
10:00.34 | BabelO | so need to submit a patch to support tsc2200_battery and maybe another patch for adc support in tsc2200 |
10:01.14 | BabelO | now with this code it is really nice, all is common :) |
10:02.02 | psokolovsky | BabelO: well, yes, ideal soultion is exactly to write an ADC driver for tsc2200, and drop adhoc tsc2200_ts & tsc2200_battery ;-) |
10:02.41 | psokolovsky | BabelO: yes! maintenance should be alleviated, and we finally should have sustained quality ;-) |
10:03.09 | BabelO | yes and bug are common too :) so quickly seen |
10:04.07 | BabelO | i don't know if you remember but on BA ds1wm is not on asic chipset |
10:04.43 | BabelO | and sometimes when i modprobe driver for battery, got lot of irq demux dmesg |
10:05.24 | psokolovsky | BabelO: yes, I remember. is that behavior with new driver too? |
10:07.20 | BabelO | yes but as far as i test, it depend of modprobed order and if i wait between driver load |
10:07.33 | BabelO | ok go to lunch be back later |
10:24.43 | *** join/#htc-linux WizMaui (n=WizMaui@62.112.90.250) |
12:17.31 | BabelO | back |
12:40.07 | *** join/#htc-linux rob_w (n=rob_w@p549BB640.dip0.t-ipconnect.de) |
13:44.25 | *** join/#htc-linux law|bday (n=law@mail.stiftadmont.at) |
14:44.40 | *** join/#htc-linux RoEn_PC (n=roen@p54a66f24.dip.t-dialin.net) |
15:25.13 | *** join/#htc-linux TBBle_ (n=tbble@2001:388:f000:0:0:0:0:2d) |
15:39.21 | *** join/#htc-linux TW (n=Anonymou@213.217.143.222) |
15:39.23 | TW | hi all |
15:39.37 | TW | anyone can help me with a htc universal? |
15:41.16 | TW | i have probel with wifi support |
16:03.35 | *** join/#htc-linux rmoravcik (n=rmoravci@pc-3s0zt5w2e4y0vzmhnrzq3a21zqajzfw.users.student.utc.sk) |
16:13.45 | *** join/#htc-linux Martino (n=chatzill@151.65.169.59) |
16:15.56 | Martino | Hi I'm a new Wizard's user, and i would some information about linwizard... |
16:17.13 | Martino | The first information that i would have is if the system has an X-interface.. |
16:20.12 | *** part/#htc-linux Martino (n=chatzill@151.65.169.59) |
16:22.30 | ellisway | evenin all |
16:49.06 | *** join/#htc-linux Whacko (n=Whacko@s5593e8a2.adsl.wanadoo.nl) |
16:54.33 | *** join/#htc-linux rob_w (n=bob@p85.212.37.86.tisdip.tiscali.de) |
17:00.11 | psokolovsky | cr2, BabelO: BA build broken, http://blackbox:8222/build_20070412_194357/Step22-3.html |
17:01.22 | cr2 | psokolovsky: what is blackbox ? |
17:01.54 | psokolovsky | cr2: umm, sorry ;-) http://handhelds.org/~pfalcon/busyb/buildlogs/build_20070412_194357/Step22-3.html |
17:02.31 | cr2 | ok, it's a missing header. |
17:02.42 | cr2 | will commit it now. |
17:03.10 | cr2 | this driver will be replaced RSN anyway. |
17:03.48 | psokolovsky | ok, just trying to keep build up ;-) |
17:04.01 | cr2 | done. |
17:17.35 | psokolovsky | cr2: also consider committing blueangel_asic3_leds.c at convenience ;-) |
17:21.39 | *** join/#htc-linux goxboxlive (n=goxboxli@206.80-202-161.nextgentel.com) |
17:30.47 | cr2 | done. |
17:39.39 | psokolovsky | thanks! |
17:47.47 | goxboxlive | now, what about universal? is it updated to? |
17:48.06 | goxboxlive | now what about universal. is it updated to? |
17:48.12 | goxboxlive | soory twice |
17:48.19 | goxboxlive | one hand |
17:50.22 | cr2 | asic3_leds on universal is ok. |
17:52.38 | goxboxlive | ohh i though it was about power and the non working ts |
18:02.18 | cr2 | goxboxlive: it's just some technical stuff. |
18:02.42 | cr2 | is openmoko-dialer being developed ? |
18:03.09 | goxboxlive | cr2: ok |
18:03.17 | cr2 | apart from the nice gui, it's functionality is behind gomunicator. |
18:03.21 | goxboxlive | What do you think about beeing developed? |
18:03.30 | goxboxlive | realy |
18:04.03 | cr2 | sound management. |
18:04.14 | *** join/#htc-linux TW (n=Anonymou@sit.cust.skytek.org) |
18:04.47 | cr2 | working with the alsa mixer and playing ringtones. |
18:04.56 | goxboxlive | ok |
18:05.12 | goxboxlive | so we want be able to use it? Is that what you are saying? |
18:05.29 | cr2 | even if i'll write some mixer control code now, how are you going to use it ? |
18:06.51 | goxboxlive | ARe you thinking about the mic part. Well if you arent able to have it powered up all the time and i have to power it up manually i dont know. I'll figure something out. It's more just to test if it is doabel to make a normal phone call. |
18:07.15 | goxboxlive | So basicly, it's just for fun. |
18:07.56 | *** join/#htc-linux pleemans (n=peter@d51A5E76A.access.telenet.be) |
18:08.20 | cr2 | it's silly to have the mic always being switch on ? |
18:09.23 | goxboxlive | well for a finished developed device it is, i agree. But for testing, developing and trying out moko-dialer it's good |
18:14.18 | TW | hi |
18:14.33 | TW | anyone can help me with wifi support in a htc universal? |
18:14.38 | goxboxlive | but cr2, i dont want to waste your time with it if it is time demanding. It's more important actually to have the Universal up2date and rather wait until someone makes a sound mixer. |
18:17.12 | cr2 | ok. |
18:17.45 | TW | because i don't know how to set it to work |
18:21.43 | goxboxlive | TW: what is the problem |
18:22.03 | TW | i install the latest version of opie |
18:22.20 | TW | but i don't understand how to start wifi and if work or not |
18:22.54 | goxboxlive | TW: OPen console and hit write "ifup wlan0" |
18:22.59 | goxboxlive | hit enter |
18:23.05 | TW | in windows mobile do i have wifi enabled or not? |
18:23.19 | goxboxlive | It supposed that you use DHCP and without encryption |
18:23.24 | TW | yes |
18:23.27 | *** join/#htc-linux eremias (n=fdsfs@ACB5D08F.ipt.aol.com) |
18:23.48 | goxboxlive | You bether not have WIFI activated when booting linux. It might cause the touchscreen not working |
18:24.06 | TW | ok, i reset and i disable |
18:24.19 | goxboxlive | ok |
18:24.34 | ellisway | hi all |
18:24.43 | goxboxlive | hi ellisway |
18:25.09 | ellisway | hi goxboxlive hows it going |
18:25.38 | ellisway | hmm wifi |
18:26.02 | ellisway | can we do wpa on the acx100 under linux ? |
18:26.32 | goxboxlive | not that i know of. Check wpa-supplicant website |
18:28.36 | TW | it retun some errors |
18:28.57 | TW | Error for wireless request "SET ESSID" (8B1A): |
18:29.15 | TW | SET failed on device wlan0; No such device |
18:29.40 | TW | Error for wireless request "SET Mode" (8B06) : |
18:29.56 | TW | SET failed on device wlan0 ; No such device |
18:30.16 | TW | udhcpc (v.1.2.1) started |
18:30.32 | TW | SIOGGIFINDEX failed! : No such device |
18:30.35 | ellisway | gonna have a play with the wifi on my universal i have set wpa on my ap |
18:30.58 | TW | do i have a specific rom for wifi support? |
18:32.37 | ellisway | ok modprobed acx and it sees my network now just to see if i can get it to associate |
18:33.51 | TW | ?? |
18:34.27 | TW | uhm |
18:34.45 | TW | i do a mobprobe acx |
18:34.54 | TW | and now seem to work |
18:34.58 | TW | now i check :) |
18:37.57 | TW | ok, i can ping the wifi access point :) |
18:38.01 | TW | i'm happy |
18:38.21 | TW | so everytime that i start opie do i need to do the modprobe? |
18:41.53 | cr2 | goxboxlive: is there /etc/mod*something ? |
18:42.19 | cr2 | can we set 'alias wlan0 XXX-acx-YYY' ? |
18:42.51 | *** join/#htc-linux BabelO (n=kvirc@lun34-2-82-238-28-28.fbx.proxad.net) |
18:43.02 | *** join/#htc-linux SmallR2002 (n=SmallR20@88-107-88-222.dynamic.dsl.as9105.com) |
18:45.45 | TW | is there other package server for download apps? |
18:53.14 | goxboxlive | Ok, i am back |
18:53.41 | goxboxlive | TW, ys of course you need to have acx loaded before you do if up |
18:54.04 | goxboxlive | TW: Only the ones added in /etc/ipkg folder |
18:54.06 | TW | ok :) |
18:54.45 | TW | do you know a shoutcast player for htc? :) |
18:55.00 | goxboxlive | cr2: WHat do you mean about /etc/mod* there is a /etc/modutils director and /etc/modules.conf and /etc/modules |
18:55.43 | ellisway | who is it that does the drivers for the acx ? |
18:56.10 | goxboxlive | cr2: Yes we can set muliple accesspoints in /etc/network/interface if that is what you mean. |
18:56.19 | goxboxlive | TW: i dont know what shoutcast is |
18:56.30 | goxboxlive | ellisway: |
18:56.53 | goxboxlive | a man names todd |
18:56.54 | TW | i need to play a mp3 internet radio if possible |
18:57.05 | goxboxlive | He is a hx4700 developer AFAIK |
18:57.16 | ellisway | ok |
18:57.20 | goxboxlive | ok, i have no idea, check out angstrom ipk search |
18:58.09 | cr2 | goxboxlive: i mean autoload, if you want wlan0, acx will be autoloaded. |
18:58.20 | goxboxlive | TW: http://www.angstrom-distribution.org/repo/ |
18:58.23 | ellisway | as far as i can tell wpa suplicant cant set the drivers for it to support wpa so possibly a case of the current acx drivers not supporting wireless extensions fully |
18:59.16 | goxboxlive | cr2: Yes, that might be done in interfaces. I am doing it that way. It loads acx when i do ifup, and removes it when i do ifdown |
18:59.36 | goxboxlive | ellisway: the same as last time i checked |
19:02.31 | goxboxlive | cr2; This is how i am doing it in my /etc/network/interfaces: http://pastebin.ca/436812 |
19:04.46 | goxboxlive | and when i am at work i do : ifup wlan0=work and at home ifup wkan0=home and if i am at a public space with a dhcp open accespoint i do ifup wlan0 |
19:05.13 | goxboxlive | when you do ifdown wlan0 it will bring all the wlan0 down |
19:05.41 | cr2 | ok. |
19:12.56 | *** part/#htc-linux eremias (n=fdsfs@ACB5D08F.ipt.aol.com) |
19:25.06 | cr2 | BabelO: did you make any progress with asoc ? |
19:25.56 | BabelO | cr2: how can i set CDEX EX1 and Source0 to 0 and CONTROL_CX to 1 ? |
19:26.11 | BabelO | ok we wrote at the same time :) |
19:26.40 | BabelO | now it compile and i write exactly what lkcl found :) |
19:30.28 | cr2 | in a clean clean way ? |
19:30.40 | cr2 | of in hack way ? |
19:30.48 | cr2 | what did lkcl find ? |
19:30.54 | BabelO | in hack way is short way i think :) |
19:31.32 | cr2 | blueangel_audio.c ? |
19:31.40 | BabelO | i use this http://wiki.xda-developers.com/index.php?pagename=BlueangelSound andis audio file for init sequence |
19:32.01 | BabelO | not blueangel_audio.c it is blueangel.c in sound/soc/pxa directory |
19:35.52 | cr2 | i need to compare it with other tables. |
19:36.39 | *** join/#htc-linux guanxo (n=guanxo@87.219.88.201) |
19:36.40 | BabelO | ok and for CDEX and other ? |
19:38.00 | cr2 | static int blueangel_audio_init (void) |
19:38.05 | cr2 | in blueangel_audio.c |
19:38.13 | BabelO | ok |
19:38.18 | cr2 | asic3_set_clock_cdex (&blueangel_asic3.dev, CLOCK_CDEX_CONTROL_CX, CLOCK_CDEX_CONTROL_CX) |
19:38.28 | cr2 | asic3_set_clock_cdex (&blueangel_asic3.dev, CLOCK_CDEX_SOURCE<<1, CLOCK_CDEX_SOURCE<<1); |
19:40.30 | cr2 | i've doucmented a lot of AIC/PASIC - http://wiki.xda-developers.com/index.php?pagename=MagicianAIC3 |
19:41.33 | BabelO | a lot yes :) |
19:42.42 | cr2 | your bt/wifi LED driver should look very different :) |
19:43.43 | cr2 | "dump pasic" is needed for haret. |
19:43.54 | BabelO | and it don't use pwm in AIC chipset to blink led |
19:44.11 | cr2 | too many unknown registers. |
19:44.13 | cr2 | it is. |
19:44.28 | cr2 | but in a very weird way. |
19:54.27 | BabelO | cr2: there is only ipaq-asic3.h:#define CLOCK_CDEX_SOURCE (1 << 0) |
19:54.45 | BabelO | there is no source0 and source1 but bit 1 is never used |
19:55.21 | cr2 | it is not documented properly. |
19:55.31 | cr2 | but it is there. |
19:56.12 | cr2 | #define CLOCK_CDEX_SOURCE (1 << 0) /* 2 bits */ |
19:56.17 | BabelO | ok so file ipaq-asic3 is wrong, only source0 is used |
19:56.25 | BabelO | ah yes the comment :) |
19:56.29 | cr2 | why is it wrong ? |
19:56.57 | cr2 | we can define SOURCE0 and SOURCE1, so you'll be happy :) |
19:57.40 | BabelO | no not for me, i never play a lot with bit at work :) |
20:00.54 | cr2 | something like that |
20:00.57 | cr2 | #define SPI_CONTROL_SEL (1 << 6) /* Chip select: 1:SPI_CS1 enable, 0:SPI_CS0 enable */ |
20:00.58 | cr2 | #define SPI_CONTROL_SEL_CS0 (0 << 6) /* Set CS0 low */ |
20:00.58 | cr2 | #define SPI_CONTROL_SEL_CS1 (1 << 6) /* Set CS0 high */ |
20:04.25 | BabelO | ok |
20:17.28 | BabelO | <6>ASoC version 0.13.3 |
20:17.28 | BabelO | <6>UDA1380 Audio Codec 0.5<6>asoc: UDA1380 <-> pxa2xx-ssp1 mapping ok |
20:17.28 | BabelO | <6>asoc: UDA1380 <-> pxa2xx-i2s mapping ok |
20:17.28 | BabelO | <7>uda1380: uda hw write 2 val 100 |
20:17.28 | BabelO | <4> |
20:17.29 | BabelO | <7>uda1380: uda hw write 0 val 10 |
20:17.31 | BabelO | <4> |
20:18.49 | cr2 | does it work ? :) |
20:19.24 | BabelO | i don't know how to test correctly :( |
20:19.37 | BabelO | is there a mixer tools in goxbox image ? |
20:19.58 | BabelO | ok alsamixer |
20:21.38 | BabelO | ok it seems that i can drive uda1380 using alsa |
20:21.44 | BabelO | i see some trace |
20:28.04 | cr2 | isn't there some oss-compatibility module ? |
20:28.15 | cr2 | <PROTECTED> |
20:29.18 | BabelO | yes oss modules are already modprobed |
20:30.23 | BabelO | not good :( |
20:30.29 | cr2 | od -x /dev/dsp ? |
20:31.01 | BabelO | <6>ASoC version 0.13.3 |
20:31.01 | BabelO | <6>UDA1380 Audio Codec 0.5<6>asoc: UDA1380 <-> pxa2xx-ssp1 mapping ok |
20:31.01 | BabelO | <6>asoc: UDA1380 <-> pxa2xx-i2s mapping ok |
20:31.01 | BabelO | <7>uda1380: uda hw write 2 val 100 |
20:31.01 | BabelO | <4> |
20:31.02 | BabelO | <7>uda1380: uda hw write 0 val 10 |
20:31.04 | BabelO | <4> |
20:31.12 | BabelO | oups bad buffer |
20:31.28 | BabelO | od: /dev/dsp: Invalid argument |
20:33.46 | psokolovsky | BabelO: please post/have committed your patches, I'd like to tag a new release in a day or two |
20:35.31 | cr2 | BabelO: some patches are obvious (PXA27x), you can send them to asoc guys too. |
20:35.48 | cr2 | we can think about the rest. |
20:38.34 | *** join/#htc-linux apt (i=ibot@pdpc/supporter/active/TimRiker/bot/apt) |
20:38.34 | *** topic/#htc-linux is HTC Linux Channel: Find logs at http://apt.rikers.org/%23htc-linux/ | please check http://handhelds.org/moin/moin.cgi/HTC_2dPhones | http://wiki.xda-developers.com/index.php?pagename=Xanadux | <cr2> let's define a common setup. |
20:39.02 | *** join/#htc-linux goxboxlive (n=goxboxli@206.80-202-161.nextgentel.com) |
20:39.33 | cr2 | BabelO: post the patches. |
20:39.54 | BabelO | which one ? sounds ? |
20:41.46 | cr2 | yes. |
20:50.16 | BabelO | cr2: can you check this http://pastebin.ca/437029 ? |
20:52.11 | cr2 | and also egpio14?? */ |
20:52.28 | cr2 | it's probably CKEN14 |
20:52.41 | cr2 | was a haret hack. |
20:52.47 | cr2 | what is CKEN14 ? |
20:53.29 | cr2 | CKEN14_I2C |
20:53.31 | cr2 | ok. |
20:55.21 | BabelO | Where is CKEN14 ? |
20:55.52 | cr2 | + /* now gpio 23 gets sent and also egpio14?? */ |
20:56.24 | BabelO | oups old coment from magician |
20:58.14 | cr2 | ok, i'll apply it as is with some minor changes. |
20:58.22 | cr2 | what about PXA27x things ? |
20:58.48 | cr2 | ok. |
20:58.52 | cr2 | see them. |
20:59.26 | BabelO | i use ifdef PXA27x and not #defined (...) |
20:59.32 | BabelO | it is same |
21:01.07 | BabelO | but all my ifdef are from start line, no tab :) |
21:10.46 | cr2 | you have a bug in the CONTROL_CX code. |
21:11.05 | cr2 | but this code is evil anyway :) |
21:11.48 | cr2 | 1<<CLOCK_CDEX_CONTROL_CX |
21:12.19 | cr2 | and EX1 too. |
21:13.58 | BabelO | i understand for CONTROL_CX but for EX1 1 << is here |
21:14.08 | cr2 | are you sure that SOURCE0 is shutdown ? |
21:14.30 | cr2 | *CDEX* already includes << |
21:14.40 | BabelO | ah ok |
21:14.57 | cr2 | asic3_set_clock_cdex (&blueangel_asic3.dev, CLOCK_CDEX_SOURCE0, 0 ); |
21:15.00 | BabelO | it is not the same for all define |
21:15.05 | cr2 | this looks a bit suspicious. |
21:15.44 | cr2 | CLOCK_CDEX_* are all bitshifted. |
21:16.30 | BabelO | yes but on HTC include we remove all shift no ? |
21:16.36 | cr2 | ok. now i need to compile it. |
21:16.49 | cr2 | removed for other reasons. |
21:17.19 | cr2 | anyway, your code is wrong :) |
21:17.47 | BabelO | ok so i try again with your modification |
21:17.51 | BabelO | but it compile :) |
21:18.14 | cr2 | and does not work. |
21:18.28 | BabelO | yes it is true |
21:19.04 | cr2 | asoc is only modular ? |
21:19.10 | BabelO | but i m happy because uda1380 is detected |
21:19.16 | BabelO | yes only module |
21:20.07 | cr2 | ok. |
21:20.21 | cr2 | uda1380 is an i2c device. |
21:20.42 | cr2 | if i2c works and the chip is powered then it should respond :) |
21:21.06 | cr2 | compiling. |
21:22.13 | cr2 | blueangel_battery is broken. |
21:22.31 | BabelO | yes i know since yesturday modification |
21:22.36 | BabelO | not mine but new API |
21:22.52 | cr2 | error: invalid use of undefined type ‘struct ds2760_device_info |
21:22.55 | cr2 | removing it. |
21:23.14 | BabelO | i create a blueangel_power.c but i don't understand why i can't access something in /sys/class/battery |
21:25.59 | BabelO | cr2: http://pastebin.ca/437093 for new battery, i coment battery set charge to avoid dangerous manip |
21:27.33 | bd2 | should be !!(flags & PDA_POWER_CHARGE_USB).. but maybe SET_B.._GPIO already handles it.. |
21:28.12 | bd2 | otherwise code looks okay. But you won't see anything in /sys/class/battery unless you'll put battery definition. ;-) |
21:28.34 | BabelO | ah ok :) where i put my battery definition ? |
21:28.55 | bd2 | probably in blueangel.c, see hx4700/hx4700.c |
21:29.25 | bd2 | it have devices for both adc battery type, and ds2760. which BA is using? |
21:30.51 | bd2 | aha, ds2760.. so, just cut stuff from hx4700, and overwrite battery info, if needed |
21:31.02 | cr2 | bd2: ba has tsc2200-adc |
21:31.04 | BabelO | BA is using ds2760 and tsc2200 for backup battery |
21:31.14 | *** join/#htc-linux tudenbart (n=willi@xdsl-81-173-172-188.netcologne.de) |
21:31.36 | cr2 | undefined reference to `led_trigger_unregister_hwtimer' |
21:32.03 | bd2 | BabelO, cr.. ok, I guess tsc2200-adc is not yet converted to ADC framework, thus can't use adc-battery benefits. So, you can just use ds2760 (main) bettery for now |
21:32.30 | BabelO | cr2: strange, you have leds modules ? |
21:32.38 | cr2 | oo. |
21:32.41 | cr2 | drivers/hwmon/battery/battery.c:32:1: warning: "led_trigger_register_charging" redefined |
21:32.41 | cr2 | drivers/hwmon/battery/battery.c:31:1: warning: this is the location of the previous definition |
21:32.41 | cr2 | drivers/hwmon/battery/battery.c: In function ‘battery_register’: |
21:32.41 | cr2 | drivers/hwmon/battery/battery.c:204: warning: passing argument 1 of ‘led_trigger_unregister_simple’ from incompatible pointer t |
21:32.52 | cr2 | and so on. |
21:33.28 | bd2 | cr2, 1) cvs up 2) you should not make triggers as modules. |
21:33.46 | cr2 | evil Kconfig |
21:33.49 | cr2 | ok. :) |
21:34.32 | bd2 | "redefined" stuff already fixed. it was a small typo, I've wrote "register" and another "register" instead of "unregister" |
21:35.38 | cr2 | ok. updating. |
21:35.46 | BabelO | bd2: i see battery definition in hx4700.c ... is it the right place for that ? or is there another clean place to put this ? |
21:36.37 | bd2 | BabelO, because batteries are almost description structs now (i.e. no big logic anymore), it's fine to put it in mach.c file, if you can. |
21:37.09 | BabelO | ok |
21:38.12 | bd2 | I'd put also hx4700_power2.c into hx4700.c, but power driver using asic3 functions (to get IRQ base), thus I just could not do it. |
21:39.46 | cr2 | compiled now. but there are some problems with the asoc modules. |
21:39.52 | BabelO | i understand now, many thanks for hx4700 sample code :) |
21:40.58 | *** part/#htc-linux kdag (n=aeroflot@84-74-29-80.dclient.hispeed.ch) |
21:41.34 | BabelO | bd2: where did you get voltage ? is it from your battery spec written on it ? |
21:42.22 | bd2 | BabelO, yeah, it's written on battery. ;-) but you can fully charge your battery and look into /sys/class/battery/main-battery/voltage , and take it as "max" |
21:42.43 | cr2 | 4200 |
21:43.09 | cr2 | hx4700 is strange. |
21:43.19 | BabelO | ok because for BA battery rating is 3700 and 1490 mAh |
21:43.39 | bd2 | cr2, why? |
21:43.51 | cr2 | bd2: it's not 4200 |
21:44.41 | cr2 | BabelO: 1490 mAh ? your charger it certainly rated at 1A |
21:45.03 | cr2 | hm. i meant 1490mA current. |
21:45.44 | bd2 | ah.. I've actually looked at my battery just now, and I see 3.7 V 1800 mAh. but anyway, it does not matter at all. {max,max}_{voltage,current} does not take a part in any maths (currently) |
21:46.03 | *** join/#htc-linux Fossi (n=Fossi@e176102131.adsl.alicedsl.de) |
21:46.34 | cr2 | bd2: i thought it's only useful for a scalebar in the userspace apps :) |
21:47.20 | bd2 | cr2, yup... |
21:47.27 | cr2 | himalaya has a backpack, but the power supply is also only 1A |
21:48.04 | cr2 | on the universal i have never seen the current exceeding 850mA. with everything possible switched on. |
21:52.00 | cr2 | sound/soc/pxa/blueangel.c: In function ‘blueangel_playback_hw_params’: |
21:52.00 | cr2 | sound/soc/pxa/blueangel.c:134: warning: ‘acds’ may be used uninitialized in this function |
21:52.00 | cr2 | sound/soc/pxa/blueangel.c:134: warning: ‘acps’ may be used uninitialized in this function |
21:52.06 | cr2 | not nice. |
21:52.29 | bd2 | might be a serious bug source ;-) |
21:54.11 | cr2 | BabelO: blueangel_playback_hw_params() <- this function is completely wrong, because its contents is also PXA27x-specific. |
21:55.07 | cr2 | we need to think how it should be modified. |
21:56.41 | BabelO | cr2: agree with you... but how ? ...i m testing battery stuff right now |
21:57.50 | cr2 | ok. |
21:58.04 | cr2 | just to keep it in mind. |
21:58.28 | cr2 | blueangel_audio.c has a correct setup, we just need to adapt it to the asoc API. |
21:58.43 | BabelO | always same message <4>asic3_irq_demux: interrupt processing overrun :( |
21:59.19 | BabelO | sometimes it is not here |
21:59.36 | bd2 | does it depends on AC/USB plugging? |
22:00.45 | BabelO | bd2: i don't think because this message is displayed when i modprobe blueangel_ds1wm to power on AIC ds1wm instead of asic3 ds1wm |
22:02.07 | cr2 | BabelO: but how do you configure the AIC w1 clock ? i think pH5 didn't know how to do it. |
22:02.52 | cr2 | i've described all the AIC registers now, so we need to dump them in wince and check. |
22:03.05 | BabelO | asylumed found speed to set and ds1wm is always on |
22:03.19 | cr2 | and pH5 has AIC3, and ba has AIC2 |
22:03.37 | cr2 | BabelO: where does the set the speed ? |
22:04.14 | BabelO | static struct clk ds1wm_clk = { |
22:04.14 | BabelO | <PROTECTED> |
22:04.14 | BabelO | <PROTECTED> |
22:04.22 | BabelO | in blueangel_ds1wm.c |
22:05.26 | cr2 | ok. |
22:05.46 | cr2 | looks very empirical :) |
22:05.47 | BabelO | it is really strange because sometimes it works |
22:07.15 | cr2 | i've committed the changes into CVS. |
22:07.34 | cr2 | fyi. the clock setup is not correct. |
22:07.46 | cr2 | but at least it's a step forward. |
22:08.10 | BabelO | ok |
22:08.31 | cr2 | so it's not necessary to break your head before the clock is properly setup. |
22:09.27 | cr2 | i've documented the lcd powerup/down. looks really complex. |
22:09.31 | cr2 | on ba. himalaya is much simplier. |
22:14.48 | BabelO | ok so nothing is working :( |
22:15.43 | cr2 | it does not boot ? |
22:15.56 | BabelO | ssh freeze if i want to unmodprobe battery stuff |
22:16.12 | BabelO | no it boot , opie / openmoko /gpe works |
22:16.17 | BabelO | touchscreen works |
22:16.25 | cr2 | ok. |
22:16.26 | BabelO | MMC/SD works |
22:16.35 | cr2 | suspend ? |
22:16.37 | BabelO | a divx movie works ;) |
22:16.45 | cr2 | mplayer ? |
22:16.59 | BabelO | suspend / resume works, but lcd doesn't resume |
22:17.09 | cr2 | yes. it's ok. |
22:17.16 | BabelO | opiemediaplayer, i think mplayer is better |
22:17.29 | cr2 | mplayer supports a lot of formats. |
22:17.43 | BabelO | yes and really low cpu cost |
22:17.48 | BabelO | like videolan player |
22:18.12 | BabelO | when i try HD video from zudeo.com it works on my poor athlon XP 1800 |
22:18.35 | cr2 | afaik there is no linux IDCT support for ATI. |
22:18.53 | BabelO | you have an ATI :( not lucky |
22:19.02 | cr2 | on ba. |
22:19.15 | cr2 | i have ati on my notebook. |
22:19.22 | *** join/#htc-linux TBBle (n=tbble@2001:388:f000:0:0:0:0:2d) |
22:19.28 | cr2 | and never use the binary drivers ;) |
22:19.57 | cr2 | binary drivers are "designed for IDA" :) |
22:20.02 | BabelO | fg something |
22:20.30 | cr2 | but i really hate x86 asm. |
22:20.48 | cr2 | it simply hurts my eyes. |
22:21.24 | BabelO | :) |
22:21.35 | BabelO | m68k asm is really nice |
22:21.49 | BabelO | specially for mc68hc11 and other |
22:25.38 | cr2 | yes. |
22:28.21 | BabelO | ok i try again bootingmy BA and modprobe battery driver in another way |
22:33.37 | BabelO | ok so battery driver not working :( |
22:33.58 | BabelO | i add battery definition like hx4700 in blueangel.c |
22:39.06 | *** part/#htc-linux rmoravcik (n=rmoravci@pc-3s0zt5w2e4y0vzmhnrzq3a21zqajzfw.users.student.utc.sk) |
22:39.32 | cr2 | goof night. |
22:40.17 | BabelO | good night |
22:43.36 | bd2 | BabelO, you can check if w1 work by /sys/bus/w1/.../ somewhere should be "30-NUMBERSHERE" stuff. |
22:43.46 | bd2 | so, probably it's not battery fault, but w1 |
22:44.03 | BabelO | yes it works |
22:44.11 | BabelO | got ds2760 here |
22:44.24 | bd2 | try w1 stuff loaded, but do not load ds2760_battery module |
22:45.14 | bd2 | oh, no.. do not load neither ds2760_battery nor w1_ds2760. |
22:45.51 | bd2 | and then somewhere under /sys/bus/w1/../master/30-STUFF should happen |
22:46.21 | BabelO | ok if i only modprobed blueangel_ds1wm, it say to me that something is found on w1 bus with id 30-000010a4b6be |
22:46.53 | bd2 | oh, that is cool... so, you loaded w1_ds2760.. ds2760_battery.. and what happened? |
22:47.15 | BabelO | ok i try again with this order |
22:47.50 | bd2 | order should not matter, I guess. it will not permit to load in wrong order these two modules |
22:48.03 | bd2 | they have link-time dependency |
22:49.04 | BabelO | ok i found the bug i think, it is me |
22:49.20 | BabelO | missing entry here static struct platform_device *devices[] __initdata = { |
22:49.25 | BabelO | for main_batt |
22:49.33 | bd2 | ;-)) |
22:50.26 | BabelO | ok recompiling |
22:50.41 | BabelO | can you explain to me how can i set tsc2200 as adc class ? |
22:52.19 | bd2 | sure, you can take a look at drivers/misc/adc/samcop_adc.c or drivers/misc/adc/ads7846_adc_ssp.c |
22:52.41 | bd2 | and drivers/misc/adc/ad7877.c as an example of IRQ-driver adc device |
22:53.17 | bd2 | IRQ-driven |
22:53.58 | BabelO | ah ok it is under misc ;) good, so i can keep core code of tsc2200 under soc |
22:54.50 | bd2 | yeah. not best place, though.. should be drivers/adc.. but we'll move here after some LKML discussion |
22:55.34 | BabelO | ok battery looks better now :) |
22:55.43 | bd2 | cool, congrats ;-) |
22:56.02 | BabelO | need to modprobe apm_power |
22:56.09 | BabelO | to use apm comand line |
22:56.55 | bd2 | it might be a little buggy still.. mmp reported "strange" time values. it's on TODO for the fix |
22:57.04 | bd2 | ^^ regarding apm_power |
22:57.05 | BabelO | i ve to remove this silly message on my computer |
22:57.20 | BabelO | <4>asic3_irq_demux: interrupt processing overrun |
22:57.35 | bd2 | BabelO, run cat /proc/interrupts |
22:58.03 | bd2 | which iterrupt is "crazy"? |
22:59.01 | BabelO | i past here |
22:59.10 | BabelO | CPU0 |
22:59.10 | BabelO | <PROTECTED> |
22:59.10 | BabelO | <PROTECTED> |
22:59.10 | BabelO | <PROTECTED> |
22:59.10 | BabelO | <PROTECTED> |
22:59.10 | BabelO | <PROTECTED> |
22:59.12 | BabelO | <PROTECTED> |
22:59.14 | BabelO | <PROTECTED> |
22:59.16 | BabelO | <PROTECTED> |
22:59.18 | BabelO | <PROTECTED> |
22:59.20 | BabelO | <PROTECTED> |
22:59.22 | BabelO | 158: 970 ASIC3-GPIO ds1wm |
22:59.24 | BabelO | Err: 0 |
22:59.55 | bd2 | hmmm.. :-/ seems reasonable values... how long your device running already? |
23:00.34 | BabelO | since i say to you i recompile :) |
23:00.42 | bd2 | I'll boot my h5000 now, will take a look how much ds1wm interrupts I'm getting.. |
23:01.31 | bd2 | yeah.. 970 is normal.. mine h5000 just booted and I got approx 100 already |
23:02.19 | bd2 | not sure then. You have to insert few prinks and check what interrupt bouncing exactly |
23:03.09 | BabelO | ok it is few seconds after blueangel_ds1wm is modprobed |
23:03.51 | BabelO | tomorrow i take a look at misc/adc for tsc2200 |
23:05.14 | BabelO | hummm apm -s doen't do anything :( |
23:06.48 | BabelO | ok it is apmd daemon |
23:09.36 | BabelO | thanks for your help bd2 and good night |
23:10.06 | bd2 | good night! |
23:10.14 | bd2 | also cat /proc/apm should be more reliable to test apm |
23:10.22 | BabelO | ok |
23:10.37 | bd2 | it not depends on anything except kernel |
23:10.55 | BabelO | because suspend stuff and cat /sys/class/battery/main-battery/current hang my ssh session |
23:13.03 | BabelO | maybe missing a suspend / resume somewhere in a module |
23:13.18 | bd2 | :-/ should not happen. But cat /sys/class/battery/.../current accesses w1 bus directly. Thus, probably it's still w1 issue |
23:15.24 | BabelO | yes maybe my ds1wm is down after suspend and didn't resume |
23:20.39 | BabelO | ok so good night :) |