Hi Dmitry, В сообщении от 19 февраля 2010 11:17:55 автор Dmitry Torokhov написал: > I do not think this is right. Here you reset sampling data regardless > of whether you got the right number of samples or not. You should repeat > s3c_adc_start only if you got (1 << ts.shift) samples. But I think I see > why touchpad may stop reporintg sometimes - if timer fires before you > get the needed number of samples nothing will happen as timer is not > gettign rearmed. Problem is driver reports "stylus down" event when stylus is already up, anyway I agree that samples should not be discarded. > > } else { > > > > ts.count = 0; > > I also think this branch is missing ts.xp = ts.yp = 0; Ok. Fixed version is in attachment Thanks for review.