IRC log for #htc-linux on 20070412

00:02.37cr2good night :)
00:02.48BabelOgood night
00:03.15BabelOme too bed time
00:06.03bd2psokolovsky, sent other battery patches
00:06.28psokolovskythanks! damn, gmail pop3 doesn't work ;-(
00:12.02BabelOpsokolovsky: blueangel power driver to new api is ok :) send a patch tomorrow
00:12.04BabelOgood night
00:12.26psokolovskycool! gn!
00:25.39psokolovskybd2: ok, so what's the reason for classdev -> dev conversion?
00:26.13bd2psokolovsky, closer to mainline
00:26.22bd2psokolovsky, remember that classdev will gone?
00:26.36psokolovskyso, that's it?
00:26.51bd2usual "device" infrastructure is ready to replace classdev, so we're following
00:27.18psokolovskyok
00:27.57psokolovskybd2: what about /sys/class stuff? is it now /sys/device ?
00:28.24bd2psokolovsky, nope. it's /sys/class/  (but now is symlinks to actual device)
00:28.37psokolovskyok
00:29.02bd2# ls -al /sys/class/battery/main-battery
00:29.02bd2lrwxrwxrwx 1 root root 0 Jan  1 05:35 /sys/class/battery/main-battery -> ../../devices/platform/ds2760-battery/main-battery
00:30.16bd2# cat /sys/class/battery/main-battery/status
00:30.17bd2Discharging
00:30.29bd2but it will still work old-way
00:31.25bd2I guess /sys/class/ will never gone. it's just as /sys/bus, a device ""type""
00:32.44psokolovskyI hope. but who knows mainline mad-men ;-\
00:32.57bd2;-)
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.19goxboxlivegood morning
06:42.21sadenessgoxboxlive,
07:02.09goxboxlivesadeness: yes
07:03.24sadenesshilite, just mean "good morning to you too"
07:04.40goxboxliveahh 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.51BabelOhi
09:41.59BabelObd2: are you around ?
09:54.32psokolovsky"Do it three times just to be sure it is finished"
09:54.33psokolovskylol
09:54.38psokolovskyHi!
09:57.05BabelOhi psokolovsky
09:57.46BabelOi want to ask bd2 how he support backup battery with new API
09:58.00goxboxlivepsokolovsky: 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.18psokolovskyBabelO: 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.43BabelOi need to add a tsc2200_battery to hwmon/battery
09:59.10psokolovskyBabelO: backup battery is supported just the same as main, except that only main's status is being reported (via leds, etc.)
09:59.30psokolovskyBabelO: you can look at hx4700 or h4000 code - they both handle backup battery
09:59.36BabelOyes i understand now, i see a adc_battery.c
09:59.53BabelOit is backup battery for hx4700
10:00.34BabelOso need to submit a patch to support tsc2200_battery and maybe another patch for adc support in tsc2200
10:01.14BabelOnow with this code it is really nice, all is common :)
10:02.02psokolovskyBabelO: well, yes, ideal soultion is exactly to write an ADC driver for tsc2200, and drop adhoc tsc2200_ts & tsc2200_battery ;-)
10:02.41psokolovskyBabelO: yes! maintenance should be alleviated, and we finally should have sustained quality ;-)
10:03.09BabelOyes and bug are common too :) so quickly seen
10:04.07BabelOi don't know if you remember but on BA ds1wm is not on asic chipset
10:04.43BabelOand sometimes when i modprobe driver for battery, got lot of irq demux dmesg
10:05.24psokolovskyBabelO: yes, I remember. is that behavior with new driver too?
10:07.20BabelOyes but as far as i test, it depend of modprobed order and if i wait between driver load
10:07.33BabelOok go to lunch be back later
10:24.43*** join/#htc-linux WizMaui (n=WizMaui@62.112.90.250)
12:17.31BabelOback
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.23TWhi all
15:39.37TWanyone can help me with a htc universal?
15:41.16TWi 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.56MartinoHi I'm a new Wizard's user, and i would some information about linwizard...
16:17.13MartinoThe 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.30elliswayevenin 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.11psokolovskycr2, BabelO: BA build broken, http://blackbox:8222/build_20070412_194357/Step22-3.html
17:01.22cr2psokolovsky: what is blackbox ?
17:01.54psokolovskycr2: umm, sorry ;-) http://handhelds.org/~pfalcon/busyb/buildlogs/build_20070412_194357/Step22-3.html
17:02.31cr2ok, it's a missing header.
17:02.42cr2will commit it now.
17:03.10cr2this driver will be replaced RSN anyway.
17:03.48psokolovskyok, just trying to keep build up ;-)
17:04.01cr2done.
17:17.35psokolovskycr2: 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.47cr2done.
17:39.39psokolovskythanks!
17:47.47goxboxlivenow, what about universal? is it updated to?
17:48.06goxboxlivenow what about universal. is it updated to?
17:48.12goxboxlivesoory twice
17:48.19goxboxliveone hand
17:50.22cr2asic3_leds on universal is ok.
17:52.38goxboxliveohh i though it was about power and the non working ts
18:02.18cr2goxboxlive: it's just some technical stuff.
18:02.42cr2is openmoko-dialer being developed ?
18:03.09goxboxlivecr2: ok
18:03.17cr2apart from the nice gui, it's functionality is behind gomunicator.
18:03.21goxboxliveWhat do you think about beeing developed?
18:03.30goxboxliverealy
18:04.03cr2sound management.
18:04.14*** join/#htc-linux TW (n=Anonymou@sit.cust.skytek.org)
18:04.47cr2working with the alsa mixer and playing ringtones.
18:04.56goxboxliveok
18:05.12goxboxliveso we want be able to use it? Is that what you are saying?
18:05.29cr2even if i'll write some mixer control code now, how are you going to use it ?
18:06.51goxboxliveARe 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.15goxboxliveSo basicly, it's just for fun.
18:07.56*** join/#htc-linux pleemans (n=peter@d51A5E76A.access.telenet.be)
18:08.20cr2it's silly to have the mic always being switch on ?
18:09.23goxboxlivewell for a finished developed device it is, i agree. But for testing, developing and trying out moko-dialer it's good
18:14.18TWhi
18:14.33TWanyone can help me with wifi support in a htc universal?
18:14.38goxboxlivebut 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.12cr2ok.
18:17.45TWbecause i don't know how to set it to work
18:21.43goxboxliveTW: what is the problem
18:22.03TWi install the latest version of opie
18:22.20TWbut i don't understand how to start wifi and if work or not
18:22.54goxboxliveTW: OPen console and hit write "ifup wlan0"
18:22.59goxboxlivehit enter
18:23.05TWin windows mobile do i have wifi enabled or not?
18:23.19goxboxliveIt supposed that you use DHCP and without encryption
18:23.24TWyes
18:23.27*** join/#htc-linux eremias (n=fdsfs@ACB5D08F.ipt.aol.com)
18:23.48goxboxliveYou bether not have WIFI activated when booting linux. It might cause the touchscreen not working
18:24.06TWok, i reset and i disable
18:24.19goxboxliveok
18:24.34elliswayhi all
18:24.43goxboxlivehi ellisway
18:25.09elliswayhi goxboxlive hows it going
18:25.38elliswayhmm wifi
18:26.02elliswaycan we do wpa on the acx100 under linux ?
18:26.32goxboxlivenot that i know of. Check wpa-supplicant website
18:28.36TWit retun some errors
18:28.57TWError for wireless request "SET ESSID" (8B1A):
18:29.15TWSET failed on device wlan0; No such device
18:29.40TWError for wireless request "SET Mode" (8B06) :
18:29.56TWSET failed on device wlan0 ; No such device
18:30.16TWudhcpc (v.1.2.1) started
18:30.32TWSIOGGIFINDEX failed! : No such device
18:30.35elliswaygonna have a play with the wifi on my universal i have set wpa on my ap
18:30.58TWdo i have a specific rom for wifi support?
18:32.37elliswayok modprobed acx and it sees my network now just to see if i can get it to associate
18:33.51TW??
18:34.27TWuhm
18:34.45TWi do a mobprobe acx
18:34.54TWand now seem to work
18:34.58TWnow i check :)
18:37.57TWok, i can ping the wifi access point :)
18:38.01TWi'm happy
18:38.21TWso everytime that i start opie do i need to do the modprobe?
18:41.53cr2goxboxlive: is there /etc/mod*something ?
18:42.19cr2can 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.45TWis there other package server for download apps?
18:53.14goxboxliveOk, i am back
18:53.41goxboxliveTW, ys of course you need to have acx loaded before you do if up
18:54.04goxboxliveTW: Only the ones added in /etc/ipkg folder
18:54.06TWok :)
18:54.45TWdo you know a shoutcast player for htc? :)
18:55.00goxboxlivecr2: WHat do you mean about /etc/mod* there is a /etc/modutils director and /etc/modules.conf and /etc/modules
18:55.43elliswaywho is it that does the drivers for the acx ?
18:56.10goxboxlivecr2: Yes we can set muliple accesspoints in /etc/network/interface if that is what you mean.
18:56.19goxboxliveTW: i dont know what shoutcast is
18:56.30goxboxliveellisway:
18:56.53goxboxlivea man names todd
18:56.54TWi need to play a mp3 internet radio if possible
18:57.05goxboxliveHe is a hx4700 developer AFAIK
18:57.16elliswayok
18:57.20goxboxliveok, i have no idea, check out angstrom ipk search
18:58.09cr2goxboxlive: i mean autoload, if you want wlan0, acx will be autoloaded.
18:58.20goxboxliveTW: http://www.angstrom-distribution.org/repo/
18:58.23elliswayas 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.16goxboxlivecr2: 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.36goxboxliveellisway: the same as last time i checked
19:02.31goxboxlivecr2; This is how i am doing it in my /etc/network/interfaces: http://pastebin.ca/436812
19:04.46goxboxliveand 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.13goxboxlivewhen you do ifdown wlan0 it will bring all the wlan0 down
19:05.41cr2ok.
19:12.56*** part/#htc-linux eremias (n=fdsfs@ACB5D08F.ipt.aol.com)
19:25.06cr2BabelO: did you make any progress with asoc ?
19:25.56BabelOcr2: how can i set CDEX EX1 and Source0 to 0 and CONTROL_CX to 1 ?
19:26.11BabelOok we wrote at the same time :)
19:26.40BabelOnow it compile and i write exactly what lkcl found :)
19:30.28cr2in a clean clean way ?
19:30.40cr2of in hack way ?
19:30.48cr2what did lkcl find ?
19:30.54BabelOin hack way is short way i think :)
19:31.32cr2blueangel_audio.c ?
19:31.40BabelOi use this http://wiki.xda-developers.com/index.php?pagename=BlueangelSound andis audio file for init sequence
19:32.01BabelOnot blueangel_audio.c it is blueangel.c in sound/soc/pxa directory
19:35.52cr2i need to compare it with other tables.
19:36.39*** join/#htc-linux guanxo (n=guanxo@87.219.88.201)
19:36.40BabelOok and for CDEX and other ?
19:38.00cr2static int blueangel_audio_init (void)
19:38.05cr2in blueangel_audio.c
19:38.13BabelOok
19:38.18cr2asic3_set_clock_cdex (&blueangel_asic3.dev, CLOCK_CDEX_CONTROL_CX, CLOCK_CDEX_CONTROL_CX)
19:38.28cr2asic3_set_clock_cdex (&blueangel_asic3.dev, CLOCK_CDEX_SOURCE<<1, CLOCK_CDEX_SOURCE<<1);
19:40.30cr2i've doucmented a lot of AIC/PASIC - http://wiki.xda-developers.com/index.php?pagename=MagicianAIC3
19:41.33BabelOa lot yes :)
19:42.42cr2your bt/wifi LED driver should look very different :)
19:43.43cr2"dump pasic" is needed for haret.
19:43.54BabelOand it don't use pwm in AIC chipset to blink led
19:44.11cr2too many unknown registers.
19:44.13cr2it is.
19:44.28cr2but in a very weird way.
19:54.27BabelOcr2: there is only ipaq-asic3.h:#define CLOCK_CDEX_SOURCE       (1 << 0)
19:54.45BabelOthere is no source0 and source1 but bit 1 is never used
19:55.21cr2it is not documented properly.
19:55.31cr2but it is there.
19:56.12cr2#define CLOCK_CDEX_SOURCE       (1 << 0)  /* 2 bits */
19:56.17BabelOok so file ipaq-asic3 is wrong, only source0 is used
19:56.25BabelOah yes the comment :)
19:56.29cr2why is it wrong ?
19:56.57cr2we can define SOURCE0 and SOURCE1, so you'll be happy :)
19:57.40BabelOno not for me, i never play a lot with bit at work :)
20:00.54cr2something like that
20:00.57cr2#define SPI_CONTROL_SEL           (1 << 6)   /* Chip select: 1:SPI_CS1 enable, 0:SPI_CS0 enable */
20:00.58cr2#define SPI_CONTROL_SEL_CS0       (0 << 6)   /* Set CS0 low */
20:00.58cr2#define SPI_CONTROL_SEL_CS1       (1 << 6)   /* Set CS0 high */
20:04.25BabelOok
20:17.28BabelO<6>ASoC version 0.13.3
20:17.28BabelO<6>UDA1380 Audio Codec 0.5<6>asoc: UDA1380 <-> pxa2xx-ssp1 mapping ok
20:17.28BabelO<6>asoc: UDA1380 <-> pxa2xx-i2s mapping ok
20:17.28BabelO<7>uda1380: uda hw write 2 val 100
20:17.28BabelO<4>
20:17.29BabelO<7>uda1380: uda hw write 0 val 10
20:17.31BabelO<4>
20:18.49cr2does it work ? :)
20:19.24BabelOi don't know how to test correctly :(
20:19.37BabelOis there a mixer tools in goxbox image ?
20:19.58BabelOok alsamixer
20:21.38BabelOok it seems that i can drive uda1380 using alsa
20:21.44BabelOi see some trace
20:28.04cr2isn't there some oss-compatibility module ?
20:28.15cr2<PROTECTED>
20:29.18BabelOyes oss modules are already modprobed
20:30.23BabelOnot good :(
20:30.29cr2od -x /dev/dsp ?
20:31.01BabelO<6>ASoC version 0.13.3
20:31.01BabelO<6>UDA1380 Audio Codec 0.5<6>asoc: UDA1380 <-> pxa2xx-ssp1 mapping ok
20:31.01BabelO<6>asoc: UDA1380 <-> pxa2xx-i2s mapping ok
20:31.01BabelO<7>uda1380: uda hw write 2 val 100
20:31.01BabelO<4>
20:31.02BabelO<7>uda1380: uda hw write 0 val 10
20:31.04BabelO<4>
20:31.12BabelOoups bad buffer
20:31.28BabelOod: /dev/dsp: Invalid argument
20:33.46psokolovskyBabelO: please post/have committed your patches, I'd like to tag a new release in a day or two
20:35.31cr2BabelO: some patches are obvious (PXA27x), you can send them to asoc guys too.
20:35.48cr2we 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.33cr2BabelO: post the patches.
20:39.54BabelOwhich one ? sounds ?
20:41.46cr2yes.
20:50.16BabelOcr2: can you check this http://pastebin.ca/437029 ?
20:52.11cr2and also egpio14?? */
20:52.28cr2it's probably CKEN14
20:52.41cr2was a haret hack.
20:52.47cr2what is CKEN14 ?
20:53.29cr2CKEN14_I2C
20:53.31cr2ok.
20:55.21BabelOWhere is CKEN14 ?
20:55.52cr2+       /* now gpio 23 gets sent and also egpio14?? */
20:56.24BabelOoups old coment from magician
20:58.14cr2ok, i'll apply it as is with some minor changes.
20:58.22cr2what about PXA27x things ?
20:58.48cr2ok.
20:58.52cr2see them.
20:59.26BabelOi use ifdef PXA27x and not #defined (...)
20:59.32BabelOit is same
21:01.07BabelObut all my ifdef are from start line, no tab :)
21:10.46cr2you have a bug in the CONTROL_CX code.
21:11.05cr2but this code is evil anyway :)
21:11.48cr21<<CLOCK_CDEX_CONTROL_CX
21:12.19cr2and EX1 too.
21:13.58BabelOi understand for CONTROL_CX but for EX1          1 << is here
21:14.08cr2are you sure that SOURCE0 is shutdown ?
21:14.30cr2*CDEX* already includes <<
21:14.40BabelOah ok
21:14.57cr2asic3_set_clock_cdex (&blueangel_asic3.dev, CLOCK_CDEX_SOURCE0, 0 );
21:15.00BabelOit is not the same for all define
21:15.05cr2this looks a bit suspicious.
21:15.44cr2CLOCK_CDEX_* are all bitshifted.
21:16.30BabelOyes but on  HTC include we remove all shift no ?
21:16.36cr2ok. now i need to compile it.
21:16.49cr2removed for other reasons.
21:17.19cr2anyway, your code is wrong :)
21:17.47BabelOok so i try again with your modification
21:17.51BabelObut it compile :)
21:18.14cr2and does not work.
21:18.28BabelOyes it is true
21:19.04cr2asoc is only modular ?
21:19.10BabelObut i m happy because uda1380 is detected
21:19.16BabelOyes only module
21:20.07cr2ok.
21:20.21cr2uda1380 is an i2c device.
21:20.42cr2if i2c works and the chip is powered then it should respond :)
21:21.06cr2compiling.
21:22.13cr2blueangel_battery is broken.
21:22.31BabelOyes i know since yesturday modification
21:22.36BabelOnot mine but new API
21:22.52cr2error: invalid use of undefined type ‘struct ds2760_device_info
21:22.55cr2removing it.
21:23.14BabelOi create a blueangel_power.c but i don't understand why i can't access something in /sys/class/battery
21:25.59BabelOcr2: http://pastebin.ca/437093 for new battery, i coment battery set charge to avoid dangerous manip
21:27.33bd2should be !!(flags & PDA_POWER_CHARGE_USB).. but maybe SET_B.._GPIO already handles it..
21:28.12bd2otherwise code looks okay. But you won't see anything in /sys/class/battery unless you'll put battery definition. ;-)
21:28.34BabelOah ok :) where i put my battery definition ?
21:28.55bd2probably in blueangel.c, see hx4700/hx4700.c
21:29.25bd2it have devices for both adc battery type, and ds2760. which BA is using?
21:30.51bd2aha, ds2760.. so, just cut stuff from hx4700, and overwrite battery info, if needed
21:31.02cr2bd2: ba has tsc2200-adc
21:31.04BabelOBA 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.36cr2undefined reference to `led_trigger_unregister_hwtimer'
21:32.03bd2BabelO, 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.30BabelOcr2: strange, you have leds modules ?
21:32.38cr2oo.
21:32.41cr2drivers/hwmon/battery/battery.c:32:1: warning: "led_trigger_register_charging" redefined
21:32.41cr2drivers/hwmon/battery/battery.c:31:1: warning: this is the location of the previous definition
21:32.41cr2drivers/hwmon/battery/battery.c: In function ‘battery_register’:
21:32.41cr2drivers/hwmon/battery/battery.c:204: warning: passing argument 1 of ‘led_trigger_unregister_simple’ from incompatible pointer t
21:32.52cr2and so on.
21:33.28bd2cr2, 1) cvs up 2) you should not make triggers as modules.
21:33.46cr2evil Kconfig
21:33.49cr2ok. :)
21:34.32bd2"redefined" stuff already fixed. it was a small typo, I've wrote "register" and another "register" instead of "unregister"
21:35.38cr2ok. updating.
21:35.46BabelObd2: 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.37bd2BabelO, 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.09BabelOok
21:38.12bd2I'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.46cr2compiled now. but there are some problems with the asoc modules.
21:39.52BabelOi 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.34BabelObd2: where did you get voltage ? is it from your battery spec written on it ?
21:42.22bd2BabelO, 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.43cr24200
21:43.09cr2hx4700 is strange.
21:43.19BabelOok because for BA battery rating is 3700 and 1490 mAh
21:43.39bd2cr2, why?
21:43.51cr2bd2: it's not 4200
21:44.41cr2BabelO: 1490 mAh ? your charger it certainly rated at 1A
21:45.03cr2hm. i meant 1490mA current.
21:45.44bd2ah.. 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.34cr2bd2: i thought it's only useful for a scalebar in the userspace apps :)
21:47.20bd2cr2, yup...
21:47.27cr2himalaya has a backpack, but the power supply is also only 1A
21:48.04cr2on the universal i have never seen the current exceeding 850mA. with everything possible switched on.
21:52.00cr2sound/soc/pxa/blueangel.c: In function ‘blueangel_playback_hw_params’:
21:52.00cr2sound/soc/pxa/blueangel.c:134: warning: ‘acds’ may be used uninitialized in this function
21:52.00cr2sound/soc/pxa/blueangel.c:134: warning: ‘acps’ may be used uninitialized in this function
21:52.06cr2not nice.
21:52.29bd2might be a serious bug source ;-)
21:54.11cr2BabelO: blueangel_playback_hw_params() <- this function is completely wrong, because its contents is also PXA27x-specific.
21:55.07cr2we need to think how it should be modified.
21:56.41BabelOcr2: agree with you... but how ? ...i m testing battery stuff right now
21:57.50cr2ok.
21:58.04cr2just to keep it in mind.
21:58.28cr2blueangel_audio.c has a correct setup, we just need to adapt it to the asoc API.
21:58.43BabelOalways same message <4>asic3_irq_demux: interrupt processing overrun :(
21:59.19BabelOsometimes it is not here
21:59.36bd2does it depends on AC/USB  plugging?
22:00.45BabelObd2: 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.07cr2BabelO: but how do you configure the AIC w1 clock ? i think pH5 didn't know how to do it.
22:02.52cr2i've described all the AIC registers now, so we need to dump them in wince and check.
22:03.05BabelOasylumed found speed to set and ds1wm is always on
22:03.19cr2and pH5 has AIC3, and ba has AIC2
22:03.37cr2BabelO: where does the set the speed ?
22:04.14BabelOstatic struct clk ds1wm_clk = {
22:04.14BabelO<PROTECTED>
22:04.14BabelO<PROTECTED>
22:04.22BabelOin blueangel_ds1wm.c
22:05.26cr2ok.
22:05.46cr2looks very empirical :)
22:05.47BabelOit is really strange because sometimes it works
22:07.15cr2i've committed the changes into CVS.
22:07.34cr2fyi. the clock setup is not correct.
22:07.46cr2but at least it's a step forward.
22:08.10BabelOok
22:08.31cr2so it's not necessary to break your head before the clock is properly setup.
22:09.27cr2i've documented the lcd powerup/down. looks really complex.
22:09.31cr2on ba. himalaya is much simplier.
22:14.48BabelOok so nothing is working :(
22:15.43cr2it does not boot ?
22:15.56BabelOssh freeze if i want to unmodprobe battery stuff
22:16.12BabelOno it boot , opie / openmoko /gpe works
22:16.17BabelOtouchscreen works
22:16.25cr2ok.
22:16.26BabelOMMC/SD works
22:16.35cr2suspend ?
22:16.37BabelOa divx movie works ;)
22:16.45cr2mplayer ?
22:16.59BabelOsuspend / resume works, but lcd doesn't resume
22:17.09cr2yes. it's ok.
22:17.16BabelOopiemediaplayer, i think mplayer is better
22:17.29cr2mplayer supports a lot of formats.
22:17.43BabelOyes and really low cpu cost
22:17.48BabelOlike videolan player
22:18.12BabelOwhen i try HD video from zudeo.com it works on my poor athlon XP 1800
22:18.35cr2afaik there is no linux IDCT support for ATI.
22:18.53BabelOyou have an ATI :( not lucky
22:19.02cr2on ba.
22:19.15cr2i have ati on my notebook.
22:19.22*** join/#htc-linux TBBle (n=tbble@2001:388:f000:0:0:0:0:2d)
22:19.28cr2and never use the binary drivers ;)
22:19.57cr2binary drivers are "designed for IDA" :)
22:20.02BabelOfg something
22:20.30cr2but i really hate x86 asm.
22:20.48cr2it simply hurts my eyes.
22:21.24BabelO:)
22:21.35BabelOm68k asm is really nice
22:21.49BabelOspecially for mc68hc11 and other
22:25.38cr2yes.
22:28.21BabelOok i try again bootingmy BA and modprobe battery driver in another way
22:33.37BabelOok so battery driver not working :(
22:33.58BabelOi 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.32cr2goof night.
22:40.17BabelOgood night
22:43.36bd2BabelO, you can check if w1 work by /sys/bus/w1/.../ somewhere should be "30-NUMBERSHERE" stuff.
22:43.46bd2so, probably it's not battery fault, but w1
22:44.03BabelOyes it works
22:44.11BabelOgot ds2760 here
22:44.24bd2try w1 stuff loaded, but do not load ds2760_battery module
22:45.14bd2oh, no.. do not load neither ds2760_battery nor w1_ds2760.
22:45.51bd2and then somewhere under /sys/bus/w1/../master/30-STUFF should happen
22:46.21BabelOok if i only modprobed blueangel_ds1wm, it say to me that something is found on w1 bus with id 30-000010a4b6be
22:46.53bd2oh, that is cool... so, you loaded w1_ds2760.. ds2760_battery.. and what happened?
22:47.15BabelOok i try again with this order
22:47.50bd2order should not matter, I guess. it will not permit to load in wrong order these two modules
22:48.03bd2they have link-time dependency
22:49.04BabelOok i found the bug i think, it is me
22:49.20BabelOmissing entry here static struct platform_device *devices[] __initdata = {
22:49.25BabelOfor main_batt
22:49.33bd2;-))
22:50.26BabelOok recompiling
22:50.41BabelOcan you explain to me how can i set tsc2200 as adc class ?
22:52.19bd2sure, you can take a look at drivers/misc/adc/samcop_adc.c or drivers/misc/adc/ads7846_adc_ssp.c
22:52.41bd2and drivers/misc/adc/ad7877.c as an example of IRQ-driver adc device
22:53.17bd2IRQ-driven
22:53.58BabelOah ok it is under misc ;) good, so i can keep core code of tsc2200 under soc
22:54.50bd2yeah. not best place, though.. should be drivers/adc.. but we'll move here after some LKML discussion
22:55.34BabelOok battery looks better now :)
22:55.43bd2cool, congrats ;-)
22:56.02BabelOneed to modprobe apm_power
22:56.09BabelOto use apm comand line
22:56.55bd2it might be a little buggy still.. mmp reported "strange" time values. it's on TODO for the fix
22:57.04bd2^^ regarding apm_power
22:57.05BabelOi ve to remove this silly message on my computer
22:57.20BabelO<4>asic3_irq_demux: interrupt processing overrun
22:57.35bd2BabelO, run cat /proc/interrupts
22:58.03bd2which iterrupt is "crazy"?
22:59.01BabelOi past here
22:59.10BabelOCPU0
22:59.10BabelO<PROTECTED>
22:59.10BabelO<PROTECTED>
22:59.10BabelO<PROTECTED>
22:59.10BabelO<PROTECTED>
22:59.10BabelO<PROTECTED>
22:59.12BabelO<PROTECTED>
22:59.14BabelO<PROTECTED>
22:59.16BabelO<PROTECTED>
22:59.18BabelO<PROTECTED>
22:59.20BabelO<PROTECTED>
22:59.22BabelO158:        970  ASIC3-GPIO  ds1wm
22:59.24BabelOErr:          0
22:59.55bd2hmmm.. :-/ seems reasonable values... how long your device running already?
23:00.34BabelOsince i say to you i recompile :)
23:00.42bd2I'll boot my h5000 now, will take a look how much ds1wm interrupts I'm getting..
23:01.31bd2yeah.. 970 is normal.. mine h5000 just booted and I got approx 100 already
23:02.19bd2not sure then. You have to insert few prinks and check what interrupt bouncing exactly
23:03.09BabelOok it is few seconds after blueangel_ds1wm is modprobed
23:03.51BabelOtomorrow i take a look at misc/adc for tsc2200
23:05.14BabelOhummm apm -s doen't do anything :(
23:06.48BabelOok it is apmd daemon
23:09.36BabelOthanks for your help bd2 and good night
23:10.06bd2good night!
23:10.14bd2also cat /proc/apm should be more reliable to test apm
23:10.22BabelOok
23:10.37bd2it not depends on anything except kernel
23:10.55BabelObecause suspend stuff and cat /sys/class/battery/main-battery/current hang my ssh session
23:13.03BabelOmaybe missing a suspend / resume somewhere in a module
23:13.18bd2:-/ should not happen. But cat /sys/class/battery/.../current accesses w1 bus directly. Thus, probably it's still w1 issue
23:15.24BabelOyes maybe my ds1wm is down after suspend and didn't  resume
23:20.39BabelOok so good night :)

Generated by irclog2html.pl Modified by Tim Riker to work with infobot.