From patchwork Fri Jan 25 17:12:44 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jani Monoses X-Patchwork-Id: 215815 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from chlorine.canonical.com (chlorine.canonical.com [91.189.94.204]) by ozlabs.org (Postfix) with ESMTP id 5392A2C008D for ; Sat, 26 Jan 2013 04:15:13 +1100 (EST) Received: from localhost ([127.0.0.1] helo=chlorine.canonical.com) by chlorine.canonical.com with esmtp (Exim 4.71) (envelope-from ) id 1Tymrq-00084N-Pn; Fri, 25 Jan 2013 17:15:06 +0000 Received: from plane.gmane.org ([80.91.229.3]) by chlorine.canonical.com with esmtp (Exim 4.71) (envelope-from ) id 1Tymps-00080c-1l for kernel-team@lists.ubuntu.com; Fri, 25 Jan 2013 17:13:04 +0000 Received: from list by plane.gmane.org with local (Exim 4.69) (envelope-from ) id 1Tymq8-0004Ai-Au for kernel-team@lists.ubuntu.com; Fri, 25 Jan 2013 18:13:20 +0100 Received: from 79.119.118.250 ([79.119.118.250]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Fri, 25 Jan 2013 18:13:20 +0100 Received: from jani by 79.119.118.250 with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Fri, 25 Jan 2013 18:13:20 +0100 X-Injected-Via-Gmane: http://gmane.org/ To: kernel-team@lists.ubuntu.com From: Jani Monoses Subject: Re: [PATCH] Revert Nexus7 touch to portrait by default - "0001-Revert-UBUNTU-SAUCE-Report-landscape-mode-coordinate.patch" yEnc Date: Fri, 25 Jan 2013 19:12:44 +0200 Lines: 82 Message-ID: References: <20130125170320.GK4513@dm> Mime-Version: 1.0 X-Complaints-To: usenet@ger.gmane.org X-Gmane-NNTP-Posting-Host: 79.119.118.250 User-Agent: Mozilla/5.0 (X11; Linux i686; rv:17.0) Gecko/20130105 Thunderbird/17.0.2 In-Reply-To: <20130125170320.GK4513@dm> X-BeenThere: kernel-team@lists.ubuntu.com X-Mailman-Version: 2.1.13 Precedence: list List-Id: Kernel team discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: kernel-team-bounces@lists.ubuntu.com Errors-To: kernel-team-bounces@lists.ubuntu.com Sorry about the noise. Resending with Thunderbird now, apparently 'Queue File' in Pan is not the same thing as 'attach file'. Jani From c4a5fe7c503536e26272cd5f43fe449452685000 Mon Sep 17 00:00:00 2001 From: Jani Monoses Date: Fri, 25 Jan 2013 16:53:06 +0200 Subject: [PATCH] Revert "UBUNTU: SAUCE: Report landscape mode coordinates in touchscreen" This reverts commit a3bd73aac380ff23e1fcbed00273ca14fdafb641. Signed-off-by: Jani Monoses --- drivers/input/touchscreen/ektf3k.c | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/drivers/input/touchscreen/ektf3k.c b/drivers/input/touchscreen/ektf3k.c index dfff2de..dbfd793 100755 --- a/drivers/input/touchscreen/ektf3k.c +++ b/drivers/input/touchscreen/ektf3k.c @@ -920,8 +920,8 @@ static void elan_ktf3k_ts_report_data(struct i2c_client *client, uint8_t *buf) pressure_size = touch_size << 4; // shift left touch size value to 4 bits for max pressure value 255 input_report_abs(idev, ABS_MT_TOUCH_MAJOR, touch_size); input_report_abs(idev, ABS_MT_PRESSURE, pressure_size); - input_report_abs(idev, ABS_MT_POSITION_X, x); - input_report_abs(idev, ABS_MT_POSITION_Y, (ts->abs_y_max - y)); + input_report_abs(idev, ABS_MT_POSITION_X, y); + input_report_abs(idev, ABS_MT_POSITION_Y, x); if(unlikely(gPrint_point)) touch_debug(DEBUG_INFO, "[elan] finger id=%d X=%d y=%d size=%d pressure=%d\n", i, x, y, touch_size, pressure_size); } } @@ -970,8 +970,8 @@ static void elan_ktf3k_ts_report_data2(struct i2c_client *client, uint8_t *buf) pressure_size = buf[45 + i]; input_report_abs(idev, ABS_MT_TOUCH_MAJOR, touch_size); input_report_abs(idev, ABS_MT_PRESSURE, pressure_size); - input_report_abs(idev, ABS_MT_POSITION_X, x); - input_report_abs(idev, ABS_MT_POSITION_Y, (ts->abs_y_max -y)); + input_report_abs(idev, ABS_MT_POSITION_X, y); + input_report_abs(idev, ABS_MT_POSITION_Y, x); if(unlikely(gPrint_point)) touch_debug(DEBUG_INFO, "[elan] finger id=%d X=%d y=%d size=%d pressure=%d\n", i, x, y, touch_size, pressure_size); } } @@ -1510,13 +1510,13 @@ static int elan_ktf3k_ts_probe(struct i2c_client *client, ts->abs_y_max = pdata->abs_y_max; touch_debug(DEBUG_INFO, "[Elan] Max X=%d, Max Y=%d\n", ts->abs_x_max, ts->abs_y_max); - input_set_abs_params(ts->input_dev, ABS_Y, pdata->abs_y_min, pdata->abs_y_max, 0, 0); // for 800 * 1280 - input_set_abs_params(ts->input_dev, ABS_X, pdata->abs_x_min, pdata->abs_x_max, 0, 0);// for 800 * 1280 + input_set_abs_params(ts->input_dev, ABS_X, pdata->abs_y_min, pdata->abs_y_max, 0, 0); // for 800 * 1280 + input_set_abs_params(ts->input_dev, ABS_Y, pdata->abs_x_min, pdata->abs_x_max, 0, 0);// for 800 * 1280 input_set_abs_params(ts->input_dev, ABS_PRESSURE, 0, MAX_FINGER_PRESSURE, 0, 0); input_mt_init_slots(ts->input_dev, FINGER_NUM); - input_set_abs_params(ts->input_dev, ABS_MT_POSITION_Y, pdata->abs_y_min, pdata->abs_y_max, 0, 0); // for 800 * 1280 - input_set_abs_params(ts->input_dev, ABS_MT_POSITION_X, pdata->abs_x_min, pdata->abs_x_max, 0, 0);// for 800 * 1280 + input_set_abs_params(ts->input_dev, ABS_MT_POSITION_X, pdata->abs_y_min, pdata->abs_y_max, 0, 0); // for 800 * 1280 + input_set_abs_params(ts->input_dev, ABS_MT_POSITION_Y, pdata->abs_x_min, pdata->abs_x_max, 0, 0);// for 800 * 1280 input_set_abs_params(ts->input_dev, ABS_MT_TOUCH_MAJOR, 0, MAX_FINGER_SIZE, 0, 0); input_set_abs_params(ts->input_dev, ABS_MT_PRESSURE, 0, MAX_FINGER_PRESSURE, 0, 0); -- 1.8.0