1. 03 6月, 2009 1 次提交
    • J
      Input: appletouch - improve finger detection · 05e882f8
      Jeremy Huddleston 提交于
      The appletouch driver is prone to reporting multiple fingers when only
      one is pressing.  The appletouch driver queries an array of pressure
      sensors and counts local maxima in pressure to determine the number of
      fingers.  It just does this on the raw values, so a data stream like:
      
      0 100 250 300 299 300 250 100 0
      
      actually registers as 2 fingers.
      
      This patch updates the logic to ignore small dips in pressure that are
      less than the threshold.
      Signed-off-by: NJeremy Huddleston <jeremyhu@freedesktop.org>
      Signed-off-by: NDmitry Torokhov <dtor@mail.ru>
      05e882f8
  2. 29 4月, 2009 1 次提交
  3. 29 10月, 2008 1 次提交
    • S
      Input: appletouch - driver refactoring · 09779678
      Stelian Pop 提交于
      The appletouch driver has grown up from supporting only a couple of
      touchpads into supporting many touchpads, which can have different
      number of sensors, different aspect ratios etc.
      
      This patch cleans up the current driver code and makes it easy to
      support the features of each different touchpad.
      
      As a side effect, this patch also modifies the 'Y' multiplication factor
      of the 'geyser3' and 'geyser4' touchpads (found on Core Duo and Core2
      Duo MacBook and MacBook Pro laptops) in order to make the touchpad
      output match the aspect ratio of the touchpad (Y factor changed from 43
      to 64).
      
      [dtor@mail.ru: make atp_info constant]
      Signed-off-by: NStelian Pop <stelian@popies.net>
      Acked-by: NJohannes Berg <johannes@sipsolutions.net>
      Signed-off-by: NDmitry Torokhov <dtor@mail.ru>
      09779678
  4. 09 8月, 2008 2 次提交
  5. 17 6月, 2008 1 次提交
  6. 17 5月, 2008 3 次提交
  7. 02 4月, 2008 2 次提交
  8. 02 11月, 2007 1 次提交
  9. 22 10月, 2007 1 次提交
  10. 13 10月, 2007 1 次提交
  11. 25 9月, 2007 1 次提交
  12. 20 7月, 2007 1 次提交
  13. 08 5月, 2007 1 次提交
  14. 12 4月, 2007 3 次提交
  15. 17 11月, 2006 3 次提交
    • J
      Input: appletouch - use canonical names in USB IDs · e5d9832c
      Julien BLACHE 提交于
      Small readability improvement for appletouch: use canonical names
      instead of raw USB IDs for some of the devices.
      Signed-off-by: NJulien BLACHE <jb@jblache.org>
      Signed-off-by: NDmitry Torokhov <dtor@mail.ru>
      e5d9832c
    • J
      Input: appletouch - add Geyser IV support · 009ad0e7
      Julien BLACHE 提交于
      The new Core2 Duo MacBook Pro has a new keyboard+trackpad named
      "Geyser IV".
      
      According to the Info.plist in the OS X kext, it looks like the Geyser
      IV trackpad is identical to the Geyser III trackpad: same IOClass
      (AppleUSBGrIIITrackpad), same acceleration tables.
      Signed-off-by: NJulien BLACHE <jb@jblache.org>
      Signed-off-by: NDmitry Torokhov <dtor@mail.ru>
      009ad0e7
    • J
      Input: appletouch - verious updates for MacBooks · 00081d37
      Jason Parekh 提交于
      Change a bit the finger detection method used by the appletouch
      driver to reduce touchpad "jumpiness":
      
       - Adjust the method for detecting multiple fingers. Previously, it
         recognized a new finger when a low sensor reading is followed by
         a high sensor reading. The new method checks for 'humps' in the
         sensor readings, so there doesn't necessarily have to be a low
         sensor between two high sensors for two fingers to be triggered.
         This allows detecting presence of two fingers on the touchpad
         even when they touch each other.
      
       - Change absolute coordinate calculation to us to get rid of "jumps".
         Instead of using full value from a sensor once it passes the
         threshold subtract theshold value from the reading.
      
       - Allow adjusting threshold value via module parameter.
      
      The patch doesn't seem to affect the Powerbooks but does greatly improve
      the touchpad behaviour on the MacBooks.
      Signed-off-by: NJason Parekh <jasonparekh@gmail.com>
      Signed-off-by: NStelian Pop <stelian@popies.net>
      Signed-off-by: NDmitry Torokhov <dtor@mail.ru>
      00081d37
  16. 05 10月, 2006 1 次提交
    • D
      IRQ: Maintain regs pointer globally rather than passing to IRQ handlers · 7d12e780
      David Howells 提交于
      Maintain a per-CPU global "struct pt_regs *" variable which can be used instead
      of passing regs around manually through all ~1800 interrupt handlers in the
      Linux kernel.
      
      The regs pointer is used in few places, but it potentially costs both stack
      space and code to pass it around.  On the FRV arch, removing the regs parameter
      from all the genirq function results in a 20% speed up of the IRQ exit path
      (ie: from leaving timer_interrupt() to leaving do_IRQ()).
      
      Where appropriate, an arch may override the generic storage facility and do
      something different with the variable.  On FRV, for instance, the address is
      maintained in GR28 at all times inside the kernel as part of general exception
      handling.
      
      Having looked over the code, it appears that the parameter may be handed down
      through up to twenty or so layers of functions.  Consider a USB character
      device attached to a USB hub, attached to a USB controller that posts its
      interrupts through a cascaded auxiliary interrupt controller.  A character
      device driver may want to pass regs to the sysrq handler through the input
      layer which adds another few layers of parameter passing.
      
      I've build this code with allyesconfig for x86_64 and i386.  I've runtested the
      main part of the code on FRV and i386, though I can't test most of the drivers.
      I've also done partial conversion for powerpc and MIPS - these at least compile
      with minimal configurations.
      
      This will affect all archs.  Mostly the changes should be relatively easy.
      Take do_IRQ(), store the regs pointer at the beginning, saving the old one:
      
      	struct pt_regs *old_regs = set_irq_regs(regs);
      
      And put the old one back at the end:
      
      	set_irq_regs(old_regs);
      
      Don't pass regs through to generic_handle_irq() or __do_IRQ().
      
      In timer_interrupt(), this sort of change will be necessary:
      
      	-	update_process_times(user_mode(regs));
      	-	profile_tick(CPU_PROFILING, regs);
      	+	update_process_times(user_mode(get_irq_regs()));
      	+	profile_tick(CPU_PROFILING);
      
      I'd like to move update_process_times()'s use of get_irq_regs() into itself,
      except that i386, alone of the archs, uses something other than user_mode().
      
      Some notes on the interrupt handling in the drivers:
      
       (*) input_dev() is now gone entirely.  The regs pointer is no longer stored in
           the input_dev struct.
      
       (*) finish_unlinks() in drivers/usb/host/ohci-q.c needs checking.  It does
           something different depending on whether it's been supplied with a regs
           pointer or not.
      
       (*) Various IRQ handler function pointers have been moved to type
           irq_handler_t.
      Signed-Off-By: NDavid Howells <dhowells@redhat.com>
      (cherry picked from 1b16e7ac850969f38b375e511e3fa2f474a33867 commit)
      7d12e780
  17. 28 9月, 2006 1 次提交
  18. 12 8月, 2006 1 次提交
  19. 01 7月, 2006 1 次提交
  20. 22 6月, 2006 2 次提交
  21. 05 1月, 2006 1 次提交
  22. 21 12月, 2005 1 次提交
  23. 29 10月, 2005 1 次提交
  24. 13 9月, 2005 1 次提交
    • S
      [PATCH] USB: add apple usb touchpad driver · f7214ff4
      Stelian Pop 提交于
      This is a driver for the USB touchpad which can be found on post-February 2005
      Apple PowerBooks.
      
      This driver is derived from Johannes Berg's appletrackpad driver [1],
      but it has been improved in some areas:
          * appletouch is a full kernel driver, no userspace program is necessary
          * appletouch can be interfaced with the synaptics X11 driver[2], in order
            to have touchpad acceleration, scrolling, two/three finger tap, etc.
      
      This driver has been tested by the readers of the 'debian-powerpc' mailing
      list for a few weeks now and I believe it is now ready for inclusion into the
      mainline kernel.
      
      Credits go to Johannes Berg for reverse-engineering the touchpad protocol,
      Frank Arnold for further improvements, and Alex Harper for some additional
      information about the inner workings of the touchpad sensors.
      Signed-off-by: NStelian Pop <stelian@popies.net>
      Signed-off-by: NGreg Kroah-Hartman <gregkh@suse.de>
      f7214ff4