nanogui: Problem with touch screen
Subject:
Problem with touch screen
From:
Rakesh ####@####.####
Date:
9 May 2002 04:41:03 -0000
Message-Id: <3CD9E67F.2E4BCA35@gdatech.co.in>
Hi,
I am working on strong arm based custom design board and i have written
a driver for touch screen. I am using linux 2.4.13 version. We are using
wm9705 chip for audio and touch screen. I have modified the ucb1x00_ts.c
for wm9705 chip. In microwindows i m using 0.89pre7 version. I have
selected mou_ipaq option for tiuch screen and TOUCHDEVICE i have
chaneged to "/dev/touch", as i am using touch as the device name in my
driver with major and minor no. 10 & 14 respectively. When I am running
any application, its open the device and when i touch the screen its
going iniside Read function and after that its
static int PD_Read(MWCOORD *px, MWCOORD *py, MWCOORD *pz, int *pb)
{
/* read a data point */
short data[4];
int bytes_read;
EPRINTF("\n\rInside PD_READ");
bytes_read = read(pd_fd, data, 4 * sizeof(data));
if (bytes_read != (4 * sizeof(data))) {
if (errno == EINTR || errno == EAGAIN)
return 0;
/*
* kernel driver bug: select returns read available,
* but read returns -1
* we return 0 here to avoid GsError above
*/
/*return -1;*/
return 0;
}
EPRINTF("\n\rAfter bytes_read"); //Its not reaching
here........................
*px = (MWCOORD)data[1];
*py = (MWCOORD)data[2];
*pb = (data[0]>0 ? MWBUTTON_L : 0);
*pz = 0;
if(! *pb )
return 3; /* only have button data */
else
return 2; /* have full set of data */
}
Can you pl help me out to sort out this problem.
Thanks & Regards........
Rakesh