1. 19 Jul, 2013 1 commit
    • Eino-Ville Talvala's avatar
      Camera2/3: Fix deadlock when starting recording before preview. · 46910bdc
      Eino-Ville Talvala authored
      Move 3A notification synthesis for HAL3 devices from
      Camera3Device::processCaptureResult to Camera2Client's
      FrameProcessor. This will ensure that calls to processCaptureResult
      from HAL can never block on Camera2Client internal mutexes.
      
      Bug: 9923891
      Change-Id: I5184649bf45c0807babe6b8c0e1239e959cd3480
      46910bdc
  2. 09 Jul, 2013 1 commit
    • Zhijun He's avatar
      camera2/3: set preview callback oneshot flag during still capture · a2520db0
      Zhijun He authored
      Preview callback oneshot flag need set when a still picture is being captured
      and preview callback oneshot is enabled, otherwise, the callback enabling status
      could be lost when preview is restarted after still catpure.
      
      Bug 9742091
      
      Change-Id: If9562369013e53727edfdd16f3d00d6a9392e70d
      a2520db0
  3. 08 Jul, 2013 1 commit
    • Eino-Ville Talvala's avatar
      Camera2/3: As a fallback, unilaterally free old recording buffers · 4a5c009b
      Eino-Ville Talvala authored
      When starting a recording session, check for and clear out recording
      buffers still owned by stagefright from a previous recording session,
      if any.  There should never be any, but in case they are due to a bug
      elsewhere in the system, clearing out the buffers makes recovery
      possible.
      
      Bug: 9591080
      Change-Id: I3a2a1256860bd174381cd525948419f985c9b415
      4a5c009b
  4. 07 Jul, 2013 1 commit
  5. 03 Jul, 2013 1 commit
  6. 02 Jul, 2013 1 commit
    • Eric Laurent's avatar
      fix scheduling policy service death detection · f59a4b39
      Eric Laurent authored
      Check status of transactions to scheduling policy service
      and re-acquire a binder interface in case of DEAD_OBJECT.
      
      Bug: 8875559.
      Change-Id: I1e00bd44e2d4723b3ec95d5c31d9652ba08e238a
      f59a4b39
  7. 27 Jun, 2013 1 commit
    • Eino-Ville Talvala's avatar
      Camera2/3: Don't allow recording and callbacks to coexist. · a691ff3c
      Eino-Ville Talvala authored
      - Tear down conflicting streams when necessary.
      
      - Shut down callbacks if recording starts
      
      - Do not allow callbacks to start if recording is active
      
      Per the current camera API, recording and preview callbacks cannot be
      active simultaneously. However, the framework did not explicitly
      disallow this, and in fact left the streams configured once they were
      created, even if switching between the two operational modes.
      
      In addition, no guards existed for trying to enable both recording and
      callbacks at the same time.
      
      Bug: 9423825
      
      Change-Id: I7d6e6114c2e14fcfb5299b4c72ad557895cbf4b8
      a691ff3c
  8. 20 Jun, 2013 1 commit
    • Jean-Michel Trivi's avatar
      Apply EQ and bass boost first in effect chain · 209bbbcf
      Jean-Michel Trivi authored
      EQ and bass boost can improperly interact with other effects
       (e.g. virtualizer) outside of the bundle. Apply them first
       in an effect chain, which is equivalent to using them to affect
       the content of a track, rather than how a track is presented,
       when additional effects are cascaded behind EQ and BB.
      
      Bug 8589316
      
      Change-Id: Ifb34e46bc1969f613cdc90ee2a79af677e2fad92
      209bbbcf
  9. 19 Jun, 2013 1 commit
    • Eino-Ville Talvala's avatar
      Camera2/3: Avoid shutdown race in callback processor. · e6478de7
      Eino-Ville Talvala authored
      It's possible, during shutdown, for callback processor's heap to be
      destroyed when it's about to send the callback back to the user.
      Properly copy the heap reference to a local variable before unlocking
      the mutex.
      
      Bug: 9485959
      Change-Id: I301347b77145f19c7ac721b9127dc74f122acce2
      e6478de7
  10. 17 Jun, 2013 1 commit
  11. 14 Jun, 2013 1 commit
  12. 13 Jun, 2013 4 commits
  13. 12 Jun, 2013 3 commits
  14. 11 Jun, 2013 3 commits
    • Eino-Ville Talvala's avatar
      Camera3: Skip no-op stream configurations. · ea26c777
      Eino-Ville Talvala authored
      If configuring the same set of streams more than once, don't actually
      call into the HAL for the second and subsequent configure calls, since
      they're no-ops.
      
      This can speed up camera operation substantially if the
      HAL implementation does not detect no-ops on its own and does a full
      shutdown/restart on each configure call.
      
      Bug: 9392513
      Change-Id: I23baf4acbae2304735899adcf8e17565fa94d31d
      ea26c777
    • Eric Laurent's avatar
      audioflinger: fix effects on direct output threads · d0107bcd
      Eric Laurent authored
      PlaybackThread::addTrack_l() uses the assumption that
      effects are attached to a track only if the track accumulation
      buffer is different from the mixer thread output buffer.
      This is not true for direct output threads where only one track is active
      an only one buffer is needed.
      This assumption is an optimization to avoid checking for effect chains with
      the same session ID each time a track is processed. The optimization
      is not key if only one track is attached to the thread which is the case for
      direct outputs.
      
      Current code fails to increment the active track count in the effect chain
      on direct output threads when a track is started thus making the effect
      framework clear the mix buffer and produce silence each time the mixer runs.
      
      The fix consists in removing the optimization described above.
      
      Bug: 9324989.
      
      Change-Id: Id7a6337450ed90d326299c2ce9fc02f4b9e2fa6f
      d0107bcd
    • Eino-Ville Talvala's avatar
      Camera2/3: Create JPEG stream unconditionally. · a9c64a93
      Eino-Ville Talvala authored
      Instead of creating the JPEG output stream only at first use,
      create it at time of preview start. This is important for reducing
      the first-capture latency on HAL3 devices, and for ZSL on them.
      
      Bug: 9339858
      Change-Id: I4296f706cfd151c47ef315149e87d01fe554aaa4
      a9c64a93
  15. 07 Jun, 2013 4 commits
  16. 06 Jun, 2013 2 commits
    • Zhijun He's avatar
      camera3: Fix crash in set error state. · b05eeaed
      Zhijun He authored
      When camera open fails in camera3device initialize call, setErrorStateLockedV()
      tries to access RequestThread object that is not created yet.
      
      Bug: 9319518
      Change-Id: Id5c6c0150ecaecb198045d5c6eb1b2ceebf5a727
      b05eeaed
    • Zhijun He's avatar
      camera2/3: Add protection to callback processing call · 62a8f67f
      Zhijun He authored
      Callback stream in callbackprocessor could be delleted while process or
      discard callback are ongoing, which leads CpuConsumer related call crash.
      
      Bug 9303911
      
      Change-Id: Ib6137e512208e5603468eba166640729b744e8f9
      62a8f67f
  17. 05 Jun, 2013 1 commit
  18. 04 Jun, 2013 1 commit
  19. 03 Jun, 2013 2 commits
  20. 31 May, 2013 2 commits
  21. 29 May, 2013 1 commit
  22. 28 May, 2013 3 commits
  23. 24 May, 2013 3 commits