OSDN Git Service

android-x86/frameworks-av.git
11 years agoam 984b3f4d: am 7f76a81b: Merge "Check adaptive playback support via CodecCapabilitie...
Lajos Molnar [Wed, 14 Aug 2013 14:51:53 +0000 (07:51 -0700)]
am 984b3f4d: am 7f76a81b: Merge "Check adaptive playback support via CodecCapabilities" into klp-dev

* commit '984b3f4df6ac50a7d655391b19afefa8d5ce30ba':
  Check adaptive playback support via CodecCapabilities

11 years agoam 7f76a81b: Merge "Check adaptive playback support via CodecCapabilities" into klp-dev
Lajos Molnar [Wed, 14 Aug 2013 01:30:44 +0000 (18:30 -0700)]
am 7f76a81b: Merge "Check adaptive playback support via CodecCapabilities" into klp-dev

* commit '7f76a81b18ade3158ae27015637074ce08e837b2':
  Check adaptive playback support via CodecCapabilities

11 years agoMerge "Check adaptive playback support via CodecCapabilities" into klp-dev
Lajos Molnar [Wed, 14 Aug 2013 01:27:14 +0000 (01:27 +0000)]
Merge "Check adaptive playback support via CodecCapabilities" into klp-dev

11 years agoCheck adaptive playback support via CodecCapabilities
Lajos Molnar [Tue, 6 Aug 2013 22:02:22 +0000 (15:02 -0700)]
Check adaptive playback support via CodecCapabilities

Added flags field to CodecCapabilities, so that applications
can query whether codecs support various features.  For now
added one video-decoder feature:

kFlagSupportsAdaptivePlayback

Media playback applications can query it to see if a codec
supports seamless resolution changes, such as by supporting
dynamic output buffers.

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

11 years agoMerge "Explicit comparison to 0 for integral types"
Glenn Kasten [Tue, 13 Aug 2013 17:29:13 +0000 (17:29 +0000)]
Merge "Explicit comparison to 0 for integral types"

11 years agoMerge "Move local variable declarations to point of first use"
Glenn Kasten [Tue, 13 Aug 2013 17:28:25 +0000 (17:28 +0000)]
Merge "Move local variable declarations to point of first use"

11 years agoMerge "Use curly braces in 'if' to make it easier to add logs"
Glenn Kasten [Tue, 13 Aug 2013 17:27:49 +0000 (17:27 +0000)]
Merge "Use curly braces in 'if' to make it easier to add logs"

11 years agoam 65a6b3b6: am cd06d357: Merge "Optionally repeat the previously submitted frame...
Andreas Huber [Tue, 13 Aug 2013 17:20:01 +0000 (10:20 -0700)]
am 65a6b3b6: am cd06d357: Merge "Optionally repeat the previously submitted frame to the encoder" into klp-dev

* commit '65a6b3b6a19e0b4920ba504a3ee40e4abe3a740d':
  Optionally repeat the previously submitted frame to the encoder

11 years agoam cd06d357: Merge "Optionally repeat the previously submitted frame to the encoder...
Andreas Huber [Tue, 13 Aug 2013 17:17:33 +0000 (10:17 -0700)]
am cd06d357: Merge "Optionally repeat the previously submitted frame to the encoder" into klp-dev

* commit 'cd06d357ed4fcde991aa55dc97317d97cb287332':
  Optionally repeat the previously submitted frame to the encoder

11 years agoMerge "Optionally repeat the previously submitted frame to the encoder" into klp-dev
Andreas Huber [Tue, 13 Aug 2013 17:13:24 +0000 (17:13 +0000)]
Merge "Optionally repeat the previously submitted frame to the encoder" into klp-dev

11 years agoOptionally repeat the previously submitted frame to the encoder
Andreas Huber [Wed, 31 Jul 2013 20:50:42 +0000 (13:50 -0700)]
Optionally repeat the previously submitted frame to the encoder

if no new frame has been delivered by surface flinger within the timeout
interval.

Change-Id: I282f1b726dfe5646b178d7858d6f5d4f5a264fde

11 years agoam 8ec8a534: am 1e0b0808: Merge "Restore stagefright command line tool." into klp-dev
Andreas Huber [Tue, 13 Aug 2013 17:09:59 +0000 (10:09 -0700)]
am 8ec8a534: am 1e0b0808: Merge "Restore stagefright command line tool." into klp-dev

* commit '8ec8a5346831efa699d31274363da9cf516981db':
  Restore stagefright command line tool.

11 years agoam 1e0b0808: Merge "Restore stagefright command line tool." into klp-dev
Andreas Huber [Tue, 13 Aug 2013 17:07:30 +0000 (10:07 -0700)]
am 1e0b0808: Merge "Restore stagefright command line tool." into klp-dev

* commit '1e0b080825a169c6ac655f11a798ff177575608c':
  Restore stagefright command line tool.

11 years agoMerge "Whitespace"
Glenn Kasten [Tue, 13 Aug 2013 17:07:17 +0000 (17:07 +0000)]
Merge "Whitespace"

11 years agoMerge "Comments"
Glenn Kasten [Tue, 13 Aug 2013 17:06:18 +0000 (17:06 +0000)]
Merge "Comments"

11 years agoMerge "Restore stagefright command line tool." into klp-dev
Andreas Huber [Tue, 13 Aug 2013 17:03:29 +0000 (17:03 +0000)]
Merge "Restore stagefright command line tool." into klp-dev

11 years agoam 00dbc7ba: am 46052913: Better error message
Andy McFadden [Tue, 13 Aug 2013 17:02:07 +0000 (10:02 -0700)]
am 00dbc7ba: am 46052913: Better error message

* commit '00dbc7ba6ba089c40ff1cbea370828b57a464b52':
  Better error message

11 years agoam 46052913: Better error message
Andy McFadden [Tue, 13 Aug 2013 17:00:49 +0000 (10:00 -0700)]
am 46052913: Better error message

* commit '46052913f307b1561f1661bb776fa29c0775758c':
  Better error message

11 years agoBetter error message
Andy McFadden [Tue, 13 Aug 2013 16:56:19 +0000 (09:56 -0700)]
Better error message

Attempt to create the output file before handing it to MediaMuxer,
which doesn't report file-open failures in a useful way.

Change-Id: Ie24ff577dd50e185b4eb72575684d23a46f38d3d

11 years agoExplicit comparison to 0 for integral types
Glenn Kasten [Tue, 13 Aug 2013 16:48:14 +0000 (09:48 -0700)]
Explicit comparison to 0 for integral types

Change-Id: I2bfe864d1bda719581e297a38d96abfc0e3748b9

11 years agoMove local variable declarations to point of first use
Glenn Kasten [Tue, 6 Aug 2013 17:45:10 +0000 (10:45 -0700)]
Move local variable declarations to point of first use

Change-Id: Ia0fc4b099a3cf8bb5b67b287e7687e9dc9691e0e

11 years agoUse curly braces in 'if' to make it easier to add logs
Glenn Kasten [Tue, 13 Aug 2013 16:14:51 +0000 (09:14 -0700)]
Use curly braces in 'if' to make it easier to add logs

Change-Id: I58b33fefdd8bf703647414157a99a3223be3531c

11 years agoWhitespace
Glenn Kasten [Tue, 13 Aug 2013 16:13:36 +0000 (09:13 -0700)]
Whitespace

Change-Id: Id3ccc183a03421330d0498faaa62a45915cdc3d6

11 years agoComments
Glenn Kasten [Mon, 5 Aug 2013 21:58:14 +0000 (14:58 -0700)]
Comments

Change-Id: I56f82904cb3855bad6f33ad1ff4ddf66a61c5720

11 years agoRestore stagefright command line tool.
Andreas Huber [Tue, 13 Aug 2013 15:55:47 +0000 (08:55 -0700)]
Restore stagefright command line tool.

Change-Id: Ia17f48522f601d6a057ef3e1e8cd01f80a5c9951

11 years agoMerge "Check input HAL channel mask instead of channel count"
Glenn Kasten [Tue, 13 Aug 2013 15:28:12 +0000 (15:28 +0000)]
Merge "Check input HAL channel mask instead of channel count"

11 years agoMerge "Clean up error handling in createTrack and openRecord"
Glenn Kasten [Tue, 13 Aug 2013 14:49:12 +0000 (14:49 +0000)]
Merge "Clean up error handling in createTrack and openRecord"

11 years agoam 82278b2c: am fe9611bd: Merge "Fix potential leak of audio input handle." into...
Jeff Brown [Tue, 13 Aug 2013 02:18:00 +0000 (19:18 -0700)]
am 82278b2c: am fe9611bd: Merge "Fix potential leak of audio input handle." into klp-dev

* commit '82278b2ceeebbcf345ed81413eeffa82fa82e05b':
  Fix potential leak of audio input handle.

11 years agoam fe9611bd: Merge "Fix potential leak of audio input handle." into klp-dev
Jeff Brown [Tue, 13 Aug 2013 01:11:25 +0000 (18:11 -0700)]
am fe9611bd: Merge "Fix potential leak of audio input handle." into klp-dev

* commit 'fe9611bd65a8d968d6512f6a83078ac064ec8e6e':
  Fix potential leak of audio input handle.

11 years agoMerge "Fix potential leak of audio input handle." into klp-dev
Jeff Brown [Mon, 12 Aug 2013 23:59:55 +0000 (23:59 +0000)]
Merge "Fix potential leak of audio input handle." into klp-dev

11 years agoClean up error handling in createTrack and openRecord
Glenn Kasten [Tue, 6 Aug 2013 22:40:54 +0000 (15:40 -0700)]
Clean up error handling in createTrack and openRecord

Outside callers now use initCheck() to determine whether a TrackBase
has been created successfully, instead of relying on internal knowledge.

Previously, callers needed to know that a TrackBase was only valid if it's
getCbk() != 0.  For a Track (playback), they needed to know to also check
the track's name (track index).  Now, outsiders can just call initCheck().

Other changes:
 - Return a 0 reference if track creation fails
 - Remove a dead line of code in AudioFlinger::openRecord

Change-Id: If374924a3f6fd27906f625aa83dd0a1e3f506e00

11 years agoStatus pointer passed by caller is always non-NULL
Glenn Kasten [Tue, 6 Aug 2013 22:39:08 +0000 (15:39 -0700)]
Status pointer passed by caller is always non-NULL

in createTrack, openRecord, createEffect, createTrack_l,
createRecordTrack_l, and createEffect_l.

Change-Id: I2e459e4de9c78145f4d496e6abf289479a2f0941

11 years agoMerge "Remove obsolete TrackBase::getBuffer()"
Glenn Kasten [Mon, 12 Aug 2013 18:53:12 +0000 (18:53 +0000)]
Merge "Remove obsolete TrackBase::getBuffer()"

11 years agoMerge "Pull up readyToRun into ThreadBase"
Glenn Kasten [Mon, 12 Aug 2013 18:45:02 +0000 (18:45 +0000)]
Merge "Pull up readyToRun into ThreadBase"

11 years agoam 4d9bc1a7: am b8689b31: Support for "request-sync" parameter in ACodec
Andreas Huber [Mon, 12 Aug 2013 18:09:24 +0000 (11:09 -0700)]
am 4d9bc1a7: am b8689b31: Support for "request-sync" parameter in ACodec

* commit '4d9bc1a742b386db4985ad1f973091a50207fdc2':
  Support for "request-sync" parameter in ACodec

11 years agoam b8689b31: Support for "request-sync" parameter in ACodec
Andreas Huber [Mon, 12 Aug 2013 18:01:38 +0000 (11:01 -0700)]
am b8689b31: Support for "request-sync" parameter in ACodec

* commit 'b8689b31813f55cbc1bf8e9ca0d46a9ee113e38a':
  Support for "request-sync" parameter in ACodec

11 years agoMerge "Simplify the code that allocates mMixBuffer by removing mAllocMixBuffer"
Glenn Kasten [Mon, 12 Aug 2013 17:44:53 +0000 (17:44 +0000)]
Merge "Simplify the code that allocates mMixBuffer by removing mAllocMixBuffer"

11 years agoSupport for "request-sync" parameter in ACodec
Andreas Huber [Mon, 12 Aug 2013 17:08:23 +0000 (10:08 -0700)]
Support for "request-sync" parameter in ACodec

Also returns errors to caller instead of asserting...

Change-Id: Id3018655a2b3da4289167fba16af907350a511ae

11 years agoFix potential leak of audio input handle.
Jeff Brown [Sat, 10 Aug 2013 01:32:30 +0000 (18:32 -0700)]
Fix potential leak of audio input handle.

The audio input handle is ultimately owned by the audio recorder
object but it could be dropped on the floor if an error occurred
before that object was fully initialized.

Rearranged some of the argument validation and merged getInput_l
with openRecord_l to simplify the code and prevent such a leak
from occurring.

Bug: 10265163
Change-Id: I124dce344b1d11c2dd66ca5e2c9aec0c52c230e2

11 years agoam 60147776: (-s ours) am 7473e356: (-s ours) am 943917c4: (-s ours) Merge "Fix Sound...
Glenn Kasten [Fri, 9 Aug 2013 23:49:22 +0000 (16:49 -0700)]
am 60147776: (-s ours) am 7473e356: (-s ours) am 943917c4: (-s ours) Merge "Fix SoundPool.play() looping regression in 4.3 DO NOT MERGE"

* commit '601477769cef254d3a95338e853a37ccf9aac63f':
  Fix SoundPool.play() looping regression in 4.3 DO NOT MERGE

11 years agoam 7473e356: (-s ours) am 943917c4: (-s ours) Merge "Fix SoundPool.play() looping...
Glenn Kasten [Fri, 9 Aug 2013 23:45:49 +0000 (16:45 -0700)]
am 7473e356: (-s ours) am 943917c4: (-s ours) Merge "Fix SoundPool.play() looping regression in 4.3 DO NOT MERGE"

* commit '7473e356f5b7de6b67aef3b34faa6ddb1c054060':
  Fix SoundPool.play() looping regression in 4.3 DO NOT MERGE

11 years agoam 943917c4: (-s ours) Merge "Fix SoundPool.play() looping regression in 4.3 DO NOT...
Glenn Kasten [Fri, 9 Aug 2013 23:40:22 +0000 (16:40 -0700)]
am 943917c4: (-s ours) Merge "Fix SoundPool.play() looping regression in 4.3 DO NOT MERGE"

* commit '943917c41f447fdceab6ce75e00c05551072000b':
  Fix SoundPool.play() looping regression in 4.3 DO NOT MERGE

11 years agoMerge "Fix SoundPool.play() looping regression in 4.3 DO NOT MERGE"
Glenn Kasten [Fri, 9 Aug 2013 23:14:43 +0000 (23:14 +0000)]
Merge "Fix SoundPool.play() looping regression in 4.3 DO NOT MERGE"

11 years agoFix SoundPool.play() looping regression in 4.3 DO NOT MERGE
Glenn Kasten [Fri, 9 Aug 2013 21:32:40 +0000 (14:32 -0700)]
Fix SoundPool.play() looping regression in 4.3 DO NOT MERGE

The change I7370d6e59a7ef26dfb284a8b058d5ab2e0a42ccf caused a regression
in SoundPool looping when using SoundPool's streaming implementation.
This reverts a portion of that change.

Bug: https://code.google.com/p/android/issues/detail?id=58113
Bug: 10171337
Change-Id: I8af0dc8683a7c7f225c80f0eb4d39770667b52e5

11 years agoMerge "Use 0 for sp<>, NULL for raw pointers"
Glenn Kasten [Fri, 9 Aug 2013 15:20:32 +0000 (15:20 +0000)]
Merge "Use 0 for sp<>, NULL for raw pointers"

11 years agoMerge "Rename reqChannels to reqChannelMask"
Glenn Kasten [Fri, 9 Aug 2013 15:11:07 +0000 (15:11 +0000)]
Merge "Rename reqChannels to reqChannelMask"

11 years agoMerge "Line length 100"
Glenn Kasten [Fri, 9 Aug 2013 14:26:10 +0000 (14:26 +0000)]
Merge "Line length 100"

11 years agoam 1b832c3d: Merge "Fix regression for AudioRecord streaming callback mode" into...
Glenn Kasten [Fri, 9 Aug 2013 13:06:33 +0000 (06:06 -0700)]
am 1b832c3d: Merge "Fix regression for AudioRecord streaming callback mode" into klp-dev

* commit '1b832c3d8f2b1b24f9bc7025afd2b4a8b4e6c6f9':
  Fix regression for AudioRecord streaming callback mode

11 years agoam 9bdc9c4e: am bcd86896: am d0f5664a: Merge "Handle undefined NAL type for h264...
Andreas Huber [Fri, 9 Aug 2013 13:06:02 +0000 (06:06 -0700)]
am 9bdc9c4e: am bcd86896: am d0f5664a: Merge "Handle undefined NAL type for h264 streaming"

* commit '9bdc9c4ee0b44ca407cdca4499df9b3134bc5884':
  Handle undefined NAL type for h264 streaming

11 years agoMerge "Fix regression for AudioRecord streaming callback mode" into klp-dev
Glenn Kasten [Thu, 8 Aug 2013 23:39:34 +0000 (23:39 +0000)]
Merge "Fix regression for AudioRecord streaming callback mode" into klp-dev

11 years agoam bcd86896: am d0f5664a: Merge "Handle undefined NAL type for h264 streaming"
Andreas Huber [Thu, 8 Aug 2013 23:21:42 +0000 (16:21 -0700)]
am bcd86896: am d0f5664a: Merge "Handle undefined NAL type for h264 streaming"

* commit 'bcd86896e486e303d285e13477e0623b2a920e78':
  Handle undefined NAL type for h264 streaming

11 years agoFix regression for AudioRecord streaming callback mode
Glenn Kasten [Thu, 8 Aug 2013 22:20:53 +0000 (15:20 -0700)]
Fix regression for AudioRecord streaming callback mode

The notification period (frequency of client wakeups) was broken in
streaming callback mode.  Fast tracks were OK, but non-fast tracks with
normal latency weren't getting woken up at all.

Bug: 10222943
Change-Id: Ife9a2f57fa73c6eb921f1c5ba62de0bfcc20557b

11 years agoMerge "Pull up mBufferSize from RecordThread to ThreadBase"
Glenn Kasten [Thu, 8 Aug 2013 16:47:17 +0000 (16:47 +0000)]
Merge "Pull up mBufferSize from RecordThread to ThreadBase"

11 years agoMerge "Remove obsolete field RecordTrack::mAudioRecordServerProxy"
Glenn Kasten [Thu, 8 Aug 2013 16:33:34 +0000 (16:33 +0000)]
Merge "Remove obsolete field RecordTrack::mAudioRecordServerProxy"

11 years agoam d0f5664a: Merge "Handle undefined NAL type for h264 streaming"
Andreas Huber [Thu, 8 Aug 2013 15:56:37 +0000 (08:56 -0700)]
am d0f5664a: Merge "Handle undefined NAL type for h264 streaming"

* commit 'd0f5664abb5a8d94ae13f63a5f3491b47383ee2f':
  Handle undefined NAL type for h264 streaming

11 years agoMerge "Handle undefined NAL type for h264 streaming"
Andreas Huber [Thu, 8 Aug 2013 15:52:47 +0000 (15:52 +0000)]
Merge "Handle undefined NAL type for h264 streaming"

11 years agoMerge "Consistent style for comparisons of raw pointers to NULL"
Glenn Kasten [Thu, 8 Aug 2013 15:31:23 +0000 (15:31 +0000)]
Merge "Consistent style for comparisons of raw pointers to NULL"

11 years agoMerge "memset audio_config to zero"
Glenn Kasten [Thu, 8 Aug 2013 15:19:02 +0000 (15:19 +0000)]
Merge "memset audio_config to zero"

11 years agoMerge "Cleanup comments for the new control block implementation"
Glenn Kasten [Wed, 7 Aug 2013 17:19:36 +0000 (17:19 +0000)]
Merge "Cleanup comments for the new control block implementation"

11 years agoMerge "Adds a drm resource busy error, removes some deprecated errors"
Jeff Tinker [Wed, 7 Aug 2013 01:44:37 +0000 (01:44 +0000)]
Merge "Adds a drm resource busy error, removes some deprecated errors"

11 years agoMerge "IOMX: add updateGraphicBufferInMeta method for metadata mode"
Lajos Molnar [Tue, 6 Aug 2013 23:55:31 +0000 (23:55 +0000)]
Merge "IOMX: add updateGraphicBufferInMeta method for metadata mode"

11 years agoMerge "fix build"
Mathias Agopian [Tue, 6 Aug 2013 23:06:09 +0000 (23:06 +0000)]
Merge "fix build"

11 years agofix build
Mathias Agopian [Tue, 6 Aug 2013 23:05:27 +0000 (16:05 -0700)]
fix build

Change-Id: I859bd75eb796b0cb8da30ad947776d3e38f3873f

11 years agoFix build. last attempt.
Ying Wang [Tue, 6 Aug 2013 22:54:17 +0000 (15:54 -0700)]
Fix build. last attempt.

Change-Id: Ib955134f90b78cfc0d31272021ad5907a41df708

11 years agoCheck input HAL channel mask instead of channel count
Glenn Kasten [Wed, 17 Jul 2013 14:30:58 +0000 (07:30 -0700)]
Check input HAL channel mask instead of channel count

The only supported channel masks are mono and stereo;
arbitrary channel masks are not yet allowed.

Change-Id: I9cebbe56480b53b98e59aa55245a1f03a30d2839

11 years agoRemove obsolete TrackBase::getBuffer()
Glenn Kasten [Tue, 6 Aug 2013 21:41:45 +0000 (14:41 -0700)]
Remove obsolete TrackBase::getBuffer()

Change-Id: Ic39c7baa9538080bfec114bf18ff9b9986c93fed

11 years agoLine length 100
Glenn Kasten [Tue, 6 Aug 2013 21:31:26 +0000 (14:31 -0700)]
Line length 100

Change-Id: I8ad58a961cefd0b0c2b041e04fd78669917453d1

11 years agoUse 0 for sp<>, NULL for raw pointers
Glenn Kasten [Wed, 26 Jun 2013 18:19:36 +0000 (11:19 -0700)]
Use 0 for sp<>, NULL for raw pointers

Change-Id: Ia0595afdc41e1dec428d7a3db73558b54c417bf3

11 years agoIOMX: add updateGraphicBufferInMeta method for metadata mode
Lajos Molnar [Mon, 22 Jul 2013 19:57:43 +0000 (12:57 -0700)]
IOMX: add updateGraphicBufferInMeta method for metadata mode

This is used to set the handle in the metadata buffer that is
valid in the mediaserver process, as well as to keep a reference
for the graphic buffers in BufferMeta.

Change-Id: I46bb68d8bed894f357eeeb25368360d11b276634
Signed-off-by: Lajos Molnar <lajos@google.com>
11 years agoseparte producer and consumer interfaces
Mathias Agopian [Fri, 2 Aug 2013 08:50:59 +0000 (01:50 -0700)]
separte producer and consumer interfaces

Bug: 9265647
Change-Id: Iefabc11e4bd2e2e8ffd31160476c450affe6629c

11 years agomemset audio_config to zero
Glenn Kasten [Tue, 6 Aug 2013 17:45:39 +0000 (10:45 -0700)]
memset audio_config to zero

Per guideline in hardware/libhardware/include/hardware/audio.h,
"You should memset() the entire structure to zero before use to
ensure forward compatibility."

Change-Id: I2bce70ef6ea4b070668bd9cbc54bfe20a60111aa

11 years agoRename reqChannels to reqChannelMask
Glenn Kasten [Tue, 6 Aug 2013 17:49:43 +0000 (10:49 -0700)]
Rename reqChannels to reqChannelMask

This avoids potential ambiguity with channel count.

Change-Id: I0db82efc4c14dd8189d65a1db29809a085acf528

11 years agoMerge "AudioRecord notification frames"
Glenn Kasten [Tue, 6 Aug 2013 17:32:40 +0000 (17:32 +0000)]
Merge "AudioRecord notification frames"

11 years agoMerge "AudioRecord::openRecord_l use flags"
Glenn Kasten [Tue, 6 Aug 2013 16:49:16 +0000 (16:49 +0000)]
Merge "AudioRecord::openRecord_l use flags"

11 years agoRemove obsolete field RecordTrack::mAudioRecordServerProxy
Glenn Kasten [Mon, 5 Aug 2013 22:16:21 +0000 (15:16 -0700)]
Remove obsolete field RecordTrack::mAudioRecordServerProxy

Change-Id: I054ba929e209797542940a0e734fc15f19f321c9

11 years agoMerge "Reject unprepared MediaPlayers"
Marco Nelissen [Tue, 6 Aug 2013 16:15:35 +0000 (16:15 +0000)]
Merge "Reject unprepared MediaPlayers"

11 years agoMerge "AudioRecord::openRecord_l now take flags"
Glenn Kasten [Tue, 6 Aug 2013 16:14:01 +0000 (16:14 +0000)]
Merge "AudioRecord::openRecord_l now take flags"

11 years agoConsistent style for comparisons of raw pointers to NULL
Glenn Kasten [Wed, 31 Jul 2013 23:12:13 +0000 (16:12 -0700)]
Consistent style for comparisons of raw pointers to NULL

Change-Id: Iec102a5ccb2fe69229887b5432cd1fb66f26f0cf

11 years agoPull up readyToRun into ThreadBase
Glenn Kasten [Tue, 6 Aug 2013 14:41:16 +0000 (07:41 -0700)]
Pull up readyToRun into ThreadBase

Change-Id: Ib150afd72c3b35d83599a61664e89302a8feb4b5

11 years agoSimplify the code that allocates mMixBuffer by removing mAllocMixBuffer
Glenn Kasten [Tue, 6 Aug 2013 14:41:36 +0000 (07:41 -0700)]
Simplify the code that allocates mMixBuffer by removing mAllocMixBuffer

Change-Id: I5ac41210251789a034d760309c50fe018f2442ce

11 years agoPull up mBufferSize from RecordThread to ThreadBase
Glenn Kasten [Tue, 6 Aug 2013 14:40:12 +0000 (07:40 -0700)]
Pull up mBufferSize from RecordThread to ThreadBase

Now both playback and record threads have a HAL buffer size for fast
tracks, and a potentially larger-sized buffer for normal tracks.

Change-Id: I6f57b85ecece3cbd4e9e64b8c41c3352f7656912

11 years agoMerge "RecordThread::createRecordTrack_l use flags for fast tracks"
Glenn Kasten [Tue, 6 Aug 2013 14:22:28 +0000 (14:22 +0000)]
Merge "RecordThread::createRecordTrack_l use flags for fast tracks"

11 years agoMerge "RecordTrack::createRecordTrack_l flags are in/out"
Glenn Kasten [Mon, 5 Aug 2013 23:13:13 +0000 (23:13 +0000)]
Merge "RecordTrack::createRecordTrack_l flags are in/out"

11 years agoMerge "IAudioFlinger::openRecord track_flags_t flags is in/out"
Glenn Kasten [Mon, 5 Aug 2013 22:59:42 +0000 (22:59 +0000)]
Merge "IAudioFlinger::openRecord track_flags_t flags is in/out"

11 years agoMerge "AudioRecord::set and constructor now take flags"
Glenn Kasten [Mon, 5 Aug 2013 21:56:17 +0000 (21:56 +0000)]
Merge "AudioRecord::set and constructor now take flags"

11 years agoMerge "Make AudioRecord and AudioTrack comments more similar"
Glenn Kasten [Mon, 5 Aug 2013 21:50:15 +0000 (21:50 +0000)]
Merge "Make AudioRecord and AudioTrack comments more similar"

11 years agoMerge "Camera3: Provide consumer usage flags to HAL for each stream"
Eino-Ville Talvala [Mon, 5 Aug 2013 21:46:04 +0000 (21:46 +0000)]
Merge "Camera3: Provide consumer usage flags to HAL for each stream"

11 years agoCamera3: Provide consumer usage flags to HAL for each stream
Eino-Ville Talvala [Tue, 30 Jul 2013 21:36:03 +0000 (14:36 -0700)]
Camera3: Provide consumer usage flags to HAL for each stream

At stream configure time, pass on the stream's consumer usage flags
to the HAL, to speed up final hardware configuration.

Bug: 9592202
Change-Id: Ie467be053be36a09e482f5f05cad65df42d66476

11 years agoMerge "AudioRecord callback thread waits for priority boost"
Glenn Kasten [Mon, 5 Aug 2013 19:47:51 +0000 (19:47 +0000)]
Merge "AudioRecord callback thread waits for priority boost"

11 years agoReject unprepared MediaPlayers
Marco Nelissen [Mon, 5 Aug 2013 19:22:43 +0000 (12:22 -0700)]
Reject unprepared MediaPlayers

Don't allow a MediaPlayer that has been reset() or release()d to be
used as the argument to setNextMediaPlayer.

Change-Id: I47da1460ec3742f5b2bd7b79e7998b290032d5a1

11 years agoMerge "Remove default parameters for AudioTrack"
Glenn Kasten [Mon, 5 Aug 2013 14:56:23 +0000 (14:56 +0000)]
Merge "Remove default parameters for AudioTrack"

11 years agoMerge "AudioRecord has no default sample rate"
Glenn Kasten [Mon, 5 Aug 2013 14:41:30 +0000 (14:41 +0000)]
Merge "AudioRecord has no default sample rate"

11 years agoMerge "Recording of non-linear formats is not supported"
Glenn Kasten [Mon, 5 Aug 2013 14:22:12 +0000 (14:22 +0000)]
Merge "Recording of non-linear formats is not supported"

11 years agoAdds a drm resource busy error, removes some deprecated errors
Jeff Tinker [Sat, 3 Aug 2013 06:16:18 +0000 (23:16 -0700)]
Adds a drm resource busy error, removes some deprecated errors

Change-Id: Id719fb6df9c9d955ac24803082d08f2a4a5bc766
related-to-bug: 9695816

11 years agoAudioRecord notification frames
Glenn Kasten [Thu, 1 Aug 2013 14:22:02 +0000 (07:22 -0700)]
AudioRecord notification frames

Change-Id: I76ec536d1504eb9a558178b62bf225aace4b40d1

11 years agoAudioRecord::openRecord_l use flags
Glenn Kasten [Thu, 1 Aug 2013 14:24:34 +0000 (07:24 -0700)]
AudioRecord::openRecord_l use flags

Use the flags to determine input parameters for IAudioFlinger::openRecord.

Change-Id: I98d2726503af75c8830ce80ceaf3b94a755b342f

11 years agoAudioRecord::openRecord_l now take flags
Glenn Kasten [Wed, 31 Jul 2013 23:10:53 +0000 (16:10 -0700)]
AudioRecord::openRecord_l now take flags

The new parameter 'flags' of type audio_input_flags_t will be used for
requesting a fast track, but is currently ignored.

Change-Id: If68dfda8b2d4eaaca42927d721b4630c47f71f3b

11 years agoRecordThread::createRecordTrack_l use flags for fast tracks
Glenn Kasten [Wed, 31 Jul 2013 23:16:02 +0000 (16:16 -0700)]
RecordThread::createRecordTrack_l use flags for fast tracks

Look at client's request for a fast track in the flags parameter,
and check whether the request can be satisfied.

Change-Id: I65ddaeb1b85670fe9066076f638bfed0cda01c0d

11 years agoRecordTrack::createRecordTrack_l flags are in/out
Glenn Kasten [Wed, 31 Jul 2013 23:14:50 +0000 (16:14 -0700)]
RecordTrack::createRecordTrack_l flags are in/out

The flags are currently unused, but will be used for requesting a fast
track.  Making flags in/out will allow reporting back up to client that
the request is denied.

Change-Id: Ifbee57da3632ce130551065a426577fb97b1a68d

11 years agoIAudioFlinger::openRecord track_flags_t flags is in/out
Glenn Kasten [Wed, 31 Jul 2013 23:12:48 +0000 (16:12 -0700)]
IAudioFlinger::openRecord track_flags_t flags is in/out

This will allow AudioFlinger to tell client it is denying a request.

Change-Id: Iff2be3ad6636371bbda9c9899a283c94620c1f06