[android-porting] Re: A problem about ALSA capture

2009-10-20 Thread zhqzh1982
modify your Audiorecord buffer size. yout buffer size should equal your function getbuffersize()'s return value my buffer size is 320. On 9月11日, 上午11时46分, xie zzl wrote: > Thanks for reply~~ > My devices info is below: > # cat /proc/asound/devices >   0: [ 0]   : control >  16: [ 0- 0]: digital

[android-porting] android alarm

2009-02-02 Thread zhqzh1982
hi all: I know ,android use the driver/android/alarm.c to realise the alarm applation,but ,I do not sure ,where the driver set the alarm time ,where the driver enable the alarm ? I have check the goldfish code,and find the struct "goldfish_clockevent" ,in the fouction "goldfish_timer_set_next_ev

[android-porting] Re: about android charging detect and battery level detect

2009-01-05 Thread zhqzh1982
thanks ~~~ On 1月5日, 下午12时15分, Sean McNeil wrote: > Hi, > > Android uses the standard power interface, but it expects that uevents > are generated when the values change. It does not poll the values, but > listens for the uevents instead. > > > > zhqzh1982 wrote: >

[android-porting] about android charging detect and battery level detect

2009-01-04 Thread zhqzh1982
hi all: is anyone know the android charging detect and battery level detect interface between the linux driver and the android APP,thanks a lot , today I start to study the power reference of android :) --~--~-~--~~~---~--~~ unsubscribe: android-porting+unsu

[android-porting] Re: about android touch pannel

2008-12-11 Thread zhqzh1982
;input_dev->absmax[ABS_Y]) > absy = wm->input_dev->absmax[ABS_Y]; > if(absx > wm->input_dev->absmax[ABS_X]) > absx = wm->input_dev->absmax[ABS_X]; > input_report_abs(wm->input_dev, ABS_X, absx); > input_report_abs(wm-

[android-porting] Re: about android touch pannel

2008-12-11 Thread zhqzh1982
you mean i shoul send a BTN_TOUCH pressure event.just like input_event(ts->idev, EV_ABS, BTN_TOUCH, pressure);? On 12月12日, 上午9时56分, Reed Huang wrote: > You need to send BTN_TOUCH event when the pen is down. > Refer to:http://androidzaurus.seesaa.net/article/90045743.html > zhqzh1982

[android-porting] Re: about android touch pannel

2008-12-11 Thread zhqzh1982
now i modify the simply calibrate way by x = ((x- 80)*480)/(1300-80); mean the x's value is from 0 to 480 y = ((y - 380)*640)/(1600-400); the y's value is from 0 to 640 the tslib working ok,but android's touchscreen do not work On 12月12日, 上午8时58分, zhqzh1982 wrote: > hi > m

[android-porting] about android touch pannel

2008-12-11 Thread zhqzh1982
hi my touch pannel driver use input system with event interface when pen down ,i input the x valuer y value and pressure value,just below if((x == 0)&&(y == 0)&&(pressure == 0)){ x = last_x; y = last_y; } else { x = ((x- 80)*240)/(1300-80); y = ((y - 380)*320)/(1600-40