1. 27 Feb, 2016 2 commits
  2. 09 Feb, 2016 2 commits
  3. 19 Jan, 2016 1 commit
  4. 14 Jan, 2016 2 commits
  5. 05 Jan, 2016 1 commit
  6. 01 Dec, 2015 1 commit
  7. 04 Nov, 2015 1 commit
  8. 22 Oct, 2015 1 commit
    • Khalid Zubair's avatar
      sensors: fix prox sensor reporting 'near' on 1st enable · 974df5f2
      Khalid Zubair authored
      The driver always reports a 'far' abs value when it's first enabled,
      the HAL misses this event if does not result in an abs value change.
      
      With the addition of Kernel based timestamps, a new timestamp value
      would be generated triggering a sensor event being reported to
      Android. The mPendingEvent.distance field would be out of sync with
      the abs input dev's distance value.
      
      Handle this case by querying the abs value from the input device when
      the sensor is enabled.
      
      LETTUCE-779
      
      Change-Id: I53bfa0d10f92efff8ec92abc7fc8df6a589098a7
      974df5f2
  9. 21 Oct, 2015 2 commits
    • Khalid Zubair's avatar
      sensors: relax the AOSP fused sensor mag filter · 6bd33426
      Khalid Zubair authored
      Configure the AOSP fused sensors (rotation vector, gravity and linear
      acceleration) to accept a broader range of mag values. This change
      allows CTS to pass on some devices when the compass is uncalibrated.
      
      LETTUCE-779
      
      Change-Id: I8d8957fd1df109b232ce617ceb01be1dbacffafc
      6bd33426
    • Khalid Zubair's avatar
      sensors: don't report bogus mag values when uncalibrated · 6d48549b
      Khalid Zubair authored
      The HAL reports ~(0,0,0) when the mag is uncalibrated. The AOSP
      fused sensors ignore these values and don't produce output in this
      state. This leads to a CTS failure if the compass is uncalibrated.
      
      Report the uncalibrated mag value when calibrated instead of an invalid
      mag value.
      
      LETTUCE-779
      
      Change-Id: I7415ade6627f4bf72025947c630d2b1a1db76ef8
      6d48549b
  10. 19 Oct, 2015 1 commit
    • Khalid Zubair's avatar
      sensors: switch timestamps to CLOCK_BOOTIME · 4fa08b8a
      Khalid Zubair authored
      The Android CDD requires that timestamps 'must be synchronized with the
      elapsedRealtimeNano clock'. elapsedRealtimeNano is CLOCK_BOOTIME.
      
      All Kernel sensor drivers now report the timestamp in CLOCK_BOOTTIME
      using the EV_SYN_TIME* event codes.
      
      getTimestamp() is only used by the on-change sensors when they are first
      turned on.
      
      Increase the size of the input event  buffer to accommodate the
      additional events for Accel, Gyro and Compass (3 axes, 2 timestamp and 1
      sync).
      
      [1] https://source.android.com/devices/sensors/hal-interface.html#sensors_event_t
      
      Change-Id: I866b42884fc7bd2ccd01cee335047abceb5d0ab3
      4fa08b8a
  11. 16 Oct, 2015 1 commit
    • Khalid Zubair's avatar
      sensors: remove unused sensor classes · 3dde4ef7
      Khalid Zubair authored
      Lettuce does not have a BMP180/Pressure Sensor and AkmSensor.cpp is
      unused.  Remove these files to simplify maintenance.
      
      Change-Id: If20c907f66afd30399ba10e0bdc81473bd3a7afc
      3dde4ef7
  12. 13 Oct, 2015 1 commit
    • Khalid Zubair's avatar
      sensors: ensure first sample is always reported · 2ad738b5
      Khalid Zubair authored
      Fix a race condition between activate/setEnable and poll. The 'enabled'
      status is stored in the SensorContext* in NativeSensorManager::activate
      after the driver has been enabled. This sometimes results in a new
      sensor sample arriving in poll( because enable is not yet set.
      
      For continuous sensors, this just results in a dropped first sample and
      is not a severe issue. However on-change sensors cannot recover from
      this state as another sample might not be received for a while.
      
      All operations are now run on the poll thread and the wake pipe is used
      as a command pipe. HAL interface operations are now sent as command
      structs through the pipe and processed in the poll thread.
      
      Make the proximity sensor re-report the previous sample when it's first
      enabled as Android expects the current state to be reported.
      
      This change fixes a CTS v5.1r3 failure in SensorTest#testBatchAndFlush
      (LETTUCE-779)
      
      Change-Id: Id6526a16003c3d57ce52a179587f25a5069c913e
      2ad738b5
  13. 07 Oct, 2015 3 commits
  14. 06 Oct, 2015 1 commit
  15. 24 Sep, 2015 1 commit
    • Pat Erley's avatar
      lettuce: add kernel to roomservice · 3737874a
      Pat Erley authored
      Now that lettuce isn't building on the cm-12.1 branch, add it to
      roomservice so oss builds don't get broken by this.
      
      Change-Id: I2ce6fd79c861e4dc811400d899cb5b7757314821
      3737874a
  16. 20 Aug, 2015 1 commit
  17. 10 Aug, 2015 1 commit
  18. 05 Aug, 2015 1 commit
  19. 03 Aug, 2015 1 commit
  20. 30 Jul, 2015 2 commits
    • Jim Wilson's avatar
      lettuce: camera: Disable reported HDR in ZSL support · 3b8e62a1
      Jim Wilson authored
      HDR in ZSL is a feature that adds almost no user value but is
      frequently buggy, and in fact is bugged on Lettuce now. Disable
      the reported support to flag apps not to try.
      
      This effectively fixes the fact that HDR basically didn't work
      on Lettuce.
      
      Change-Id: I6887cb2ccddfafaa83a8e464f2c0eb8bda2c3851
      3b8e62a1
    • Pat Erley's avatar
      lettuce: remove AAC/MP3 offload settings · b97844c5
      Pat Erley authored
      These are now handled by msm8916-common.
      
      Change-Id: I84ff4c0ad62252a1dc636b39a1c47fdc65053a73
      b97844c5
  21. 23 Jul, 2015 1 commit
    • Chirayu Desai's avatar
      Fix QCOM HEVC decoder · 51aa1816
      Chirayu Desai authored
      * Install libHevcSwDecoder correctly
      * Add libOmxVdecHevc
      
      Change-Id: I074e196bd87ee5f9e8ace5786c534b457629a6e6
      51aa1816
  22. 22 Jul, 2015 1 commit
  23. 21 Jul, 2015 3 commits
  24. 17 Jul, 2015 1 commit
  25. 16 Jul, 2015 1 commit
    • Daqing Chen's avatar
      sensors: modify accelerometer sensor convert unit · ddfebc47
      Daqing Chen authored
      Modify accelerometer sensor convert unit because of sensor
      data is 16 bits now.
      
      Kernel commit: "input: sensors: modify resolution for sensor mpu6050"
      
      Change-Id: I3501271d5a3c072a0fd723408008c1e14817ec00
      ddfebc47
  26. 15 Jul, 2015 5 commits
  27. 14 Jul, 2015 1 commit