Re: [PATCH] wacom: fix pressure in Cintiq 21UX2

From: Ping Cheng
Date: Fri Oct 08 2010 - 14:20:25 EST


On Fri, Oct 8, 2010 at 7:16 AM, Aristeu Rozanski <aris@xxxxxxxxxx> wrote:
> Currently the pressure range in Cintiq 21UX2 is limited to half of the
> supported. This patch fixes the problem.
>
> Signed-off-by: Aristeu Rozanski <aris@xxxxxxxxxx>

Acked-by: Ping Cheng <pingc@xxxxxxxxx>

Thank you Aristeu.

Dmitry, this patch should be backported since it is a bug fix.

Ping

> ---
>  drivers/input/tablet/wacom_wac.c |    3 ++-
>  1 file changed, 2 insertions(+), 1 deletion(-)
>
> --- linus-2.6.orig/drivers/input/tablet/wacom_wac.c     2010-09-22 14:52:22.000000000 -0400
> +++ linus-2.6/drivers/input/tablet/wacom_wac.c  2010-10-07 17:20:30.000000000 -0400
> @@ -442,7 +442,8 @@ static void wacom_intuos_general(struct
>        /* general pen packet */
>        if ((data[1] & 0xb8) == 0xa0) {
>                t = (data[6] << 2) | ((data[7] >> 6) & 3);
> -               if (features->type >= INTUOS4S && features->type <= INTUOS4L)
> +               if (features->type >= INTUOS4S && features->type <= INTUOS4L ||
> +                   features->type == WACOM_21UX2)
>                        t = (t << 1) | (data[1] & 1);
>                input_report_abs(input, ABS_PRESSURE, t);
>                input_report_abs(input, ABS_TILT_X,
>
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/