Input: bcm5974 - augment debug information
Add more button and finger data to the debug output. Signed-off-by: Henrik Rydberg <rydberg@euromail.se> Signed-off-by: Dmitry Torokhov <dtor@mail.ru>
This commit is contained in:
committed by
Dmitry Torokhov
parent
158e928741
commit
5340219317
@@ -299,6 +299,11 @@ static int report_bt_state(struct bcm5974 *dev, int size)
|
|||||||
if (size != sizeof(struct bt_data))
|
if (size != sizeof(struct bt_data))
|
||||||
return -EIO;
|
return -EIO;
|
||||||
|
|
||||||
|
dprintk(7,
|
||||||
|
"bcm5974: button data: %x %x %x %x\n",
|
||||||
|
dev->bt_data->unknown1, dev->bt_data->button,
|
||||||
|
dev->bt_data->rel_x, dev->bt_data->rel_y);
|
||||||
|
|
||||||
input_report_key(dev->input, BTN_LEFT, dev->bt_data->button);
|
input_report_key(dev->input, BTN_LEFT, dev->bt_data->button);
|
||||||
input_sync(dev->input);
|
input_sync(dev->input);
|
||||||
|
|
||||||
@@ -330,8 +335,9 @@ static int report_tp_state(struct bcm5974 *dev, int size)
|
|||||||
raw_y = raw2int(f->abs_y);
|
raw_y = raw2int(f->abs_y);
|
||||||
|
|
||||||
dprintk(9,
|
dprintk(9,
|
||||||
"bcm5974: raw: p: %+05d w: %+05d x: %+05d y: %+05d\n",
|
"bcm5974: "
|
||||||
raw_p, raw_w, raw_x, raw_y);
|
"raw: p: %+05d w: %+05d x: %+05d y: %+05d n: %d\n",
|
||||||
|
raw_p, raw_w, raw_x, raw_y, raw_n);
|
||||||
|
|
||||||
ptest = int2bound(&c->p, raw_p);
|
ptest = int2bound(&c->p, raw_p);
|
||||||
origin = raw2int(f->origin);
|
origin = raw2int(f->origin);
|
||||||
@@ -377,8 +383,8 @@ static int report_tp_state(struct bcm5974 *dev, int size)
|
|||||||
|
|
||||||
dprintk(8,
|
dprintk(8,
|
||||||
"bcm5974: abs: p: %+05d w: %+05d x: %+05d y: %+05d "
|
"bcm5974: abs: p: %+05d w: %+05d x: %+05d y: %+05d "
|
||||||
"nmin: %d nmax: %d n: %d\n",
|
"nmin: %d nmax: %d n: %d ibt: %d\n", abs_p, abs_w,
|
||||||
abs_p, abs_w, abs_x, abs_y, nmin, nmax, dev->fingers);
|
abs_x, abs_y, nmin, nmax, dev->fingers, ibt);
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user