**** BEGIN LOGGING AT Fri Apr 09 02:59:56 2010 Apr 09 07:07:27 Morning. Apr 09 08:45:54 "EDuke32 screams bad ass so loud, you'll think Iron Maiden frontman Bruce Dickinson got uppercut in the balls by Freddy Krueger." Apr 09 08:45:54 "EDuke32 screams bad ass so loud, you'll think Iron Maiden frontman Bruce Dickinson got uppercut in the balls by Freddy Krueger." Apr 09 14:38:59 Serdar: hello Apr 09 14:39:12 hi Apr 09 14:39:58 I have a daemon that configures bluetooth audio devices in order to let them work correctly in a talk-with-a-bt-headset scenario Apr 09 14:40:28 in qtmoko this daemon + pure qt bluetooth handling makes full talk-over-bluetooth support :-) Apr 09 14:40:40 I wonder how to build this daemon for Android Apr 09 14:40:49 I need to link to libasound Apr 09 14:41:51 but I just came to another idea -- I probably can do the same thing using very simple aplay command :-) Apr 09 14:46:45 I think it's a problem with the two audio channels of openmoko which android can't handle. Apr 09 14:47:20 Serdar: I just want to check if solution for qtmoko works for android :-) Apr 09 14:47:40 Serdar: and I need to either compile my program or have "valid" aplay, arecord and amixer binaries Apr 09 14:47:45 the problem is recording Apr 09 14:48:12 do we have aplay, arecord and amixer commands from ALSA on the distribution? Apr 09 15:16:11 no, it seems arecord and aplay can't do what I want :-) Apr 09 15:16:37 Serdar: your build uses bionic library and Google's linker, not gcc and ld? Apr 09 15:17:02 Serdar: so unless I have static binary I can't run it on Android Apr 09 15:17:16 hm Apr 09 15:17:25 it must be gcc Apr 09 15:18:10 Serdar: you mean I can take binaries from other distro to Android Apr 09 15:19:43 hi all Apr 09 15:19:58 i would like to know how android is stable Apr 09 15:20:08 Gabrys, do you have the sources? Apr 09 15:20:21 Yes Apr 09 15:20:31 single file Apr 09 15:20:41 and how long battery stands Apr 09 15:21:09 I need something like this: gcc -lasound gta02-gsm-bt-enabler.c Apr 09 15:21:43 there is a toolchain Apr 09 15:21:50 when last i used it cupcake was quite stable but there was a battery problem. eclair was not very stable. even i could'nt change ringtone Apr 09 15:21:58 armv4t-android-eabi-gcc Apr 09 15:22:14 mokono, last was when? Apr 09 15:22:30 I guess the battery shouldn't change that much. Apr 09 15:22:30 3 weeks Apr 09 15:23:05 and on cupcake i couldn't use terminal but on eclair it worked Apr 09 15:23:14 i would like to know status now Apr 09 15:23:21 3 weeks ago? Apr 09 15:23:31 not that was before Apr 09 15:23:58 Serdar: where to get the toolchain from? Apr 09 15:24:07 sourceas Apr 09 15:24:10 sources Apr 09 15:24:21 Serdar: and build it? Apr 09 15:24:45 i think you are trying to say that it is stable enough ??? Apr 09 15:25:07 Serdar: from android-on-freerunner git? Apr 09 15:25:15 yes Apr 09 15:25:26 mokono: I tried Android recently and it was really stable as a phone Apr 09 15:25:26 git clone git://gitorious.org/android-on-freerunner/platform_prebuilt.git Apr 09 15:25:31 that should be enough Apr 09 15:25:34 yes for me? which version do you suggest me Apr 09 15:25:36 Serdar: cool Apr 09 15:25:50 mokono: only the desktop changing was very slow Apr 09 15:26:01 on eclair? Apr 09 15:26:13 Gabrys, only for eclair, it's faster with cupcake. Apr 09 15:26:14 yes Apr 09 15:26:16 or master? Apr 09 15:26:21 master = eclair Apr 09 15:26:22 Serdar: I know ;-) Apr 09 15:26:27 ok =) Apr 09 15:26:36 Serdar: but that was the only thing that was actually slower on eclair Apr 09 15:26:44 thanks! i will give a try Apr 09 15:26:53 yes keyboard is much faster Apr 09 15:27:03 you can try my latest master build Apr 09 15:27:06 what about battery? any improvement? Apr 09 15:27:25 not that much, there were some Apr 09 15:27:42 because of getting rid of debug options of kernel Apr 09 15:28:33 ok thank yo guys. please keep developing it Apr 09 15:41:30 Serdar: I got this repo cloned Apr 09 15:41:52 Serdar: how do I build cross-compiler and linker Apr 09 15:42:57 Serdar: Ahh, it's built already ;-) Apr 09 15:43:06 Serdar: just entered wrong directory Apr 09 15:44:46 it'S prebuilt Apr 09 15:47:26 Serdar: I need some headers though :( Apr 09 15:48:03 Serdar: http://pastebin.com/UEz2YeGu Apr 09 15:48:27 mainly alsa, I can get rid of the unistd and sys/types Apr 09 15:51:44 Serdar: but shouldn't include work? I have those libs installed with headers locally Apr 09 15:52:50 I added -I/usr/include and it's a bit better :-) Apr 09 16:00:06 Serdar: but not nice: missing crt0.o: http://pastebin.com/xLSqiTBN Apr 09 16:45:59 Serdar: do you have a clue regarding the crt0.o for me? Apr 09 17:28:24 Serdar: -nostdlib solves this, but I do need libasound compiled for this as well :( Apr 09 17:53:12 Gabrys, maybe you need the whole sources or another toolchain Apr 09 17:53:22 Serdar: I almost got this working Apr 09 17:53:29 I took libraries from phone :-) Apr 09 17:53:38 and found some magic switches I need to pass to gcc Apr 09 17:53:43 -nostdlib and similar stuff Apr 09 17:56:22 and when run I get errors like this: /data/tmp/card/enabler2: not found Apr 09 17:56:31 I hate those verbose errors Apr 09 17:56:58 I would be more than happy if I could compile this small C code on the phone itself :-0 Apr 09 17:59:30 if you good at this, why you don't work on android itself? :) Apr 09 18:02:21 Serdar: I just want Bluetooth man :D Apr 09 18:03:53 I hate this not found error message Apr 09 18:03:55 WTF is that Apr 09 18:14:56 Serdar: I have no luck this, do you have working toolchain, and could you possibly compile that one binary for me? Apr 09 18:40:22 it's c right? Apr 09 18:40:29 maybe jancona could help you. Apr 09 18:49:11 Serdar: one plain C file with one -lasound needed :-) Apr 09 18:49:20 jancona: hello :-) Apr 09 19:05:54 Hi Gabsys Apr 09 19:09:09 jancona: could I ask you to compile one simple C program for Android? It links agains libasound and is a workaround to enable audio routing between GSM and BT on Freerunner (so that we can talk with Bluetooth headset). Apr 09 19:15:43 jancona: this is the file http://www.lastlook.pl/~quake/gta02-gsm-bt-enabler.c Apr 09 20:29:26 seems, that jancona is busy Apr 09 20:31:27 no problem, I'll ask some other time Apr 09 20:31:41 or maybe I'll get my own compiler chain Apr 09 20:32:34 I feel we only need that little app being run in the background, and Android will take care of the rest, just like the QtMoko does :-) Apr 09 20:35:06 hmm Apr 09 20:35:39 we need a working recording. Apr 09 20:36:03 recording of what? Apr 09 20:38:59 sound Apr 09 20:39:12 from bluetooth? Apr 09 20:39:39 from freerunner. Apr 09 20:39:54 that's why voicedialer is not working. Apr 09 20:39:58 ah Apr 09 20:40:00 for example Apr 09 20:40:01 I see Apr 09 20:40:23 if I understood it correct then the freerunner got two channel registration Apr 09 20:40:43 but android is useing only one, but it could work with 2 I heared. Apr 09 20:41:23 what do you mean by "registration" Apr 09 20:42:30 kind of "i use this channel!" Apr 09 20:42:33 it's mine Apr 09 20:48:20 and on freerunner you need to record two channels? Apr 09 20:48:39 maybe some kind of alsa setting may be a solution Apr 09 20:54:39 I guess I got the wrong idea Apr 09 20:54:51 it's mono for freerunner and stereo for neo1973 Apr 09 20:55:01 but recording does not work! Apr 09 20:56:00 do we have some meaningful logs? Apr 09 20:56:19 yes I made some Apr 09 20:56:43 but now my freerunner is linked to my debug board and I can't use it :/ Apr 09 20:57:11 you are useing RC1 right? Apr 09 20:57:30 I have the last daily from your site ;-) Apr 09 20:57:59 master? Apr 09 20:58:04 yes Apr 09 20:58:59 there must be voicedialer Apr 09 21:01:37 there is Apr 09 21:01:44 I haven't tested it though Apr 09 21:01:52 can you try it now? Apr 09 21:01:53 I'm not planning using it neither :-) Apr 09 21:01:56 I can test though Apr 09 21:01:57 I tell you what to do Apr 09 21:02:08 please wait a moment Apr 09 21:02:08 please start adb logcat Apr 09 21:03:11 ok, I need to reboot ;-) Apr 09 21:03:19 I was testing bluetooth on qtmoko Apr 09 21:04:01 k Apr 09 21:04:21 I have serious problems with booting into NAND from Qt BTW Apr 09 21:05:50 I meant Qi Apr 09 21:06:37 Android needs another Qi than qtmoko for example Apr 09 21:07:34 I use Android one's Apr 09 21:08:10 I have SHR and QtMoko on mmc and Android in nand Apr 09 21:08:23 I see. Apr 09 21:08:39 tell me if you booted Apr 09 21:09:03 SHR and Qt boots fine using magic key&time&led combinations Apr 09 21:12:40 I give up, I'm starting without the SD card Apr 09 21:14:55 I get Please try again later, let me do the logcat Apr 09 21:15:41 what? Apr 09 21:15:51 you shouldn't run voicedailer Apr 09 21:16:00 you didn't right? Apr 09 21:16:05 I did Apr 09 21:16:07 grr Apr 09 21:16:26 can you please reboot 8) Apr 09 21:16:29 ok Apr 09 21:16:42 sorry Apr 09 21:17:01 no problem, I got time Apr 09 21:17:08 ti's saturday tomorrow Apr 09 21:17:15 it's Apr 09 21:18:36 ok Apr 09 21:18:39 it's rebooted Apr 09 21:18:46 not yet registered to GSM network Apr 09 21:18:54 doesn'T matter Apr 09 21:18:59 now it is Apr 09 21:19:01 run logcat now please Apr 09 21:19:11 do I have to have non-empty phonebook? Apr 09 21:19:37 I'm running logcat Apr 09 21:19:39 that doesn'T matter Apr 09 21:19:42 ok Apr 09 21:19:48 D/GpsLocationProvider( 841): NetworkThread wait for 9223372036854775807ms Apr 09 21:19:49 D/GpsLocationProvider( 841): updateNetworkState available info: NetworkInfo: type: WIFI[], state: CONNECTED/CONNECTED, reason: (unspecified), extra: (none), roaming: false, failover: false, isAvailable: true Apr 09 21:19:49 D/GpsLocationProvider( 841): NetworkThread wait for 9223372036854775807ms Apr 09 21:19:52 last few lines of logcat Apr 09 21:19:58 is GPS? Apr 09 21:20:01 huh Apr 09 21:20:07 strange Apr 09 21:20:23 it seems so :-) Apr 09 21:20:29 not related I guess? Apr 09 21:20:36 okay press ENTER few times and than run voicedialer and press ENTER few times too after it slowed down. Apr 09 21:21:15 no these are D, that's not a failure Apr 09 21:21:20 E is a failure Apr 09 21:21:24 I know Apr 09 21:21:38 and you must get an E now. Apr 09 21:21:46 I got a few ;-) Apr 09 21:21:56 nopaste please Apr 09 21:22:02 http://pastebin.com/i2gBR1dY Apr 09 21:24:36 E/AudioRecord( 1124): Recording parameters are not supported: sampleRate 11025, channelCount 1, format 1 Apr 09 21:24:40 this samplereate Apr 09 21:24:50 also there's no AndroidCapture in /system/etc/asound.conf, but there is pcm.AndroidCapture_Microphone Apr 09 21:24:50 11025 Apr 09 21:25:17 no idea what this androidcapture is. Apr 09 21:25:20 easy to check if this rate is supported on other distro using arecord Apr 09 21:26:00 it should be 8000 I guess Apr 09 21:26:13 8000 is supported by hw:0,1 for sure :-) Apr 09 21:26:34 can you look about this AndroidCapture thing? Apr 09 21:26:41 and how to set? Apr 09 21:27:01 I changed the AndroidCapture_Microphone to AndroidCapture in asound.conf Apr 09 21:27:06 let's see if this works any better now Apr 09 21:27:24 tell me where to change I can try it. Apr 09 21:27:30 and build a new daily Apr 09 21:28:38 this should work without restarting anything Apr 09 21:29:16 you can't change the sampleing rate Apr 09 21:29:25 sampling no Apr 09 21:29:26 it's hardcoded Apr 09 21:29:37 well Apr 09 21:29:49 you can do a pseudodevice and let alsa resample this for you :-) Apr 09 21:32:37 it'S also time for a rebuild, there are some master updates Apr 09 21:33:23 ok, so let me see what rates are ok for qtmoko's and arecord Apr 09 21:36:45 neo:~# arecord -r 11050 Apr 09 21:36:45 Recording WAVE 'stdin' : Unsigned 8 bit, Rate 11050 Hz, Mono Apr 09 21:36:49 this works pretty well Apr 09 21:37:55 okay then try changing the pcm Apr 09 21:38:31 neo:~# arecord -D hw:0,0 -r 11050 Apr 09 21:38:31 Recording WAVE 'stdin' : Unsigned 8 bit, Rate 11050 Hz, Mono Apr 09 21:38:32 arecord: set_params:918: Sample format non available Apr 09 21:39:00 and 8000? Apr 09 21:39:05 the same Apr 09 21:39:12 it's sample format not bitrate Apr 09 21:39:59 interesting thing: Apr 09 21:40:00 arecord -D hw:0,0 -r 8000 -f S16_LE -c 2 Apr 09 21:40:02 this works Apr 09 21:40:05 2 channels Apr 09 21:40:12 but arecord -D hw:0,0 -r 8000 -f S16_LE -c 1 Apr 09 21:40:23 (one channel) gives arecord: set_params:923: Channels count non available Apr 09 21:40:57 E/AudioRecord( 1124): Recording parameters are not supported: sampleRate 11025, channelCount 1, format 1 Apr 09 21:41:04 hmm Apr 09 21:41:04 but I wonder if hw:0,0 is what we want Apr 09 21:41:21 hw:0,0: card 0: neo1973gta02 [neo1973-gta02], device 0: WM8753 HiFi WM8753 HiFi-0 [] Apr 09 21:41:30 hw:0,1: card 0: neo1973gta02 [neo1973-gta02], device 1: Voice WM8753 Voice-1 [] Apr 09 21:41:50 and on hw:0,1 you have one channel Apr 09 21:41:51 0 is output 1 is input? Apr 09 21:41:55 no Apr 09 21:42:00 both are inputs Apr 09 21:42:11 well both are inputs and outputs Apr 09 21:42:17 but we open them for reading :-) Apr 09 21:42:18 huh Apr 09 21:42:26 but wait Apr 09 21:42:33 hw:0,1 is wired to bluetooth Apr 09 21:42:45 so we need to capture hw:0,0 Apr 09 21:43:59 you lost me. Apr 09 21:45:32 hw:0,1 is a device that is wired directly to bluetooth chip audio input/output Apr 09 21:45:51 so only hw:0,0 is now important for us Apr 09 21:47:14 and hw:0,0 seems recording in stereo Apr 09 21:50:21 okay Apr 09 21:51:46 I'll try to actually record something from command lnie Apr 09 21:55:27 but I need to go now Apr 09 21:55:31 I'll try tomorrow Apr 09 21:55:48 tomorrow will begin in 5 Minutes, so why going? Apr 09 21:59:13 if (sampleRate != 8000) { Apr 09 21:59:13 LOGW("getInputBufferSize bad sampling rate: %d", sampleRate); Apr 09 21:59:13 return 0; Apr 09 21:59:13 } Apr 09 21:59:41 Gabrys, before you go, tell me which alsa.conf you changed Apr 09 22:38:42 hello everybody. I am using lastest build(master-daily-20100404.tar.bz2) on my freerunner. When i change settings it still has default values. Does anyone know the problem and how to fix it? Apr 09 22:39:23 any comments? Apr 09 23:33:06 ? Apr 09 23:33:14 any one there? **** ENDING LOGGING AT Sat Apr 10 02:59:57 2010