summaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2012-10-17Camera2: Fix potential deadlockEino-Ville Talvala
setPreviewWindow was holding a lock during long-lasting HAL calls which may cause deadlock if the HAL calls back into the service during the call. Stop holding the lock during these calls, since it's not essential to do so. Bug: 7320517 Change-Id: I4a35703d751e22ac32979b5a1288e291610576e7
2012-10-17Added some extra failure logging messagesJames Dong
o related-to-bug: 7282066 Change-Id: I0896551a45aab61fb571fef19061397ff84321d9
2012-10-17Fix valgrind issuesMarco Nelissen
We were reading some uninitialized memory when creating bass boost and EQ effects, and using memcpy() with identical source and destination. Change-Id: I15ea1b2c52ae05cbf54aef04351e89805e0ebf8e
2012-10-17merge in jb-mr1-release history after reset to jb-mr1-devThe Android Automerger
2012-10-16merge in jb-mr1-release history after reset to jb-mr1-devThe Android Automerger
2012-10-16Merge "Camera2: Improve quirks focusing behavior." into jb-mr1-devEino-Ville Talvala
2012-10-16Camera2: Improve quirks focusing behavior.Eino-Ville Talvala
- When scene mode is set and the AF quirk is in use, don't change AF mode and then cancel when AF cancel is received. Just change mode since that also implies a cancel. - Only trigger quirks switch when a focusing area is set. Bug: 7318812 Change-Id: I28d8755553bd78052e774701210cb94d84ee2046
2012-10-16Merge "Fix track estimation for presentation complete" into jb-mr1-devJean-Michel Trivi
2012-10-16Fix track estimation for presentation completeJean-Michel Trivi
Audio tracks were not using the right latency estimation for signalling the completion of their presetation. This caused the synchronization mechanism between playback and record to be off, and a synchronized recording would contain some of the audio that was meant to be over once recording would start. Use the playback thread's latency reporting which takes the audio pipe into account. Bug 7237669 Change-Id: I23a907a53ad0b0d68d246789ec595a77a79fced5
2012-10-16Camera2: Don't touch frame counter on output frames.Eino-Ville Talvala
Bug: 7357069 Change-Id: I9cd0cdcc23959bfecced5f47bb9e8c59c997dade
2012-10-16Camera2: When focus is already locked in CAF mode, do not trigger HAL.Eino-Ville Talvala
In HAL2 CAF modes, once focus is locked by an AF trigger, additional triggers will not cause AF notifications, since the state will not change again until a cancelAutofocus call. Since the old API still expects to see a notification, short-circuit this at the service and send an immediate success notification. Bug: 7318298 Change-Id: Ib209a24eaf2a35a247d06aea671efe80a33d751e
2012-10-12merge in jb-mr1-factory-release history after reset to jb-mr1-devThe Android Automerger
2012-10-12merge in jb-mr1-release history after reset to jb-mr1-devThe Android Automerger
2012-10-11Fix some missing checks against missing codecsJames Dong
o related-to-bug: 6971073 Change-Id: Ia6d926663231f9a9ef31c82c85c70595c4a30ebe
2012-10-11merge in jb-mr1-factory-release history after reset to jb-mr1-devThe Android Automerger
2012-10-11merge in jb-mr1-release history after reset to jb-mr1-devThe Android Automerger
2012-10-10Camera2: Don't error out of startPreview when already recording.Eino-Ville Talvala
Bug: 7327474 Change-Id: I603da5b8bd58e5a700d7ae0b3d34bd89bbcb1d53
2012-10-10Merge "Support querying active record sources" into jb-mr1-devJean-Michel Trivi
2012-10-10Camera2: Don't let unlocks happen during recording.Eino-Ville Talvala
Bug: 7309020 Change-Id: I6e66809b868d2e8f47f71e6f8752b44ec06dfb17
2012-10-10merge in jb-mr1-release history after reset to jb-mr1-devThe Android Automerger
2012-10-10Camera2: Do not set auto-white-balance regions from metering regions.Eino-Ville Talvala
Per API documentation, metering regions are only for AE, not also for AWB. Bug: 7312720 Change-Id: I39bcf33e4c81e80022f45e8fca77ea6cf9ba115e
2012-10-10Support querying active record sourcesJean-Michel Trivi
Add support for querying whether there is currently a recording underway from the specified audio source. Bug 7314859 Change-Id: I986b231a10ffd368b08ec2f9c7f348d28eaeb892
2012-10-10Camera: Limit valid caller PIDs for camera clients.Eino-Ville Talvala
Narrow down on PID checks to avoid cases where service can access the camera even though it shouldn't be able to, per API semantics. Bug: 6970469 Change-Id: Ic468a31949c28ef978b6ed48a70e4601c7ced684
2012-10-10merge in jb-mr1-factory-release history after reset to jb-mr1-devThe Android Automerger
2012-10-10merge in jb-mr1-release history after reset to jb-mr1-devThe Android Automerger
2012-10-09Merge "Camera: Clear Hardware device pointer when initialization fails" into ↵Eino-Ville Talvala
jb-mr1-dev
2012-10-09Merge "Switch audio mode based on dongle's capabilities" into jb-mr1-devAndreas Huber
2012-10-09merge in jb-mr1-release history after reset to jb-mr1-devThe Android Automerger
2012-10-09Switch audio mode based on dongle's capabilitiesAndreas Huber
properly parse rtp port and use it to setup session. Change-Id: Ic7521cb867143278196c3ce4b19a74ecc2703d8e related-to-bug: 7318719
2012-10-09merge in jb-mr1-release history after reset to jb-mr1-devThe Android Automerger
2012-10-09Merge "Camera2: Fix uninitialized parameters." into jb-mr1-devEino-Ville Talvala
2012-10-09Camera: Clear Hardware device pointer when initialization failsIgor Murashkin
When disconnecting, don't try to call device functions if the initialization fails since this can lead to internal HAL segfaults. Bug: 7317107 Change-Id: Ib65db7eb6556ee10d844959934b1bfd7bb08d0ff
2012-10-09Merge "Camera2: Call onAutoFocus immediately for fixed-focus cameras" into ↵Igor Murashkin
jb-mr1-dev
2012-10-09Camera2: Fix uninitialized parameters.Eino-Ville Talvala
Some parameters were not being set to default values, causing strange flakiness in any app that wasn't calling setParameters. This includes many CTS tests. Bug: 6970468 Change-Id: If91635afc000e23862e7b039292a55349274c5ee
2012-10-09Merge "Camera2: Move non-ZSL shutter sound firing to be later." into jb-mr1-devEino-Ville Talvala
2012-10-09Merge "audio policy: deprecate ro.camera.sound.forced" into jb-mr1-devEric Laurent
2012-10-09Camera2: Call onAutoFocus immediately for fixed-focus camerasIgor Murashkin
Bug: 7311578 Change-Id: Ib8a8ea1f5fc269abdd24ed1e0370dc9b87b284ee
2012-10-09merge in jb-mr1-release history after reset to jb-mr1-devThe Android Automerger
2012-10-08Merge "Camera2: Always disconnect in the client destructor" into jb-mr1-devEino-Ville Talvala
2012-10-08Camera2: Move non-ZSL shutter sound firing to be later.Eino-Ville Talvala
Instead of firing shutter sound when capture request is submitted for non-ZSL captures, fire it when the metadata frame is received. This guarantees that the shutter sound fires after picture capture is completed by the sensor. Bug: 7259900 Change-Id: I4a1eeed89ed0400bf80b0f0cc2d5799c3d9bb9e3
2012-10-08audio policy: deprecate ro.camera.sound.forcedEric Laurent
The volume and routing policy of AUDIO_STREAM_ENFORCED_AUDIBLE is now controlled by AudioService. Do not read ro.camera.sound.forced is not needed anymore. Bug 7032634. Change-Id: Ic0a6396fc4b6efb91cdb4dffe0c8eb035d0440bd
2012-10-08Camera2: Always disconnect in the client destructorIgor Murashkin
If Camera2Client failed to initialize, it would skip disconnect step, and thus the camera would be forever marked as busy. By always calling disconnect it will always call free. It also adds a new guarantee that Client::disconnect is idempotent Bug: 7298182 Change-Id: Ic9876f1665b7d9b3c0da692880f63f165e3f4fa5
2012-10-08Camera2: isSmoothZoomSupported should return FALSEIgor Murashkin
Bug: 7308024 Change-Id: Ib757bef8f6dc203f8dfa6ea6d11191e3c7cfcc6d
2012-10-08Camera2: Set default flash mode to FLASH_OFFAlex Ray
Bug: 6970090 Change-Id: I904b1be2ee0710e82e8e647753a705184c10b46c
2012-10-08Merge "Camera2: Fix Parameters#setZoom off by 1 validation error" into ↵Igor Murashkin
jb-mr1-dev
2012-10-08Merge "Camera2: On stopping preview, wait until captures are completed." ↵Eino-Ville Talvala
into jb-mr1-dev
2012-10-08Camera2: Fix Parameters#setZoom off by 1 validation errorIgor Murashkin
Bug: 7298683 Change-Id: If79ac6396379593eb852f041ca7d5a20ad2f9e6d
2012-10-08Merge "Camera2: Report getMaxNumFocusAreas 0 for fixed focus cameras" into ↵Igor Murashkin
jb-mr1-dev
2012-10-07Camera2: On stopping preview, wait until captures are completed.Eino-Ville Talvala
If preview is stopped while a still capture or a video snapshot is underway, wait until the capture completes before stopping preview. Also use the same behavior for disconnect - do not shut down the camera device until captures are complete. This works around HAL implementations which report to be done (get_in_progress_count returns 0) even when a capture is still outstanding. Bug: 7276954 Change-Id: I66290acf1740cc330eadecbcded0c59fa9c5d2fd
2012-10-07merge in jb-mr1-release history after reset to jb-mr1-devThe Android Automerger