OSDN Git Service

android-x86/frameworks-av.git
10 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.

10 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

10 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

10 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

10 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

10 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.

10 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

10 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

10 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

10 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

10 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

10 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

10 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"

10 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

10 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

10 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

10 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

10 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

10 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"

10 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"

10 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"

10 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"

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

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

Change-Id: I859bd75eb796b0cb8da30ad947776d3e38f3873f

10 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

10 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>
10 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

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

10 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"

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

10 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"

10 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"

10 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"

10 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"

10 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"

10 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"

10 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"

10 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

10 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"

10 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

10 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"

10 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"

10 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

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

The new optional parameter 'flags' of type audio_input_flags_t will be
used for requesting a fast track.

Change-Id: Ia7e070cb57c833e608352da354fb30dc26df6918

11 years agoAudioRecord callback thread waits for priority boost
Glenn Kasten [Wed, 31 Jul 2013 19:27:26 +0000 (12:27 -0700)]
AudioRecord callback thread waits for priority boost

Change-Id: Iae38fa4ac20a45751566169213a08a15deb0a2f6

11 years agoRecording of non-linear formats is not supported
Glenn Kasten [Fri, 2 Aug 2013 16:02:07 +0000 (09:02 -0700)]
Recording of non-linear formats is not supported

Such formats are already rejected in AudioRecord::set()

Change-Id: I5ba1fd9e4cd659e5226c75aa4f63e52f655e0521

11 years agoCleanup comments for the new control block implementation
Glenn Kasten [Wed, 31 Jul 2013 19:30:12 +0000 (12:30 -0700)]
Cleanup comments for the new control block implementation

There was some obsolete and incomplete text left over
after the new control block code was submitted.
This cleans up all those comments to be accurate again.

Change-Id: Ic52f5869cb723cde25d709514d6deea6aa6f20aa

11 years agoAudioRecord has no default sample rate
Glenn Kasten [Wed, 31 Jul 2013 19:24:36 +0000 (12:24 -0700)]
AudioRecord has no default sample rate

Change-Id: I72feefdd6f3a623fd3669b80d4b264518fdc0929

11 years agoRemove default parameters for AudioTrack
Glenn Kasten [Fri, 2 Aug 2013 22:51:35 +0000 (15:51 -0700)]
Remove default parameters for AudioTrack

The defaults aren't needed; all users must know these values.

Change-Id: I0c1c97cb80bfea8e69a7cfa53ec85a91a8d48bb5

11 years agoMake AudioRecord and AudioTrack comments more similar
Glenn Kasten [Wed, 31 Jul 2013 19:25:00 +0000 (12:25 -0700)]
Make AudioRecord and AudioTrack comments more similar

Change-Id: I122a7cf7bfc162090cb27f37c325db7a23985bc7

11 years agoMerge "Use screen dimensions as default video size"
Andy McFadden [Fri, 2 Aug 2013 21:16:14 +0000 (21:16 +0000)]
Merge "Use screen dimensions as default video size"

11 years agoUse screen dimensions as default video size
Andy McFadden [Fri, 2 Aug 2013 20:58:54 +0000 (13:58 -0700)]
Use screen dimensions as default video size

Instead of 720p, use the screen dimensions as the default video
size.  For example, a phone with a 768x1280 display would be
recorded as a 768x1280 video when in portrait, or a 1280x768
video when in landscape.

If the device is not able to record at that resolution, we
fall back to 720p.

Also, fixed a problem introduced by a buffer timestamp change.

Change-Id: I7230ddb323c669ab07327f26df8d103c192c21d3

11 years agoMerge "fix fallout from binderizing BufferQueues consumer side"
Mathias Agopian [Fri, 2 Aug 2013 20:35:40 +0000 (20:35 +0000)]
Merge "fix fallout from binderizing BufferQueues consumer side"

11 years agoMerge "Report underruns for fast tracks also"
Glenn Kasten [Fri, 2 Aug 2013 16:14:01 +0000 (16:14 +0000)]
Merge "Report underruns for fast tracks also"

11 years agofix fallout from binderizing BufferQueues consumer side
Mathias Agopian [Thu, 1 Aug 2013 03:36:27 +0000 (20:36 -0700)]
fix fallout from binderizing BufferQueues consumer side

Change-Id: I626bac6df4fc3d8478046193f06ecc7ea60dd3a8

11 years agoam 6d4d8790: am b687ff9f: Merge "Fix mismatched delete/new couple"
Glenn Kasten [Thu, 1 Aug 2013 19:47:14 +0000 (12:47 -0700)]
am 6d4d8790: am b687ff9f: Merge "Fix mismatched delete/new couple"

* commit '6d4d879037a495f9a4276a6996d1845594ce9090':
  Fix mismatched delete/new couple

11 years agoam b687ff9f: Merge "Fix mismatched delete/new couple"
Glenn Kasten [Thu, 1 Aug 2013 19:43:55 +0000 (12:43 -0700)]
am b687ff9f: Merge "Fix mismatched delete/new couple"

* commit 'b687ff9f2e02790e8a8e3964cb73e87546cd72dd':
  Fix mismatched delete/new couple

11 years agoMerge "Fix mismatched delete/new couple"
Glenn Kasten [Thu, 1 Aug 2013 19:37:52 +0000 (19:37 +0000)]
Merge "Fix mismatched delete/new couple"

11 years agoMerge "Camera: fix the metadate parcel write issue"
Zhijun He [Wed, 31 Jul 2013 21:17:58 +0000 (21:17 +0000)]
Merge "Camera: fix the metadate parcel write issue"

11 years agoUnregister any handlers still registered on now "dead" ALoopers
Andreas Huber [Wed, 31 Jul 2013 20:04:50 +0000 (13:04 -0700)]
Unregister any handlers still registered on now "dead" ALoopers

upon the death of an ALooper.

Change-Id: I64c0835b8db04486204f3d0fa7173ee53708a116
related-to-bug: 10106648

11 years agoCamera: fix the metadate parcel write issue
Zhijun He [Wed, 31 Jul 2013 16:50:58 +0000 (09:50 -0700)]
Camera: fix the metadate parcel write issue

Also rename the frameId to requestId to make it less confusing.

Change-Id: I14a20b6fcabb86294afb31fc0c56397e185c1373

11 years agoReport underruns for fast tracks also
Glenn Kasten [Wed, 17 Jul 2013 23:05:07 +0000 (16:05 -0700)]
Report underruns for fast tracks also

This fixes a regression that was introduced earlier
by commit 9f80dd223d83d9bb9077fb6baee056cee4eaf7e5
called "New control block for AudioTrack and AudioRecord".
That commit broke underrun reporting for fast tracks.

Also remove Track::mUnderrunCount, which counted the number of underrun
events, and was only used by dumpsys media.audio_flinger.

Now dumpsys media.audio_flinger reports the number of underrun frames,

Isolated underrun-related control block accesses via the proxy, so that
the server is not directly poking around in the control block.

The new proxy APIs are AudioTrackServerProxy::getUnderrunFrames() and
AudioTrackServerProxy::tallyUnderrunFrames().  getUnderrunFrames() returns
a rolling counter for streaming tracks, or zero for static buffer tracks
which never underrun, but do a kind of 'pause' at end of buffer.
tallyUnderrunFrames() increments the counter by a specified number of frames.

Change-Id: Ib31fd73eb17cbb23888ce3af8ff29f471f5bd5a2

11 years agoam b57fb786: am d0ef1ccd: Merge "rtsp handle response line ended with \'\n\'"
Andreas Huber [Wed, 31 Jul 2013 16:01:12 +0000 (09:01 -0700)]
am b57fb786: am d0ef1ccd: Merge "rtsp handle response line ended with \'\n\'"

* commit 'b57fb786a32d4ea78cd8bbf24a65593353d87a88':
  rtsp handle response line ended with '\n'

11 years agoam d0ef1ccd: Merge "rtsp handle response line ended with \'\n\'"
Andreas Huber [Wed, 31 Jul 2013 15:52:41 +0000 (08:52 -0700)]
am d0ef1ccd: Merge "rtsp handle response line ended with \'\n\'"

* commit 'd0ef1ccd987e650e025b840e72f91770d03a5110':
  rtsp handle response line ended with '\n'

11 years agoMerge "rtsp handle response line ended with '\n'"
Andreas Huber [Wed, 31 Jul 2013 15:43:56 +0000 (15:43 +0000)]
Merge "rtsp handle response line ended with '\n'"

11 years agortsp handle response line ended with '\n'
Yajun Zeng [Tue, 14 May 2013 02:00:10 +0000 (10:00 +0800)]
rtsp handle response line ended with '\n'

Change-Id: I5bfafd3fa2c95083e833da2846556282eada2b02
Signed-off-by: Yajun Zeng <beanz@marvell.com>
11 years agoMerge "Add resampler comments and fix a typo"
Glenn Kasten [Tue, 30 Jul 2013 22:40:15 +0000 (22:40 +0000)]
Merge "Add resampler comments and fix a typo"

11 years agoAdd resampler comments and fix a typo
Glenn Kasten [Tue, 30 Jul 2013 18:52:39 +0000 (11:52 -0700)]
Add resampler comments and fix a typo

Change-Id: Ie071673875f663de4212eed4a4dff89d51a5a915

11 years agoRemove default channel mask in AudioRecord constructor and set()
Glenn Kasten [Mon, 19 Nov 2012 19:24:51 +0000 (11:24 -0800)]
Remove default channel mask in AudioRecord constructor and set()

Change-Id: I22ad4ba8777842bf6705e79c6ad796fdb9a4104c

11 years agoCamera: Rename new API to camera2, rearrange camera service
Eino-Ville Talvala [Fri, 26 Jul 2013 00:12:35 +0000 (17:12 -0700)]
Camera: Rename new API to camera2, rearrange camera service

 - Support API rename from photography to camera2
 - Reorganize camera service files
   - API support files to api1/, api2/, api_pro/
   - HAL device support files into device{1,2,3}/
   - Common files into common/
   - Camera service remains at top-level

Change-Id: Ie474c12536f543832fba0a2dc936ac4fd39fe6a9

11 years agoMove control block mName to createTrack() output
Glenn Kasten [Fri, 12 Jul 2013 19:59:20 +0000 (12:59 -0700)]
Move control block mName to createTrack() output

This is part of a series of CLs to clean up the shared memory
control block, by removing any fields that don't have to be there.

Change-Id: I6e51003a1293b6800258c31b22cff2eba42162e7

11 years agoRename control block flags to mFlags
Glenn Kasten [Fri, 12 Jul 2013 17:21:18 +0000 (10:21 -0700)]
Rename control block flags to mFlags

Change-Id: I7b6d31e24531954ab1ecdf3ed56c19433700bd89

11 years agoMerge "AudioRecord and HAL input stream must be 16-bit PCM only"
Glenn Kasten [Tue, 30 Jul 2013 16:35:09 +0000 (16:35 +0000)]
Merge "AudioRecord and HAL input stream must be 16-bit PCM only"

11 years agoRename control block server to mServer and add comments
Glenn Kasten [Fri, 12 Jul 2013 16:45:18 +0000 (09:45 -0700)]
Rename control block server to mServer and add comments

Change-Id: Ieabd91acee92d0e84e66fbd358df5282b856306e

11 years agoUse correct type for OutputDescriptor::format
Glenn Kasten [Wed, 17 Jul 2013 00:17:28 +0000 (17:17 -0700)]
Use correct type for OutputDescriptor::format

Change-Id: Ide608ef452d57da29b708180d90470361c123d1d

11 years agoMerge "Fix theoretical race using TrackBase::sampleRate()"
Glenn Kasten [Tue, 30 Jul 2013 14:36:19 +0000 (14:36 +0000)]
Merge "Fix theoretical race using TrackBase::sampleRate()"

11 years agoFix mismatched delete/new couple
Andrei V. FOMITCHEV [Tue, 9 Oct 2012 09:33:25 +0000 (11:33 +0200)]
Fix mismatched delete/new couple

In RecordThread::readInputParameters(), mRsmpInBuffer is allocated
with new[] and should be freed with delete[] instead of delete.

This error has been found by valgrind.

Change-Id: I2f947abb658a21a7d1e61eebb99270cb37d2d147
Signed-off-by: Andrei V. FOMITCHEV <andreix.fomitchev@intel.com>
Signed-off-by: David Wagner <david.wagner@intel.com>
Signed-off-by: Jack Ren <jack.ren@intel.com>
Signed-off-by: Bruce Beare <bruce.j.beare@intel.com>
11 years agoRemove CC_LIKELY and CC_UNLIKELY where not needed
Glenn Kasten [Tue, 30 Jul 2013 00:17:38 +0000 (17:17 -0700)]
Remove CC_LIKELY and CC_UNLIKELY where not needed

Only keep them in performance-sensitive code

Change-Id: Ib257ddd7bc39ce9896997ffae008c524ac743d01

11 years agoRename RecordThread::mInputBytes to the more generic mBufferSize
Glenn Kasten [Thu, 29 Nov 2012 16:48:51 +0000 (08:48 -0800)]
Rename RecordThread::mInputBytes to the more generic mBufferSize

This prepares for using it in PlaybackThreads later

Change-Id: Id90a92aa6372e4b69914b0008cef07296ca5d6a3

11 years agoMove members from ThreadBase to PlaybackThread
Glenn Kasten [Tue, 16 Jul 2013 18:37:48 +0000 (11:37 -0700)]
Move members from ThreadBase to PlaybackThread

Move mNormalFrameCount and frameCountHAL(), since they're not used by
record threads.  Also comment which fields are updated by readParameters().

Change-Id: I5fc0a8a89cc637976f22d49271a5a3e136dab4e1

11 years agoMerge "Fix typo in AwesomePlayer"
Andreas Huber [Mon, 29 Jul 2013 23:10:53 +0000 (23:10 +0000)]
Merge "Fix typo in AwesomePlayer"

11 years agoMerge "Use standard name and type for channel mask"
Glenn Kasten [Mon, 29 Jul 2013 21:13:08 +0000 (21:13 +0000)]
Merge "Use standard name and type for channel mask"

11 years agoMerge "camera2 api: Override default RGBx formats to IMPLEMENTATION_DEFINED"
Igor Murashkin [Mon, 29 Jul 2013 20:54:20 +0000 (20:54 +0000)]
Merge "camera2 api: Override default RGBx formats to IMPLEMENTATION_DEFINED"

11 years agoMerge "Simplify getParameters()"
Glenn Kasten [Mon, 29 Jul 2013 20:24:15 +0000 (20:24 +0000)]
Merge "Simplify getParameters()"

11 years agoMerge "Treat mChannelCount as uint32_t consistently"
Glenn Kasten [Mon, 29 Jul 2013 20:19:23 +0000 (20:19 +0000)]
Merge "Treat mChannelCount as uint32_t consistently"

11 years agoMerge "Fail more gracefully on version mismatch"
Marco Nelissen [Mon, 29 Jul 2013 20:19:01 +0000 (20:19 +0000)]
Merge "Fail more gracefully on version mismatch"

11 years agoTreat mChannelCount as uint32_t consistently
Glenn Kasten [Tue, 16 Jul 2013 18:16:27 +0000 (11:16 -0700)]
Treat mChannelCount as uint32_t consistently

mChannelCount was 8-, 16-, or 32-bits

Change-Id: I2cc2fedf3e33144e5c8bbd9894763282d9217f63

11 years agocamera2 api: Override default RGBx formats to IMPLEMENTATION_DEFINED
Igor Murashkin [Mon, 29 Jul 2013 19:25:59 +0000 (12:25 -0700)]
camera2 api: Override default RGBx formats to IMPLEMENTATION_DEFINED

Bug: 9487482
Change-Id: I09d3b4e41454d350c4bc7b1f8e893c3dad655e73

11 years agoFail more gracefully on version mismatch
Marco Nelissen [Mon, 29 Jul 2013 18:22:27 +0000 (11:22 -0700)]
Fail more gracefully on version mismatch

b/9900647

Change-Id: I9ea508a2685ff8adc780edd5ecec30dd1a9b0997

11 years agoMerge "Move local variable declarations to point of first use"
Glenn Kasten [Mon, 29 Jul 2013 18:18:05 +0000 (18:18 +0000)]
Merge "Move local variable declarations to point of first use"

11 years agoMerge "Declare methods in binder opcode order"
Glenn Kasten [Mon, 29 Jul 2013 17:59:04 +0000 (17:59 +0000)]
Merge "Declare methods in binder opcode order"

11 years agoDeclare methods in binder opcode order
Glenn Kasten [Wed, 17 Jul 2013 17:10:23 +0000 (10:10 -0700)]
Declare methods in binder opcode order

Change-Id: I5f624b7a51ffe1a17a67c056cf984f74e4c56eac

11 years agoMerge "Remove obsolete mBufferEnd"
Glenn Kasten [Mon, 29 Jul 2013 17:37:58 +0000 (17:37 +0000)]
Merge "Remove obsolete mBufferEnd"