OSDN Git Service

android-x86/frameworks-av.git
10 years agoam 7bab0248: Merge "MediaCodec: avoid codec EOS if flushing during port reconfigurati...
Lajos Molnar [Fri, 4 Oct 2013 13:23:02 +0000 (06:23 -0700)]
am 7bab0248: Merge "MediaCodec: avoid codec EOS if flushing during port reconfiguration" into klp-dev

* commit '7bab024867996bec6dc4e3e31ed4570da9afbc25':
  MediaCodec: avoid codec EOS if flushing during port reconfiguration

10 years agoMerge "MediaCodec: avoid codec EOS if flushing during port reconfiguration" into...
Lajos Molnar [Fri, 4 Oct 2013 13:18:02 +0000 (13:18 +0000)]
Merge "MediaCodec: avoid codec EOS if flushing during port reconfiguration" into klp-dev

10 years agoam 19fffcbd: Merge "Camera3: track request status in inflight queue" into klp-dev
Zhijun He [Thu, 3 Oct 2013 23:10:54 +0000 (16:10 -0700)]
am 19fffcbd: Merge "Camera3: track request status in inflight queue" into klp-dev

* commit '19fffcbd89a51af797265af2e11c97be5820a07d':
  Camera3: track request status in inflight queue

10 years agoMerge "Camera3: track request status in inflight queue" into klp-dev
Zhijun He [Thu, 3 Oct 2013 23:05:41 +0000 (23:05 +0000)]
Merge "Camera3: track request status in inflight queue" into klp-dev

10 years agoam 8097068d: Merge "Better recording wake lock accounting" into klp-dev
Marco Nelissen [Thu, 3 Oct 2013 22:41:56 +0000 (15:41 -0700)]
am 8097068d: Merge "Better recording wake lock accounting" into klp-dev

* commit '8097068de97c0cdab8150931f290edbd5b3721e5':
  Better recording wake lock accounting

10 years agoam 580ed263: Merge "stagefright: enable adaptive playback based on codec format key...
Lajos Molnar [Thu, 3 Oct 2013 22:40:04 +0000 (15:40 -0700)]
am 580ed263: Merge "stagefright: enable adaptive playback based on codec format key" into klp-dev

* commit '580ed263a6ea6c766f9f715e101340c7fe26ab75':
  stagefright: enable adaptive playback based on codec format key

10 years agoam b2d71d3a: Merge "Camera API 2, Device 2/3: Implement idle and shutter callbacks...
Eino-Ville Talvala [Thu, 3 Oct 2013 22:40:03 +0000 (15:40 -0700)]
am b2d71d3a: Merge "Camera API 2, Device 2/3: Implement idle and shutter callbacks" into klp-dev

* commit 'b2d71d3a35de6382096ed688a4cae3bbca3c97bf':
  Camera API 2, Device 2/3: Implement idle and shutter callbacks

10 years agoam 56ce7260: IOMX: Add prepareForAdaptivePlayback method
Lajos Molnar [Thu, 3 Oct 2013 22:40:02 +0000 (15:40 -0700)]
am 56ce7260: IOMX: Add prepareForAdaptivePlayback method

* commit '56ce726019f700a95ce5b45beebceadae4836e30':
  IOMX: Add prepareForAdaptivePlayback method

10 years agoam a306ee6b: Remove now unused wfd commandline tool. (also unbreaks the build)
Andreas Huber [Thu, 3 Oct 2013 22:40:02 +0000 (15:40 -0700)]
am a306ee6b: Remove now unused wfd commandline tool. (also unbreaks the build)

* commit 'a306ee6bc1aef463f8984be26b8a4214490b6c55':
  Remove now unused wfd commandline tool. (also unbreaks the build)

10 years agoam 6ea551fa: Remove obsolete miracast sink code and friends.
Andreas Huber [Thu, 3 Oct 2013 22:40:01 +0000 (15:40 -0700)]
am 6ea551fa: Remove obsolete miracast sink code and friends.

* commit '6ea551fa13b69e5ce359a7dba7485d857a005304':
  Remove obsolete miracast sink code and friends.

10 years agoCamera3: track request status in inflight queue
Zhijun He [Wed, 2 Oct 2013 23:29:51 +0000 (16:29 -0700)]
Camera3: track request status in inflight queue

Bug: 9758581
Change-Id: I1d7135cd0932bd6b453acabfeb9a553985c887bc

10 years agoMerge "Better recording wake lock accounting" into klp-dev
Marco Nelissen [Thu, 3 Oct 2013 21:15:05 +0000 (21:15 +0000)]
Merge "Better recording wake lock accounting" into klp-dev

10 years agoBetter recording wake lock accounting
Marco Nelissen [Thu, 3 Oct 2013 15:51:24 +0000 (08:51 -0700)]
Better recording wake lock accounting

Count wake lock use against the app that initiated the recording,
not against the media server.

b/10985160

Change-Id: Iae6e6c030b7f1c6081d9c79725d6990f60dadaaa

10 years agoMerge "stagefright: enable adaptive playback based on codec format key" into klp-dev
Lajos Molnar [Thu, 3 Oct 2013 19:08:06 +0000 (19:08 +0000)]
Merge "stagefright: enable adaptive playback based on codec format key" into klp-dev

10 years agoMerge "Camera API 2, Device 2/3: Implement idle and shutter callbacks" into klp-dev
Eino-Ville Talvala [Thu, 3 Oct 2013 18:33:55 +0000 (18:33 +0000)]
Merge "Camera API 2, Device 2/3: Implement idle and shutter callbacks" into klp-dev

10 years agostagefright: enable adaptive playback based on codec format key
Lajos Molnar [Thu, 2 May 2013 23:46:41 +0000 (16:46 -0700)]
stagefright: enable adaptive playback based on codec format key

Added support for prepareForAdaptivePlayback() call in
configureCodec, if max-width and max-height keys are specified
in the format.  It is OK for this call to fail, if component
does not implement adaptive playback.

Change-Id: Ie15892bc666df103b635890a0fda799b204bb06c
Signed-off-by: Lajos Molnar <lajos@google.com>
Bug: 7093648
Bug: 10192531

10 years agoIOMX: Add prepareForAdaptivePlayback method
Lajos Molnar [Thu, 2 May 2013 23:30:48 +0000 (16:30 -0700)]
IOMX: Add prepareForAdaptivePlayback method

prepareForAdaptivePlayback is the fallback mechanism to support
seamless resolution change for devices that do not support dynamic
output buffers.  It is up to the codecs to handle this appropriately,
but codecs that do not handle dynamic output buffers would
request enough buffers up to the requested size in this method
to avoid port reconfiguration on resolution changes.

Change-Id: I58d4aa8ef1359ea3472735bbe9140c3132039b3d
Signed-off-by: Lajos Molnar <lajos@google.com>
Bug: 10192531
Related-to-bug: 7093648

10 years agoRemove now unused wfd commandline tool. (also unbreaks the build)
Andreas Huber [Thu, 3 Oct 2013 15:43:20 +0000 (08:43 -0700)]
Remove now unused wfd commandline tool. (also unbreaks the build)

Change-Id: I03320342976e4e355cc6aeb3d2c485985613b3b5
related-to-bug: 11047222

10 years agoMediaCodec: avoid codec EOS if flushing during port reconfiguration
Lajos Molnar [Wed, 2 Oct 2013 18:25:20 +0000 (11:25 -0700)]
MediaCodec: avoid codec EOS if flushing during port reconfiguration

Change-Id: Ic2e93f38feeb2e906f8d6b400ed6df2b7580ca87
Signed-off-by: Lajos Molnar <lajos@google.com>
Bug: 11045434

10 years agoCamera API 2, Device 2/3: Implement idle and shutter callbacks
Eino-Ville Talvala [Fri, 6 Sep 2013 16:32:43 +0000 (09:32 -0700)]
Camera API 2, Device 2/3: Implement idle and shutter callbacks

- Update callback Binder interface
- Rename frameId to be requestId to be consistent and disambiguate
  from frameNumber.
- Implement shutter callback from HAL2/3 notify()
  - Add in-flight tracking to HAL2
  - Add requestId to in-flight tracking
  - Report requestId from shutter callback
- Implement idle callback from HAL3 process_capture_result
  - Add new idle tracker thread
  - Update all idle waiting to use the tracker
  - Add reporting from request thread, all streams to tracker
  - Remove existing idle waiting infrastructure

Bug: 10549462
Change-Id: I867bfc248e3848c50e71527e3561fe92dc037958

10 years agoRemove obsolete miracast sink code and friends.
Andreas Huber [Wed, 2 Oct 2013 20:06:06 +0000 (13:06 -0700)]
Remove obsolete miracast sink code and friends.

Change-Id: I8bbb22fb0cfe2d73881d9f05bf8112ae86d8040b
related-to-bug: 11047222

10 years agoam f05e50eb: Camera: only return static metadata for HAL3 device
Zhijun He [Wed, 2 Oct 2013 16:36:33 +0000 (09:36 -0700)]
am f05e50eb: Camera: only return static metadata for HAL3 device

* commit 'f05e50eb06d3f70e50fa7f44c1fd32128033b49d':
  Camera: only return static metadata for HAL3 device

10 years agoam 26c1fb23: Merge "Camera: drop stale callback buffer" into klp-dev
Zhijun He [Wed, 2 Oct 2013 16:35:20 +0000 (09:35 -0700)]
am 26c1fb23: Merge "Camera: drop stale callback buffer" into klp-dev

* commit '26c1fb23a1e2cc059aac42fd1814efba2a3e9640':
  Camera: drop stale callback buffer

10 years agoam 353fb9bf: Merge "MediaTimeProvider support fixes" into klp-dev
Lajos Molnar [Wed, 2 Oct 2013 16:35:09 +0000 (09:35 -0700)]
am 353fb9bf: Merge "MediaTimeProvider support fixes" into klp-dev

* commit '353fb9bf940ee34a3885bc85ec7891228e958a4b':
  MediaTimeProvider support fixes

10 years agoam 5fd39f77: Merge "MediaCodecInfo: report supported color formats for non-native...
Lajos Molnar [Wed, 2 Oct 2013 16:35:09 +0000 (09:35 -0700)]
am 5fd39f77: Merge "MediaCodecInfo: report supported color formats for non-native-window mode" into klp-dev

* commit '5fd39f777d54368a93fc9d8a6a24da0239d41fcf':
  MediaCodecInfo: report supported color formats for non-native-window mode

10 years agoam 8b905e19: Merge "Camera: Set default thumbnail size with matched aspect ratio...
Zhijun He [Wed, 2 Oct 2013 05:21:56 +0000 (22:21 -0700)]
am 8b905e19: Merge "Camera: Set default thumbnail size with matched aspect ratio" into klp-dev

* commit '8b905e19548248904ab0fd0b63c9adcab2331a1a':
  Camera: Set default thumbnail size with matched aspect ratio

10 years agoCamera: only return static metadata for HAL3 device
Zhijun He [Tue, 1 Oct 2013 18:05:33 +0000 (11:05 -0700)]
Camera: only return static metadata for HAL3 device

This effectively disables the camera2 APIs for HAL2.x or lower HAL device.

Bug: 10360518
Change-Id: I0f374ac533468c6181f5672c75088b7144b9c53d

10 years agoMerge "Camera: drop stale callback buffer" into klp-dev
Zhijun He [Tue, 1 Oct 2013 17:47:18 +0000 (17:47 +0000)]
Merge "Camera: drop stale callback buffer" into klp-dev

10 years agoMerge "MediaTimeProvider support fixes" into klp-dev
Lajos Molnar [Tue, 1 Oct 2013 16:36:52 +0000 (16:36 +0000)]
Merge "MediaTimeProvider support fixes" into klp-dev

10 years agoMerge "MediaCodecInfo: report supported color formats for non-native-window mode...
Lajos Molnar [Tue, 1 Oct 2013 16:36:32 +0000 (16:36 +0000)]
Merge "MediaCodecInfo: report supported color formats for non-native-window mode" into klp-dev

10 years agoam 1adf20ce: Merge "fix volume and effect enable delay on offloaded tracks" into...
Eric Laurent [Tue, 1 Oct 2013 12:26:24 +0000 (05:26 -0700)]
am 1adf20ce: Merge "fix volume and effect enable delay on offloaded tracks" into klp-dev

* commit '1adf20ce868b80a24f7387daa6549364d5509c6a':
  fix volume and effect enable delay on offloaded tracks

10 years agoam f006989d: Merge "Change VP8 encoder bitrate" into klp-dev
Rachad Alao [Tue, 1 Oct 2013 05:09:43 +0000 (22:09 -0700)]
am f006989d: Merge "Change VP8 encoder bitrate" into klp-dev

* commit 'f006989d8f222639ac170067d371e11daf0e76ae':
  Change VP8 encoder bitrate

10 years agoam 0797fb70: Merge "Indicate sync frames returned by encoder" into klp-dev
Rachad Alao [Tue, 1 Oct 2013 05:09:43 +0000 (22:09 -0700)]
am 0797fb70: Merge "Indicate sync frames returned by encoder" into klp-dev

* commit '0797fb709d2cdd35fe596b6089b259ad10d345d6':
  Indicate sync frames returned by encoder

10 years agoCamera: drop stale callback buffer
Zhijun He [Tue, 1 Oct 2013 02:31:39 +0000 (19:31 -0700)]
Camera: drop stale callback buffer

Sometimes, when preview size is changed and preview callback is enabled, stale
callback buffer from previous size could be delivered to callback processor
because stop preview doesn't guarantee consumer side buffers are properly
cleaned up. We need drop these buffers to avoid sending wrong data to app side.

Bug: 11009183
Change-Id: If9281e8c02481f883872ce58dfd8660a06d56a47

10 years agoMerge "Camera: Set default thumbnail size with matched aspect ratio" into klp-dev
Zhijun He [Tue, 1 Oct 2013 00:23:50 +0000 (00:23 +0000)]
Merge "Camera: Set default thumbnail size with matched aspect ratio" into klp-dev

10 years agoam 3d97e23f: Merge "Prevent onPrepared callback from being called twice" into klp-dev
Marco Nelissen [Tue, 1 Oct 2013 00:10:21 +0000 (17:10 -0700)]
am 3d97e23f: Merge "Prevent onPrepared callback from being called twice" into klp-dev

* commit '3d97e23fcd78f752443cb6c30a1ee39f49f1f987':
  Prevent onPrepared callback from being called twice

10 years agoam 5d6d86a4: fix oflload effect proxy commmand handling
Eric Laurent [Tue, 1 Oct 2013 00:09:33 +0000 (17:09 -0700)]
am 5d6d86a4: fix oflload effect proxy commmand handling

* commit '5d6d86a4d102704f49b9235eaf282c428d7100b6':
  fix oflload effect proxy commmand handling

10 years agoam eba9bf72: fix command handling in effect offload proxy
Eric Laurent [Tue, 1 Oct 2013 00:09:33 +0000 (17:09 -0700)]
am eba9bf72: fix command handling in effect offload proxy

* commit 'eba9bf72fb5e036bb15ca4a1dc126883a2cb938d':
  fix command handling in effect offload proxy

10 years agoam faca05e9: Effect Offload Proxy for effects offload
jpadmana [Tue, 1 Oct 2013 00:09:32 +0000 (17:09 -0700)]
am faca05e9: Effect Offload Proxy for effects offload

* commit 'faca05e96744dfaa2f352e3dbb29eead4e55cfa0':
  Effect Offload Proxy for effects offload

10 years agoam 2eab94f7: Effects Factory changes for effects offload
jpadmana [Tue, 1 Oct 2013 00:09:32 +0000 (17:09 -0700)]
am 2eab94f7: Effects Factory changes for effects offload

* commit '2eab94f7dfd41a65e13aca379a1aed97447f8884':
  Effects Factory changes for effects offload

10 years agoam 83f40005: Revert "Effects Factory changes for effects offload"
Eric Laurent [Tue, 1 Oct 2013 00:09:31 +0000 (17:09 -0700)]
am 83f40005: Revert "Effects Factory changes for effects offload"

* commit '83f400056ac913250f0926326ff78697c68d18a1':
  Revert "Effects Factory changes for effects offload"

10 years agoam 5b8ce24b: Revert "Effect Offload Proxy for effects offload"
Eric Laurent [Tue, 1 Oct 2013 00:09:31 +0000 (17:09 -0700)]
am 5b8ce24b: Revert "Effect Offload Proxy for effects offload"

* commit '5b8ce24b849f6cd5629b4ba508f7c78d6227d250':
  Revert "Effect Offload Proxy for effects offload"

10 years agoam f2c8b027: Merge "fix playback position after switching to offload" into klp-dev
Eric Laurent [Tue, 1 Oct 2013 00:08:11 +0000 (17:08 -0700)]
am f2c8b027: Merge "fix playback position after switching to offload" into klp-dev

* commit 'f2c8b02786c58b98d41d3f7c30e882cacc34e7ab':
  fix playback position after switching to offload

10 years agoam 0b74d2b4: Merge "LoudnessEnhancer compatible with stereo imaging" into klp-dev
Jean-Michel Trivi [Tue, 1 Oct 2013 00:07:08 +0000 (17:07 -0700)]
am 0b74d2b4: Merge "LoudnessEnhancer compatible with stereo imaging" into klp-dev

* commit '0b74d2b49b418d55f642c87c126fc0a4f71f89a4':
  LoudnessEnhancer compatible with stereo imaging

10 years agoam a2340b30: Merge "Don\'t call audio effect process on offloaded playback threads...
Jean-Michel Trivi [Tue, 1 Oct 2013 00:07:08 +0000 (17:07 -0700)]
am a2340b30: Merge "Don\'t call audio effect process on offloaded playback threads" into klp-dev

* commit 'a2340b3059b9d6e4286d0db7069df477c164df0c':
  Don't call audio effect process on offloaded playback threads

10 years agoam 0adc67df: Merge "audioflinger: fix crash when starting offload thread" into klp-dev
Eric Laurent [Tue, 1 Oct 2013 00:06:17 +0000 (17:06 -0700)]
am 0adc67df: Merge "audioflinger: fix crash when starting offload thread" into klp-dev

* commit '0adc67dfc5cedb211c36f06849681a60a32f5805':
  audioflinger: fix crash when starting offload thread

10 years agoam 1da3b602: Camera2 API: Hack: Always use async mode with GLConsumer
Eino-Ville Talvala [Tue, 1 Oct 2013 00:06:17 +0000 (17:06 -0700)]
am 1da3b602: Camera2 API: Hack: Always use async mode with GLConsumer

* commit '1da3b602130d71ac3bff1a1fdecdc5e0d7b9d701':
  Camera2 API: Hack: Always use async mode with GLConsumer

10 years agoMediaTimeProvider support fixes
Lajos Molnar [Wed, 25 Sep 2013 15:09:41 +0000 (08:09 -0700)]
MediaTimeProvider support fixes

Add MEDIA_SKIPPED event when resuming at a different time than
seeked to.

Send MEDIA_STARTED/PAUSED events only when playing (vs. when doing seek
previews)

Change-Id: I243ebf054303755ea8863229c3211694f2c204a7
Signed-off-by: Lajos Molnar <lajos@google.com>
Bug: 10954008

10 years agoMerge "fix volume and effect enable delay on offloaded tracks" into klp-dev
Eric Laurent [Mon, 30 Sep 2013 21:31:34 +0000 (21:31 +0000)]
Merge "fix volume and effect enable delay on offloaded tracks" into klp-dev

10 years agoMediaCodecInfo: report supported color formats for non-native-window mode
Lajos Molnar [Mon, 30 Sep 2013 20:18:55 +0000 (13:18 -0700)]
MediaCodecInfo: report supported color formats for non-native-window mode

Revert the change in behavior when checking for adaptive playback was
introduced.

Change-Id: I59dc2450a4299b912015f2e4c9ec018a19a20b84
Signed-off-by: Lajos Molnar <lajos@google.com>
Bug: 10921537

10 years agoCamera: Set default thumbnail size with matched aspect ratio
Zhijun He [Mon, 30 Sep 2013 19:07:57 +0000 (12:07 -0700)]
Camera: Set default thumbnail size with matched aspect ratio

Make default thumbnail size match the default still capture size aspect ratio.

Bug: 10885012
Change-Id: If46da9508d3b71992f0e14a35c600b7e8d347f4e

10 years agoMerge "Change VP8 encoder bitrate" into klp-dev
Rachad Alao [Mon, 30 Sep 2013 19:11:06 +0000 (19:11 +0000)]
Merge "Change VP8 encoder bitrate" into klp-dev

10 years agoMerge "Indicate sync frames returned by encoder" into klp-dev
Rachad Alao [Mon, 30 Sep 2013 19:10:47 +0000 (19:10 +0000)]
Merge "Indicate sync frames returned by encoder" into klp-dev

10 years agofix volume and effect enable delay on offloaded tracks
Eric Laurent [Sat, 28 Sep 2013 01:48:26 +0000 (18:48 -0700)]
fix volume and effect enable delay on offloaded tracks

Volume: add a method to wake up the mediaserver playback
thread when a volume command is received on an offloaded track.

Effects: call effect chain process on offloaded playback threads
asynchronously from writes to allow effect state updates while
waiting for async write callback.

Bug: 10796540.

Change-Id: Id2747ae88783575d1d7ffd6fc86fbd054ab2c739

10 years agoMerge "Prevent onPrepared callback from being called twice" into klp-dev
Marco Nelissen [Sat, 28 Sep 2013 02:25:14 +0000 (02:25 +0000)]
Merge "Prevent onPrepared callback from being called twice" into klp-dev

10 years agoChange VP8 encoder bitrate
Johann [Sat, 28 Sep 2013 00:42:12 +0000 (17:42 -0700)]
Change VP8 encoder bitrate

Allow the bitrate to be updated while the encoder is running.

Bug: 8422347
Change-Id: I8427fe20921b00f92b8f99fe21691709fab354b0

10 years agofix oflload effect proxy commmand handling
Eric Laurent [Fri, 20 Sep 2013 19:27:32 +0000 (12:27 -0700)]
fix oflload effect proxy commmand handling

Implement a more generic command handling in offload effect
proxy. All commands are sent to both sub effects but only the reply
from the active one is returned to the caller.

Bug: 8174034.
Change-Id: I28aa0f0d806e846332bc29801ee40d34e4ea0c43

10 years agofix command handling in effect offload proxy
Eric Laurent [Fri, 27 Sep 2013 22:04:26 +0000 (15:04 -0700)]
fix command handling in effect offload proxy

Fix some issues in effect proxy related to handling of effect
commands to offloaded and non offloaded effects.

Also fixed a bug on capture index in software Visualizer effect.

Bug: 8174034.
Change-Id: I119458fea597cc3acbc0ef9ec315f67aa211cbd9

10 years agoEffect Offload Proxy for effects offload
jpadmana [Tue, 4 Jun 2013 10:33:29 +0000 (16:03 +0530)]
Effect Offload Proxy for effects offload

Effect Proxy abstracts the sub effects to the upper layers.
It has the following functionalities:
- creation and release of sub effects
- routing the effect commands and process to the appropriate sub effect

Bug: 8174034.

Change-Id: Iec34b61104f0bbec4ef67c62f0710a5536dc325b
Signed-off-by: jpadmana <jayashree.r.padmanaban@intel.com>
10 years agoEffects Factory changes for effects offload
jpadmana [Tue, 4 Jun 2013 10:38:29 +0000 (16:08 +0530)]
Effects Factory changes for effects offload

audio_effects.conf - commented changes to illustrate the
addition of Proxy and sub effects to the conf file

Added an effectFactoryApi - EffectGetSubEffects for querying the
sub effect descriptors from the factory. This api is used by the Proxy
to get the sub effects

Added functions and data structures in factory code for
loading the sub effects

gSubEffectList - has the Proxies and their corresponding sub effects

- addSubEffect() - reads a sub effect node and adds to the gSubEffectList
- findSubEffect() - searches through the gSubEffectList to find a SubEffect

Bug: 8174034.

Change-Id: Id7f6aa67c41db370d32beaf43a979ba4ac925928
Signed-off-by: jpadmana <jayashree.r.padmanaban@intel.com>
10 years agoRevert "Effects Factory changes for effects offload"
Eric Laurent [Fri, 27 Sep 2013 21:53:24 +0000 (14:53 -0700)]
Revert "Effects Factory changes for effects offload"

This reverts commit 284c17e73bbff51cb5b1adcee98386d47733757a.

Change-Id: I31db21e1ad4758b21356bfe4c4c64f15b2da8737

10 years agoRevert "Effect Offload Proxy for effects offload"
Eric Laurent [Fri, 27 Sep 2013 21:50:48 +0000 (14:50 -0700)]
Revert "Effect Offload Proxy for effects offload"

This reverts commit 60c60df7db278d2fa5c90b0fa14f99a61d50272b.

Change-Id: Iafba9e02a9f3bfde6248d802e96c4e649686a87d

10 years agoPrevent onPrepared callback from being called twice
Marco Nelissen [Fri, 27 Sep 2013 19:13:52 +0000 (12:13 -0700)]
Prevent onPrepared callback from being called twice

b/10891995

Change-Id: If6845c832d114629282f0b03f904a37c3325208e

10 years agoMerge "fix playback position after switching to offload" into klp-dev
Eric Laurent [Fri, 27 Sep 2013 16:29:36 +0000 (16:29 +0000)]
Merge "fix playback position after switching to offload" into klp-dev

10 years agofix playback position after switching to offload
Eric Laurent [Fri, 27 Sep 2013 00:23:10 +0000 (17:23 -0700)]
fix playback position after switching to offload

After switching from offloaded track to PCM track
while paused (e.g. when connecting A2DP), playback
restarts from the beginning of the song when resuming.

Save current position before recreating an AudioPlayer
in AwesomePlayer::play_l() and seek to the saved position before
starting playback.
Also fix a problem where the position is not reported properly
by AudioPlayer if a seek is pending and queried just after start
and before the first buffer is read from the MediaSource.

Bug: 8174034.
Change-Id: I254e65418ff903a9bf2e2111b89a00e2e54876c5

10 years agoMerge "LoudnessEnhancer compatible with stereo imaging" into klp-dev
Jean-Michel Trivi [Fri, 27 Sep 2013 01:21:38 +0000 (01:21 +0000)]
Merge "LoudnessEnhancer compatible with stereo imaging" into klp-dev

10 years agoIndicate sync frames returned by encoder
Johann [Fri, 27 Sep 2013 00:37:51 +0000 (17:37 -0700)]
Indicate sync frames returned by encoder

Set the appropriate OMX flag when the encoder generates a keyframe. This
is necessary for any muxer which needs to indicate which frames are
seekable.

Bug: 8422347
Change-Id: I744a0b3023db24d3de2210bce82f41e50d259505

10 years agoMerge "Don't call audio effect process on offloaded playback threads" into klp-dev
Jean-Michel Trivi [Fri, 27 Sep 2013 00:50:59 +0000 (00:50 +0000)]
Merge "Don't call audio effect process on offloaded playback threads" into klp-dev

10 years agoMerge "audioflinger: fix crash when starting offload thread" into klp-dev
Eric Laurent [Thu, 26 Sep 2013 22:58:26 +0000 (22:58 +0000)]
Merge "audioflinger: fix crash when starting offload thread" into klp-dev

10 years agoaudioflinger: fix crash when starting offload thread
Eric Laurent [Thu, 26 Sep 2013 22:28:21 +0000 (15:28 -0700)]
audioflinger: fix crash when starting offload thread

Passing a sp to parent thread to AsyncCallbackThread() constructor
causes a strong reference to be acquired on the OffloadThread inside
its constructor which causes an early launch of the thread loop
with unpredictable consequences.

Pass a wp to parent thread instead.

Also move the creation of the AsyncCallbackThread to
readOutputParameters() where mUseAsyncWrite is initialized which
makes more sense.

Also change the type of AsyncCallbackThread parent thread to PlaybackThread
instead of OffloadThread to allow a broder use of non blocking write which
in theory is not limited to audio offload use case.

Bug: 8174034.
Change-Id: I4b093b022030cd4f5eb8b8e477333e91098a6549

10 years agoCamera2 API: Hack: Always use async mode with GLConsumer
Eino-Ville Talvala [Thu, 26 Sep 2013 22:28:55 +0000 (15:28 -0700)]
Camera2 API: Hack: Always use async mode with GLConsumer

Until a cleaner solution is implemented, force buffer queues to
consumers that set USAGE_HW_TEXTURE usage to be asynchronous.

Bug: 10949105
Change-Id: I69e6b02b773831396767c282ce8c5936c5d41f03

10 years agoLoudnessEnhancer compatible with stereo imaging
Jean-Michel Trivi [Thu, 26 Sep 2013 01:43:55 +0000 (18:43 -0700)]
LoudnessEnhancer compatible with stereo imaging

Use a single compressor for both channels.
Envelope of signal is determined by looking at both channels.

Bug 8413913

Change-Id: Ia9b6f34923d2977c60a3352500b858dfa1fab33c

10 years agoDon't call audio effect process on offloaded playback threads
Jean-Michel Trivi [Thu, 26 Sep 2013 01:50:33 +0000 (18:50 -0700)]
Don't call audio effect process on offloaded playback threads

An audio effect process command is not meant to be called for
 playback threads belonging to offloaded playback.

Bug 10933817

Change-Id: Idc7b6a0224791bbf8d61648474d3c288617c498f

10 years agoam 6914de6d: Merge "Camera: Implement getCameraCharacteristics" into klp-dev
Zhijun He [Wed, 25 Sep 2013 23:56:08 +0000 (16:56 -0700)]
am 6914de6d: Merge "Camera: Implement getCameraCharacteristics" into klp-dev

* commit '6914de6dd1d74fcf74e3247c89f9293fbf7bafe5':
  Camera: Implement getCameraCharacteristics

10 years agoMerge "Camera: Implement getCameraCharacteristics" into klp-dev
Zhijun He [Wed, 25 Sep 2013 23:52:06 +0000 (23:52 +0000)]
Merge "Camera: Implement getCameraCharacteristics" into klp-dev

10 years agoCamera: Implement getCameraCharacteristics
Zhijun He [Wed, 25 Sep 2013 17:14:30 +0000 (10:14 -0700)]
Camera: Implement getCameraCharacteristics

Bug: 10904541
Bug: 10360518
Change-Id: Ie9ca6b3b0b5f2fe529e6b0decc193096e770a017

10 years agoam 1802399c: Merge "fix deadlock in audioflinger::createEffect()" into klp-dev
Eric Laurent [Wed, 25 Sep 2013 20:05:50 +0000 (13:05 -0700)]
am 1802399c: Merge "fix deadlock in audioflinger::createEffect()" into klp-dev

* commit '1802399c7c4d8557922688f246df292703f417f1':
  fix deadlock in audioflinger::createEffect()

10 years agoMerge "fix deadlock in audioflinger::createEffect()" into klp-dev
Eric Laurent [Wed, 25 Sep 2013 20:01:01 +0000 (20:01 +0000)]
Merge "fix deadlock in audioflinger::createEffect()" into klp-dev

10 years agofix deadlock in audioflinger::createEffect()
Eric Laurent [Wed, 25 Sep 2013 19:25:29 +0000 (12:25 -0700)]
fix deadlock in audioflinger::createEffect()

commit 5baf2af5 introduced a regression by calling
getOutputForEffect() with AudioFLinger main mutex locked.
The locking order must always be AudioPolicyService mutex then
AudioFlinger then ThreadBase mutex.

Bug: 10916796.
Change-Id: Ide34a2d84dbb06dbb35abd0640d91b01b0ac4d40

10 years agoam 2b890936: Merge "Camera2/3: Support new PASSIVE_UNFOCUSED AF state" into klp-dev
Eino-Ville Talvala [Wed, 25 Sep 2013 19:29:27 +0000 (12:29 -0700)]
am 2b890936: Merge "Camera2/3: Support new PASSIVE_UNFOCUSED AF state" into klp-dev

* commit '2b890936e978de0a8d4450ee1aaeda53d22b5f4e':
  Camera2/3: Support new PASSIVE_UNFOCUSED AF state

10 years agoMerge "Camera2/3: Support new PASSIVE_UNFOCUSED AF state" into klp-dev
Eino-Ville Talvala [Wed, 25 Sep 2013 19:27:34 +0000 (19:27 +0000)]
Merge "Camera2/3: Support new PASSIVE_UNFOCUSED AF state" into klp-dev

10 years agoam 58dd0786: Merge "Send kWhatConnected in onTimeUpdate() before first access unit...
Chong Zhang [Wed, 25 Sep 2013 17:31:44 +0000 (10:31 -0700)]
am 58dd0786: Merge "Send kWhatConnected in onTimeUpdate() before first access unit" into klp-dev

* commit '58dd07863571951408b67fa0a7f17cb23606fb1c':
  Send kWhatConnected in onTimeUpdate() before first access unit

10 years agoMerge "Send kWhatConnected in onTimeUpdate() before first access unit" into klp-dev
Chong Zhang [Wed, 25 Sep 2013 17:27:15 +0000 (17:27 +0000)]
Merge "Send kWhatConnected in onTimeUpdate() before first access unit" into klp-dev

10 years agoam 6c63fe0f: am ab70649e: Merge "MediaCodec: Pass the crop rect to SoftwareRenderer"
Lajos Molnar [Wed, 25 Sep 2013 17:16:13 +0000 (10:16 -0700)]
am 6c63fe0f: am ab70649e: Merge "MediaCodec: Pass the crop rect to SoftwareRenderer"

* commit '6c63fe0fdb33e5e7eb8c89f2420262b072cdd83f':
  MediaCodec: Pass the crop rect to SoftwareRenderer

10 years agoam ab70649e: Merge "MediaCodec: Pass the crop rect to SoftwareRenderer"
Lajos Molnar [Wed, 25 Sep 2013 17:14:22 +0000 (10:14 -0700)]
am ab70649e: Merge "MediaCodec: Pass the crop rect to SoftwareRenderer"

* commit 'ab70649e2b0ea3d917242814417ec5711f4cb811':
  MediaCodec: Pass the crop rect to SoftwareRenderer

10 years agoMerge "MediaCodec: Pass the crop rect to SoftwareRenderer"
Lajos Molnar [Wed, 25 Sep 2013 17:12:12 +0000 (17:12 +0000)]
Merge "MediaCodec: Pass the crop rect to SoftwareRenderer"

10 years agoMediaCodec: Pass the crop rect to SoftwareRenderer
Martin Storsjo [Wed, 25 Sep 2013 13:26:09 +0000 (16:26 +0300)]
MediaCodec: Pass the crop rect to SoftwareRenderer

Change-Id: I434411516eb5fafe9d7aeac9882bbc7f1a8415d8

10 years agoam d2ac3144: Merge "Fix log typos in Visualizer effect" into klp-dev
Jean-Michel Trivi [Tue, 24 Sep 2013 23:43:32 +0000 (16:43 -0700)]
am d2ac3144: Merge "Fix log typos in Visualizer effect" into klp-dev

* commit 'd2ac3144e201398340cc5b9bb36e5efe39edd9eb':
  Fix log typos in Visualizer effect

10 years agoMerge "Fix log typos in Visualizer effect" into klp-dev
Jean-Michel Trivi [Tue, 24 Sep 2013 23:37:53 +0000 (23:37 +0000)]
Merge "Fix log typos in Visualizer effect" into klp-dev

10 years agoam ddfbfaeb: fix oflload effect proxy commmand handling
Eric Laurent [Tue, 24 Sep 2013 22:44:12 +0000 (15:44 -0700)]
am ddfbfaeb: fix oflload effect proxy commmand handling

* commit 'ddfbfaeb00295fff7351711f0f044f17d6c40f3c':
  fix oflload effect proxy commmand handling

10 years agoFix log typos in Visualizer effect
Jean-Michel Trivi [Tue, 24 Sep 2013 22:31:13 +0000 (15:31 -0700)]
Fix log typos in Visualizer effect

Fix errors in logs for Visualizer.
Set loop counters on 32 bits

Bug 8413913

Change-Id: Iad2140d003d15d45be46826a5e89baff14fe9e77

10 years agofix oflload effect proxy commmand handling
Eric Laurent [Fri, 20 Sep 2013 19:27:32 +0000 (12:27 -0700)]
fix oflload effect proxy commmand handling

Implement a more generic command handling in offload effect
proxy. All commands are sent to both sub effects but only the reply
from the active one is returned to the caller.

Bug: 8174034.
Change-Id: Ia45f9933b3bf338257ec70b37732fa1578d26b9f

10 years agoam 1c7f35d1: Merge "soundpool: allocate shared memory heap by client" into klp-dev
Eric Laurent [Tue, 24 Sep 2013 21:08:21 +0000 (14:08 -0700)]
am 1c7f35d1: Merge "soundpool: allocate shared memory heap by client" into klp-dev

* commit '1c7f35d1f25eb7160314fdef536463fc34deb1ea':
  soundpool: allocate shared memory heap by client

10 years agoMerge "soundpool: allocate shared memory heap by client" into klp-dev
Eric Laurent [Tue, 24 Sep 2013 21:05:13 +0000 (21:05 +0000)]
Merge "soundpool: allocate shared memory heap by client" into klp-dev

10 years agoam 1ecd3dc4: Merge "Camera2/3: Properly disambiguate FPS range vs. single FPS setting...
Eino-Ville Talvala [Tue, 24 Sep 2013 20:32:12 +0000 (13:32 -0700)]
am 1ecd3dc4: Merge "Camera2/3: Properly disambiguate FPS range vs. single FPS setting" into klp-dev

* commit '1ecd3dc4c779754e9d6603a17b9b3c6b709fb0cc':
  Camera2/3: Properly disambiguate FPS range vs. single FPS setting

10 years agoMerge "Camera2/3: Properly disambiguate FPS range vs. single FPS setting" into klp-dev
Eino-Ville Talvala [Tue, 24 Sep 2013 20:29:55 +0000 (20:29 +0000)]
Merge "Camera2/3: Properly disambiguate FPS range vs. single FPS setting" into klp-dev

10 years agosoundpool: allocate shared memory heap by client
Eric Laurent [Tue, 24 Sep 2013 16:53:27 +0000 (09:53 -0700)]
soundpool: allocate shared memory heap by client

Current SoundPool implementation allocates the shared memory heap
containing decoded PCM samples in mediaserver process.
When mediaserver process crashes, the shared memory heaps allocated by
AudioCache cannot be mapped anymore in the new instance of mediaserver.
This causes a silent failure to end playback of new sounds because
AudioFlinger believes the new AudioTracks are opened in streaming mode
and not static mode: it sees a NULL shared memory pointer when the track
is created.

The fix consists in allocating the memory heap in the client process. Thus
the heap is not lost when mediaserver restarts. The global memory usage is
the same as this is shared memory.

Also added a way to detect that a shared memory is passed when the track is
created but cannot be mapped on mediaserver side.

Also fix a crash in SoundPool when ALOGV is enabled.

Bug: 10894793.
Change-Id: Ice6c66ec3b2a409d75dc903a508b6c6fbfb2e8a7

10 years agoam 664539d2: audioflinger: fix ro.audio.silent in offload again
Eric Laurent [Tue, 24 Sep 2013 17:54:13 +0000 (10:54 -0700)]
am 664539d2: audioflinger: fix ro.audio.silent in offload again

* commit '664539d25180ab8f77e0521533ea2821cf28985f':
  audioflinger: fix ro.audio.silent in offload again

10 years agoSend kWhatConnected in onTimeUpdate() before first access unit
Chong Zhang [Tue, 24 Sep 2013 17:04:42 +0000 (10:04 -0700)]
Send kWhatConnected in onTimeUpdate() before first access unit

Bug: 10642588
Change-Id: If2b4fbbf250d5307e304f31c7aa4ac480e279484

10 years agoam 402dfba6: Merge "Add support for level measurements in Visualizer" into klp-dev
Jean-Michel Trivi [Tue, 24 Sep 2013 02:00:19 +0000 (19:00 -0700)]
am 402dfba6: Merge "Add support for level measurements in Visualizer" into klp-dev

* commit '402dfba6dcd68f5fd8d8921f9751f3e47eb1449d':
  Add support for level measurements in Visualizer