1. 25 9月, 2014 1 次提交
  2. 22 9月, 2014 1 次提交
  3. 15 9月, 2014 2 次提交
  4. 01 9月, 2014 1 次提交
    • F
      HID: sony: Set the Sixaxis cable state correctly · 9fddd74a
      Frank Praznik 提交于
      Bit 3 in byte 31 of the Sixaxis report indicates whether the battery is
      charging or not charging as opposed to whether or not the cable is plugged in.
      As a result, when connected via USB and fully charged, the power_supply status
      is wrongly reported as 'Discharging' instead of 'Full'.
      
      Use the battery level value to set the cable state so that the power status
      is reported correctly as that seems to be the only reliable way to determine the
      cable status on the Sixaxis.
      Signed-off-by: NFrank Praznik <frank.praznik@oh.rr.com>
      Signed-off-by: NJiri Kosina <jkosina@suse.cz>
      9fddd74a
  5. 30 7月, 2014 1 次提交
  6. 26 6月, 2014 4 次提交
    • A
      HID: sony: Remove an old and redundant comment · ab030726
      Antonio Ospite 提交于
      Remove an old redundant comment before sony_report_fixup(), it must have
      been a leftover from the first version of the driver:
      sony_report_fixup() now handles all the supported devices, not only the
      Sony Vaio VGX.
      
      The comment is also redundant as the same information provided by it is
      also present in the body of the function.
      Signed-off-by: NAntonio Ospite <ao2@ao2.it>
      Signed-off-by: NJiri Kosina <jkosina@suse.cz>
      ab030726
    • A
      HID: sony: Format and comment sixaxis_rdesc · fb705a6d
      Antonio Ospite 提交于
      Reformat sixaxis_rdesc to reflect its HID structure, and comment each
      field. This will make it easier to validate changes to the descriptor in
      the future.
      
      No functional changes are introduced, the descriptor is exactly the same
      as before byte by byte.
      
      The heavy lifting has been done with the help of hidrd-convert:
      https://github.com/DIGImend/hidrdSigned-off-by: NAntonio Ospite <ao2@ao2.it>
      Signed-off-by: NJiri Kosina <jkosina@suse.cz>
      fb705a6d
    • A
      HID: sony: Always override the Sixaxis descriptor · c607fb8d
      Antonio Ospite 提交于
      Simplify the logic of overriding the Sixaxis HID descriptor, this will
      make it easier to amend the descriptor in future commits.
      
      The current code does this:
      
      	if (original sixaxis via USB or BT)
      		fixup only a part of the descriptor
      	else if (sixaxis compatible controller)
      		override the _whole_ descriptor
      
      but the end result is exactly the same, except for the trailing zero in
      the case of original BT controllers.
      
      So let's just regularize the process, and always override the HID
      descriptor.
      
      Always overriding the descriptor changes the current semantic a little
      bit, before this change the BT descriptor still had the trailing zero
      byte, while now it is exactly the same as the descriptor of the
      controller via USB, but that does not affect proper operation of the
      device.
      
      Note that overriding the whole descriptor for original devices is not
      strictly necessary for now, but it simplifies the code and in the future
      the report descriptor will be patched further and keys will be remapped,
      so it's handy to have only one place to patch.
      Signed-off-by: NAntonio Ospite <ao2@ao2.it>
      Signed-off-by: NJiri Kosina <jkosina@suse.cz>
      c607fb8d
    • A
      HID: sony: Use the SIXAXIS_CONTROLLER constant when possible · 50764650
      Antonio Ospite 提交于
      Instead of checking for SIXAXIS_CONTROLLER_USB and SIXAXIS_CONTROLLER_BT
      separately, a check on SIXAXIS_CONTROLLER can be used when setting
      connect_mask.
      Signed-off-by: NAntonio Ospite <ao2@ao2.it>
      Signed-off-by: NJiri Kosina <jkosina@suse.cz>
      50764650
  7. 25 4月, 2014 7 次提交
  8. 03 4月, 2014 1 次提交
  9. 02 4月, 2014 3 次提交
  10. 14 3月, 2014 1 次提交
    • B
      HID: sony: do not rely on hid_output_raw_report · e534a935
      Benjamin Tissoires 提交于
      hid_out_raw_report is going to be obsoleted as it is not part of the
      unified HID low level transport documentation
      (Documentation/hid/hid-transport.txt)
      
      To do so, we need to introduce two new quirks:
      * HID_QUIRK_NO_OUTPUT_REPORTS_ON_INTR_EP: this quirks prevents the
        transport driver to use the interrupt channel to send output report
        (and thus force to use HID_REQ_SET_REPORT command)
      * HID_QUIRK_SKIP_OUTPUT_REPORT_ID: this one forces usbhid to not
        include the report ID in the buffer it sends to the device through
        HID_REQ_SET_REPORT in case of an output report
      
      This also fixes a regression introduced in commit 3a75b249
      (HID: hidraw: replace hid_output_raw_report() calls by appropriates ones).
      The hidraw API was not able to communicate with the PS3 SixAxis
      controllers in USB mode.
      Reviewed-by: NDavid Herrmann <dh.herrmann@gmail.com>
      Signed-off-by: NBenjamin Tissoires <benjamin.tissoires@redhat.com>
      Tested-by: NAntonio Ospite <ao2@ao2.it>
      Signed-off-by: NJiri Kosina <jkosina@suse.cz>
      e534a935
  11. 25 2月, 2014 4 次提交
  12. 20 2月, 2014 2 次提交
  13. 18 2月, 2014 1 次提交
  14. 17 2月, 2014 9 次提交
  15. 06 2月, 2014 1 次提交
  16. 29 1月, 2014 1 次提交