OSDN Git Service
Eric Laurent [Tue, 24 Sep 2013 17:57:16 +0000 (10:57 -0700)]
am
a57e2ab5: am
664539d2: audioflinger: fix ro.audio.silent in offload again
* commit '
a57e2ab58a17d3da35593a6c85f65e19249e9ebc':
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
Jean-Michel Trivi [Tue, 24 Sep 2013 17:25:35 +0000 (10:25 -0700)]
am
c7b2f9dc: am
402dfba6: Merge "Add support for level measurements in Visualizer" into klp-dev
* commit '
c7b2f9dce911026fa13854b49aa2bb5353f68499':
Add support for level measurements in Visualizer
Eric Laurent [Tue, 24 Sep 2013 17:25:35 +0000 (10:25 -0700)]
am
3f079bb9: am
1d2536f4: Merge "AudioTrack: fix music resume" into klp-dev
* commit '
3f079bb9ca87c3c1834cc5be0dafc6514938b578':
AudioTrack: fix music resume
Eric Laurent [Tue, 24 Sep 2013 17:25:34 +0000 (10:25 -0700)]
am
3f1d3b97: am
21e54568: fix incoming call audio start time.
* commit '
3f1d3b97f723cf39fe6bde9efd0a3fc9e78028a5':
fix incoming call audio start time.
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
Eric Laurent [Tue, 24 Sep 2013 02:00:13 +0000 (19:00 -0700)]
am
1d2536f4: Merge "AudioTrack: fix music resume" into klp-dev
* commit '
1d2536f460d4678770f423f50cbf6a61a13d4d11':
AudioTrack: fix music resume
Eric Laurent [Tue, 24 Sep 2013 01:59:32 +0000 (18:59 -0700)]
am
21e54568: fix incoming call audio start time.
* commit '
21e5456821e3c107d09b0629adbf23c9e06e7c0b':
fix incoming call audio start time.
Eric Laurent [Tue, 24 Sep 2013 01:24:31 +0000 (18:24 -0700)]
audioflinger: fix ro.audio.silent in offload again
Commit
1abbdb4 was not working 100% of the times because
it is possible that the offload thread loop never sleeps
after being created in which case the property is never read.
The loop now reads the property once when starting.
Bug:
10899309.
Change-Id: I2e2ca332f2d7086e59d65f6010378c4d9618ba9e
Jean-Michel Trivi [Mon, 23 Sep 2013 22:58:33 +0000 (22:58 +0000)]
Merge "Add support for level measurements in Visualizer" into klp-dev
Jean-Michel Trivi [Fri, 20 Sep 2013 18:58:40 +0000 (11:58 -0700)]
Add support for level measurements in Visualizer
New commands to set a measurement mode and perform peak + RMS
measurements.
Bug
8413913
Change-Id: Ib25254065c79d365ebb34f9dc9caa0490e2d300d
Marco Nelissen [Mon, 23 Sep 2013 22:43:09 +0000 (22:43 +0000)]
Merge "Fix aac decoder flush"
Eric Laurent [Mon, 23 Sep 2013 22:15:37 +0000 (22:15 +0000)]
Merge "AudioTrack: fix music resume" into klp-dev
Eric Laurent [Mon, 23 Sep 2013 19:08:05 +0000 (12:08 -0700)]
fix incoming call audio start time.
commit
cec4abb fixing issue
6720482 had a flaw that
would insert commmands at the wrong position in the
audio policy service command thread queue causing other
commands to be delayed more than expected.
A change in track stop timing introduced by commit
bfb1b83
made this issue visible when answering a call.
Bug:
10860012.
Change-Id: Iec769112f14e13d13b64628b808e43663e33771c
Eric Laurent [Mon, 23 Sep 2013 19:29:42 +0000 (12:29 -0700)]
AudioTrack: fix music resume
Fix regression introduced by commit
5a6cd22 in AudioTrack resume:
the callback thread was not signaled if paused internaly.
Bug:
10895013.
Change-Id: Ic356b115132d6fccbcee2d9bb855e92671dc20c5
Glenn Kasten [Fri, 20 Sep 2013 22:11:47 +0000 (15:11 -0700)]
am
e97d1ba9: am
4b701cc0: Merge "Revert "Workaround slow AudioTrack destruction"" into klp-dev
* commit '
e97d1ba9471a71c6b18cee23c98535d553303dac':
Revert "Workaround slow AudioTrack destruction"
Glenn Kasten [Fri, 20 Sep 2013 22:08:27 +0000 (15:08 -0700)]
am
4b701cc0: Merge "Revert "Workaround slow AudioTrack destruction"" into klp-dev
* commit '
4b701cc041d635e5ec56e382043a4c5d01aedd80':
Revert "Workaround slow AudioTrack destruction"
Glenn Kasten [Fri, 20 Sep 2013 22:05:38 +0000 (22:05 +0000)]
Merge "Revert "Workaround slow AudioTrack destruction"" into klp-dev
Glenn Kasten [Fri, 20 Sep 2013 21:06:35 +0000 (14:06 -0700)]
am
f2c643c8: am
3b3cfcfa: Merge "Fix slow AudioTrack and AudioRecord destruction" into klp-dev
* commit '
f2c643c89e405b57c7ce42067b876fb80031e5fa':
Fix slow AudioTrack and AudioRecord destruction
Glenn Kasten [Fri, 20 Sep 2013 21:04:05 +0000 (14:04 -0700)]
am
3b3cfcfa: Merge "Fix slow AudioTrack and AudioRecord destruction" into klp-dev
* commit '
3b3cfcfa272c8e3e16c89765b8817f5a8de0c505':
Fix slow AudioTrack and AudioRecord destruction
Glenn Kasten [Fri, 20 Sep 2013 21:01:35 +0000 (21:01 +0000)]
Merge "Fix slow AudioTrack and AudioRecord destruction" into klp-dev
Glenn Kasten [Fri, 20 Sep 2013 16:20:45 +0000 (09:20 -0700)]
Fix slow AudioTrack and AudioRecord destruction
There were two causes for the slowness:
When thread was paused, it used nanosleep and sleep. These usually
run to completion (except for POSIX signal, which we avoid because it
is low-level). Instead, replace the nanosleep and sleep by condition
timed wait, as that can be made to return early by a condition signal.
Another advantage of condition timed wait is that a condition wait was
already being used at top of thread loop, so it is a simpler change.
The AudioRecord destructor was missing a proxy interrupt that was correct
in AudioTrack. This proxy interrupt is needed in case another thread
is blocked in proxy obtainBuffer.
Does not address the 1 second polling for NS_WHENEVER.
Bug:
10822765
Change-Id: Id665994551e87e4d7da9c7b015f424fd7a0b5560
Eino-Ville Talvala [Fri, 20 Sep 2013 18:22:41 +0000 (11:22 -0700)]
am
af724697: am
291a09c3: Merge "Camera2/3: For still captures, use widest FPS range available." into klp-dev
* commit '
af724697148f5f5ed0026e2ac8ca7f886a96deb7':
Camera2/3: For still captures, use widest FPS range available.
Eric Laurent [Fri, 20 Sep 2013 18:22:17 +0000 (11:22 -0700)]
am
c6bed216: am
a3b97ad2: Merge "audioflinger: implement getTimestamp() for offloaded tracks" into klp-dev
* commit '
c6bed216e3a759a855ac4b9b743fbaed2d5929c1':
audioflinger: implement getTimestamp() for offloaded tracks
Eric Laurent [Fri, 20 Sep 2013 18:20:56 +0000 (11:20 -0700)]
am
ce3e7cb0: am
fbb2609f: Merge "audioflinger: fix lost offload thread resume event" into klp-dev
* commit '
ce3e7cb0bd09e7861d417b7d45c1e5921f10a93f':
audioflinger: fix lost offload thread resume event
Glenn Kasten [Fri, 20 Sep 2013 18:12:06 +0000 (18:12 +0000)]
Revert "Workaround slow AudioTrack destruction"
This reverts commit
8bbbd7da02fac3de40139af19f7cf7a7cc3cc824.
Change-Id: I269a6c445cbce33451b6a9e74223e36e6abbdbe0
Eino-Ville Talvala [Fri, 20 Sep 2013 18:04:24 +0000 (11:04 -0700)]
am
291a09c3: Merge "Camera2/3: For still captures, use widest FPS range available." into klp-dev
* commit '
291a09c3537f2160ec2f1cac16a22212304c2cbf':
Camera2/3: For still captures, use widest FPS range available.
Eino-Ville Talvala [Fri, 20 Sep 2013 17:59:44 +0000 (17:59 +0000)]
Merge "Camera2/3: For still captures, use widest FPS range available." into klp-dev
Eino-Ville Talvala [Fri, 20 Sep 2013 17:12:32 +0000 (10:12 -0700)]
Camera2/3: For still captures, use widest FPS range available.
Instead of using the application-selected preview FPS range for still
captures, select the widest FPS range advertised by the device and use
it for still captures instead, to give the HAL the widest range of exposure
values to choose from possible.
Bug:
10842868
Change-Id: I0e24f5eb713a4f8df116cd5979a84390cc0974d7
Andy McFadden [Fri, 20 Sep 2013 16:58:54 +0000 (09:58 -0700)]
am
0434852b: am
cfca686a: Merge "Rotate fallback size" into klp-dev
* commit '
0434852b7d0a568dd3e4d8854499df1dca6f4830':
Rotate fallback size
Eric Laurent [Fri, 20 Sep 2013 16:58:22 +0000 (09:58 -0700)]
am
a3b97ad2: Merge "audioflinger: implement getTimestamp() for offloaded tracks" into klp-dev
* commit '
a3b97ad288e6808c54c6275eaac1bd53108d8f11':
audioflinger: implement getTimestamp() for offloaded tracks
Eric Laurent [Fri, 20 Sep 2013 16:56:33 +0000 (16:56 +0000)]
Merge "audioflinger: implement getTimestamp() for offloaded tracks" into klp-dev
Eric Laurent [Fri, 20 Sep 2013 16:36:34 +0000 (09:36 -0700)]
audioflinger: implement getTimestamp() for offloaded tracks
Bug:
9587132.
Change-Id: Ie9d5f4cca96306d08bc9a2dbd6edd8953096702d
Marco Nelissen [Fri, 20 Sep 2013 14:18:21 +0000 (07:18 -0700)]
Fix aac decoder flush
b/
8543366
Change-Id: I746ffed6289486b802a2292bfc492ea6c780ed0b
Eric Laurent [Fri, 20 Sep 2013 00:50:07 +0000 (17:50 -0700)]
am
fbb2609f: Merge "audioflinger: fix lost offload thread resume event" into klp-dev
* commit '
fbb2609f132f23a983d376dec9ae6bfebfcacc4c':
audioflinger: fix lost offload thread resume event
Eric Laurent [Fri, 20 Sep 2013 00:48:39 +0000 (00:48 +0000)]
Merge "audioflinger: fix lost offload thread resume event" into klp-dev
Eric Laurent [Thu, 19 Sep 2013 21:37:46 +0000 (14:37 -0700)]
audioflinger: fix lost offload thread resume event
It was possible that a resume request signaled by addTrack_l()
while waiting for an async write callback is lost. This is because
mSignalPending was not set and waitingAsyncCallback_l() would pause the
thread loop before executing prepareTracks_l().
The fix consists in using signal_l() method to wake the thread
loop o that mSignalPending is set.
Also make sure that sleepTime is reset to 0 when resuming to make sure
that we write any remaining bytes to the HAL.
Bug:
10810347.
Change-Id: If9a3b22cc3b9e6eb384a56c48c40e6258d0896ad
Andy McFadden [Thu, 19 Sep 2013 21:28:07 +0000 (14:28 -0700)]
am
cfca686a: Merge "Rotate fallback size" into klp-dev
* commit '
cfca686ae8e64bda44a370232f3ba367e6e520d1':
Rotate fallback size
Andy McFadden [Thu, 19 Sep 2013 21:23:28 +0000 (21:23 +0000)]
Merge "Rotate fallback size" into klp-dev
Andy McFadden [Thu, 19 Sep 2013 18:08:33 +0000 (11:08 -0700)]
Rotate fallback size
If configuring the encoder for display-size recording fails, we drop
back to 720p. This was done a bit too literally, and didn't look
good in portrait mode. Rotate the fallback size as needed.
Bug
10826876
Change-Id: Id3130471fc1467afa8bf91d75c9d4a49245253c3
Igor Murashkin [Thu, 19 Sep 2013 17:13:31 +0000 (10:13 -0700)]
am
f572b3f1: am
b5bca3ff: Merge "camera2: Tell all streams to ignore global device UI rotation" into klp-dev
* commit '
f572b3f11eb896f444b9e034c10f542911f0e966':
camera2: Tell all streams to ignore global device UI rotation
Igor Murashkin [Thu, 19 Sep 2013 17:11:03 +0000 (10:11 -0700)]
am
b5bca3ff: Merge "camera2: Tell all streams to ignore global device UI rotation" into klp-dev
* commit '
b5bca3ff7784ce95431224482ec42a50261e04b2':
camera2: Tell all streams to ignore global device UI rotation
Igor Murashkin [Thu, 19 Sep 2013 17:09:02 +0000 (17:09 +0000)]
Merge "camera2: Tell all streams to ignore global device UI rotation" into klp-dev
Glenn Kasten [Thu, 19 Sep 2013 16:31:30 +0000 (09:31 -0700)]
am
88e0f302: am
feb6d27b: Merge "Workaround slow AudioTrack destruction" into klp-dev
* commit '
88e0f302bf700a7b4d2b6e6a83838c1793508809':
Workaround slow AudioTrack destruction
Glenn Kasten [Thu, 19 Sep 2013 16:30:09 +0000 (09:30 -0700)]
am
feb6d27b: Merge "Workaround slow AudioTrack destruction" into klp-dev
* commit '
feb6d27bf61cd266cf753215e9cae16b9bc9dbbd':
Workaround slow AudioTrack destruction
Glenn Kasten [Thu, 19 Sep 2013 16:28:23 +0000 (16:28 +0000)]
Merge "Workaround slow AudioTrack destruction" into klp-dev
Eric Laurent [Thu, 19 Sep 2013 15:34:52 +0000 (08:34 -0700)]
am
87fb4f30: am
d1b28d41: audioflniger: fix leaked audiosession references
* commit '
87fb4f30077e7bcf78e65cf25fe95bd58238bad1':
audioflniger: fix leaked audiosession references
Eric Laurent [Thu, 19 Sep 2013 15:33:18 +0000 (08:33 -0700)]
am
d1b28d41: audioflniger: fix leaked audiosession references
* commit '
d1b28d41dbda203ffb420ba2e36cbe736b163ff8':
audioflniger: fix leaked audiosession references
Igor Murashkin [Wed, 18 Sep 2013 00:03:28 +0000 (17:03 -0700)]
camera2: Tell all streams to ignore global device UI rotation
- Also use android.sensor.orientation to set the right transform
flags automatically.
Bug:
10804238
Change-Id: I10caf8331f19e107c461696963cc10f597c91d83
Eric Laurent [Thu, 19 Sep 2013 01:47:13 +0000 (18:47 -0700)]
audioflniger: fix leaked audiosession references
acquireAudioSessionId() should not create session references
if the caller is not listed in the known notification clients.
It happens when the MediaPlayer or AudioTrack is created by the
mediaserver on behalf of a client (e.g CameraService). In this case
releaseAudioSessionId() can be called from a different pid and
the session reference will not be removed.
Also we will not be able to remove the reference if the client
process dies.
Bug:
10606426.
Change-Id: Ibb5e27518daeb484a2e66302e4c6221cbaca5b70
Glenn Kasten [Wed, 18 Sep 2013 21:15:42 +0000 (14:15 -0700)]
Workaround slow AudioTrack destruction
Bug:
10809586
Change-Id: I5f30d4deb1233e8ade8967568e40684ef680c395
Eric Laurent [Wed, 18 Sep 2013 21:26:49 +0000 (14:26 -0700)]
am
bf5e2397: am
5baf2af5: more support for audio effect offload
* commit '
bf5e23979a03da96ce1d63126c480103232f174b':
more support for audio effect offload
Eric Laurent [Wed, 18 Sep 2013 20:59:16 +0000 (13:59 -0700)]
am
5baf2af5: more support for audio effect offload
* commit '
5baf2af52cd186633b7173196c1e4a4cd3435f22':
more support for audio effect offload
Marco Nelissen [Wed, 18 Sep 2013 20:46:12 +0000 (20:46 +0000)]
Merge "Fully reset SkipCutBuffer state in clear()"
Marco Nelissen [Wed, 18 Sep 2013 19:46:59 +0000 (12:46 -0700)]
Fully reset SkipCutBuffer state in clear()
b/
8543366
Change-Id: I1b90d56ba3d672fd12b4ee91fa9ba24c665126ed
Eric Laurent [Fri, 13 Sep 2013 00:37:00 +0000 (17:37 -0700)]
more support for audio effect offload
Offloading of audio effects is now enabled for offloaded
output threads. If an effect not supporting offload is enabled,
the AudioTrack is invalidated so that it can be recreated in PCM
mode.
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: Ib23d3c2d5a652361b0aaec7faee09102f2b18fce
Glenn Kasten [Wed, 18 Sep 2013 18:02:04 +0000 (11:02 -0700)]
am
684e0ae8: am
9a98b6de: Merge "Partial fix for SoundPool not terminating" into klp-dev
* commit '
684e0ae8ac8cfb7c7a9709a7b4fc6caf485dfb8a':
Partial fix for SoundPool not terminating
Glenn Kasten [Wed, 18 Sep 2013 17:59:17 +0000 (10:59 -0700)]
am
9a98b6de: Merge "Partial fix for SoundPool not terminating" into klp-dev
* commit '
9a98b6de791aeb130192df10744f5b35f8b6ef1a':
Partial fix for SoundPool not terminating
Glenn Kasten [Wed, 18 Sep 2013 17:56:05 +0000 (17:56 +0000)]
Merge "Partial fix for SoundPool not terminating" into klp-dev
Lajos Molnar [Wed, 18 Sep 2013 17:36:36 +0000 (10:36 -0700)]
am
ec467110: am
ab6c93b4: Merge "Use changed MediaCodec.PARAMETER_KEY_VIDEO_BITRATE value" into klp-dev
* commit '
ec467110f23ad98630d4fd504d647ac70d78f279':
Use changed MediaCodec.PARAMETER_KEY_VIDEO_BITRATE value
Glenn Kasten [Wed, 18 Sep 2013 17:33:39 +0000 (10:33 -0700)]
Partial fix for SoundPool not terminating
SoundPool was waiting for EVENT_UNDERRUN only to indicate end of clip. In
J, AudioTrack delivered both EVENT_UNDERRUN followed by EVENT_BUFFER_END.
However, as of K, AudioTrack is only delivering EVENT_BUFFER_END (this
lack of EVENT_UNDERRUN is another bug which still needs to be fixed).
The workaround is to also respond to EVENT_BUFFER_END in SoundPool.
Bug:
10787103
Change-Id: Id68a23bddd6dd9df6c49c55138197260d71ca468
Lajos Molnar [Wed, 18 Sep 2013 17:33:55 +0000 (10:33 -0700)]
am
ab6c93b4: Merge "Use changed MediaCodec.PARAMETER_KEY_VIDEO_BITRATE value" into klp-dev
* commit '
ab6c93b4bea96dc4f44a7acfefee1e11a3abda5b':
Use changed MediaCodec.PARAMETER_KEY_VIDEO_BITRATE value
Lajos Molnar [Wed, 18 Sep 2013 17:31:18 +0000 (17:31 +0000)]
Merge "Use changed MediaCodec.PARAMETER_KEY_VIDEO_BITRATE value" into klp-dev
Lajos Molnar [Wed, 18 Sep 2013 02:07:40 +0000 (19:07 -0700)]
Use changed MediaCodec.PARAMETER_KEY_VIDEO_BITRATE value
Change-Id: I157bcafbf705865e66c81517b1eab10c3daa039e
Signed-off-by: Lajos Molnar <lajos@google.com>
Bug:
10461617
Jean-Michel Trivi [Wed, 18 Sep 2013 01:52:48 +0000 (18:52 -0700)]
am
232d05ca: am
6cc3a994: LoudnessEnhancer audio effect implementation
* commit '
232d05ca8b09bb5f0f3094e79001fba992544282':
LoudnessEnhancer audio effect implementation
Jean-Michel Trivi [Wed, 18 Sep 2013 01:49:48 +0000 (18:49 -0700)]
am
6cc3a994: LoudnessEnhancer audio effect implementation
* commit '
6cc3a9948b51193dfdcb0c3527d7f3d1ca38aa3c':
LoudnessEnhancer audio effect implementation
Jean-Michel Trivi [Tue, 10 Sep 2013 16:15:18 +0000 (09:15 -0700)]
LoudnessEnhancer audio effect implementation
Implementation based on DRC effect, controlled by a
target gain.
The target gain is used to amplify the signal at
the input of the DRC, and to compute the knee
of the DRC.
Bug
8413913
Change-Id: I386d64793a9fa3f7218e053d6f0a99f6836c02bd
Glenn Kasten [Tue, 17 Sep 2013 22:07:10 +0000 (15:07 -0700)]
am
11454092: am
18f86140: Merge "Fix underruns when fast track denied due to SRC" into klp-dev
* commit '
11454092e4a94d3c8b4576c981595339abdfac0d':
Fix underruns when fast track denied due to SRC
Glenn Kasten [Tue, 17 Sep 2013 22:04:42 +0000 (15:04 -0700)]
am
18f86140: Merge "Fix underruns when fast track denied due to SRC" into klp-dev
* commit '
18f861404efc054da0a2ea6c582e293940f63bc8':
Fix underruns when fast track denied due to SRC
Glenn Kasten [Tue, 17 Sep 2013 22:03:00 +0000 (22:03 +0000)]
Merge "Fix underruns when fast track denied due to SRC" into klp-dev
Glenn Kasten [Tue, 17 Sep 2013 21:53:11 +0000 (14:53 -0700)]
am
440b5a49: am
fc270954: am
e56f3c96: Merge "strtok stores its values in thread local storage. So it can not guarantee works well when multithread environment. AudioFlinger has multithread. so strtok_r is more safe."
* commit '
440b5a496ac4f10f1221ecb110f67bcd253ef70a':
strtok stores its values in thread local storage. So it can not guarantee works well when multithread environment. AudioFlinger has multithread. so strtok_r is more safe.
Glenn Kasten [Tue, 17 Sep 2013 21:50:42 +0000 (14:50 -0700)]
am
fc270954: am
e56f3c96: Merge "strtok stores its values in thread local storage. So it can not guarantee works well when multithread environment. AudioFlinger has multithread. so strtok_r is more safe."
* commit '
fc270954192ef7e15ac2c88daadd8890d22096e3':
strtok stores its values in thread local storage. So it can not guarantee works well when multithread environment. AudioFlinger has multithread. so strtok_r is more safe.
Glenn Kasten [Tue, 17 Sep 2013 21:47:57 +0000 (14:47 -0700)]
am
e56f3c96: Merge "strtok stores its values in thread local storage. So it can not guarantee works well when multithread environment. AudioFlinger has multithread. so strtok_r is more safe."
* commit '
e56f3c96fa6e7550b67e8b049f999aaa2ada1192':
strtok stores its values in thread local storage. So it can not guarantee works well when multithread environment. AudioFlinger has multithread. so strtok_r is more safe.
Glenn Kasten [Tue, 17 Sep 2013 21:46:05 +0000 (21:46 +0000)]
Merge "strtok stores its values in thread local storage. So it can not guarantee works well when multithread environment. AudioFlinger has multithread. so strtok_r is more safe."
Glenn Kasten [Tue, 17 Sep 2013 01:07:38 +0000 (18:07 -0700)]
Fix underruns when fast track denied due to SRC
OpenSL ES requests a fast track. If sample rate conversion is needed,
the request is denied by server, and a larger client buffer is used
to handle the higher latency of a normal track. However the client
notification period was calculated based on buffer being divided into
2 sub-buffers. That resulted in the notification period being too long.
The server pulls chunks that are smaller than half the total buffer.
So now the client uses 3 sub-buffers when there is SRC.
Also removed the 'defer wake' optimization because it was incorrect.
This optimization attempted to reduce the number of wakeups of client,
when server releaseBuffer knows that another releaseBuffer will be
following. But there is no way for the first releaseBuffer to predict
how soon the second releaseBuffer will occur. In some cases it was
a long time, and the client underran. So now the client is woken up
immediately if the total number of available frames to client is >=
the minimum number the client wants to see (the notification period).
Also fix bug where minimum frame count was not being used in the
calculation of notification period.
Bug:
10342804
Change-Id: I3c246f4e7bc3684a344f2cf08268dc082e338e2a
seunghak.han [Sat, 7 Sep 2013 05:59:43 +0000 (14:59 +0900)]
strtok stores its values in thread local storage.
So it can not guarantee works well when multithread environment.
AudioFlinger has multithread.
so strtok_r is more safe.
Change-Id: I6d77ef9cc49a4478dd856dcdca14e4920ce955c6
Marco Nelissen [Mon, 16 Sep 2013 23:04:21 +0000 (16:04 -0700)]
am
83774965: am
bc910e5c: Merge "Fix hang" into klp-dev
* commit '
83774965fefc5d0315ec41641bdd99cf0a657462':
Fix hang
Marco Nelissen [Mon, 16 Sep 2013 23:01:23 +0000 (16:01 -0700)]
am
bc910e5c: Merge "Fix hang" into klp-dev
* commit '
bc910e5c8d05f24531bd6b11379cf41cc73415ed':
Fix hang
Marco Nelissen [Mon, 16 Sep 2013 22:57:17 +0000 (22:57 +0000)]
Merge "Fix hang" into klp-dev
Eino-Ville Talvala [Mon, 16 Sep 2013 22:50:50 +0000 (15:50 -0700)]
am
0c126a84: am
a099d1f6: Merge "Camera3: Always set a trigger ID for an active trigger" into klp-dev
* commit '
0c126a8471f7a723e000a12995024704f16aead8':
Camera3: Always set a trigger ID for an active trigger
Eino-Ville Talvala [Mon, 16 Sep 2013 22:47:56 +0000 (15:47 -0700)]
am
a099d1f6: Merge "Camera3: Always set a trigger ID for an active trigger" into klp-dev
* commit '
a099d1f6be3fbbb1af4c12b2ab627397f0826982':
Camera3: Always set a trigger ID for an active trigger
Eino-Ville Talvala [Mon, 16 Sep 2013 22:45:56 +0000 (22:45 +0000)]
Merge "Camera3: Always set a trigger ID for an active trigger" into klp-dev
Marco Nelissen [Mon, 16 Sep 2013 20:30:01 +0000 (13:30 -0700)]
Fix hang
Specify that the surface is controlled by the app, to avoid a hang.
b/
10531761
Change-Id: Idccc2c73aa3d368d8e7fbdc071ce36e2382efea4
Zhijun He [Mon, 16 Sep 2013 18:30:35 +0000 (11:30 -0700)]
am
f0a6b8bc: am
72a2f171: Merge "Camera: setCallBackWindow only if callback surface is used" into klp-dev
* commit '
f0a6b8bcb22a742318c46d51b4343a64acf94900':
Camera: setCallBackWindow only if callback surface is used
Zhijun He [Mon, 16 Sep 2013 18:28:02 +0000 (11:28 -0700)]
am
72a2f171: Merge "Camera: setCallBackWindow only if callback surface is used" into klp-dev
* commit '
72a2f171ddf5c1eab7d6ccd47ac2b7ac4fc9c087':
Camera: setCallBackWindow only if callback surface is used
Zhijun He [Mon, 16 Sep 2013 18:23:35 +0000 (18:23 +0000)]
Merge "Camera: setCallBackWindow only if callback surface is used" into klp-dev
Chong Zhang [Mon, 16 Sep 2013 18:20:11 +0000 (11:20 -0700)]
am
fcb7a247: am
a5652e9c: Merge "Add FLAG_CAN_SEEK_BACKWARD and FLAG_CAN_SEEK_FORWARD see flags" into klp-dev
* commit '
fcb7a2472bcb3c7985888acdb9905ba4e21c6bfe':
Add FLAG_CAN_SEEK_BACKWARD and FLAG_CAN_SEEK_FORWARD see flags
Chong Zhang [Mon, 16 Sep 2013 18:17:37 +0000 (11:17 -0700)]
am
a5652e9c: Merge "Add FLAG_CAN_SEEK_BACKWARD and FLAG_CAN_SEEK_FORWARD see flags" into klp-dev
* commit '
a5652e9cdaf6624e03a7e84c40590a42e44c5217':
Add FLAG_CAN_SEEK_BACKWARD and FLAG_CAN_SEEK_FORWARD see flags
Chong Zhang [Mon, 16 Sep 2013 18:14:01 +0000 (18:14 +0000)]
Merge "Add FLAG_CAN_SEEK_BACKWARD and FLAG_CAN_SEEK_FORWARD see flags" into klp-dev
Zhijun He [Mon, 16 Sep 2013 17:55:26 +0000 (10:55 -0700)]
am
92db0c12: am
66281c3a: Camera: Don\'t overwrite the error status
* commit '
92db0c12caec61485851c87faee9a78245ae1fde':
Camera: Don't overwrite the error status
Zhijun He [Mon, 16 Sep 2013 17:51:50 +0000 (10:51 -0700)]
am
66281c3a: Camera: Don\'t overwrite the error status
* commit '
66281c3a5d7eea486ddc6ad30088ba92956fd4fd':
Camera: Don't overwrite the error status
Eino-Ville Talvala [Fri, 13 Sep 2013 18:39:24 +0000 (11:39 -0700)]
Camera3: Always set a trigger ID for an active trigger
This is to work around HAL implementations that expect to see an
ID for every trigger.
Use a dummy trigger ID of 1, since 0 has special meaning for older
HALs.
Bug:
10720617
Change-Id: I9cb1b8dbcb113cb9e737e5adb04032fd61a54c12
Zhijun He [Mon, 16 Sep 2013 04:06:10 +0000 (21:06 -0700)]
Camera: setCallBackWindow only if callback surface is used
Calling setCallBackWindow without checking the previewCallbackSurface could make
the stream to be deleted during callback stream operation, which is bad because
the preview is still active and the delete fails.
Bug:
10730496
Change-Id: I8addac25e5aa7901bf200d730c749bee2c088090
Zhijun He [Sat, 14 Sep 2013 00:59:59 +0000 (17:59 -0700)]
Camera: Don't overwrite the error status
Bug:
10749544
Change-Id: I6096effde03e18ee1b8c63cf3b36dce0344054c5
Glenn Kasten [Sat, 14 Sep 2013 00:31:50 +0000 (17:31 -0700)]
am
617e2a1c: am
d176ec1e: Merge "Fix SoundPool.play() looping" into klp-dev
* commit '
617e2a1c9fe56e4f92146a1ec8b14a7726ff7c31':
Fix SoundPool.play() looping
Eric Laurent [Sat, 14 Sep 2013 00:31:49 +0000 (17:31 -0700)]
am
029838a9: am
7f91e5e0: Merge "audioflinger: fix ro.audio.silent in offload mode" into klp-dev
* commit '
029838a98c9377299ef3341e21e9378fd5562ab6':
audioflinger: fix ro.audio.silent in offload mode
Zhijun He [Sat, 14 Sep 2013 00:31:48 +0000 (17:31 -0700)]
am
571634ff: am
d4dadf23: Merge "Camera: Limit supported preview sizes" into klp-dev
* commit '
571634ff67db466327a32397c876d9365ff27698':
Camera: Limit supported preview sizes
Eric Laurent [Sat, 14 Sep 2013 00:31:47 +0000 (17:31 -0700)]
am
c91eb605: am
972a173d: audioflinger: longer offload thread standby delay
* commit '
c91eb6059a6af8b84c48e0ce727b01829f9cd789':
audioflinger: longer offload thread standby delay
Glenn Kasten [Sat, 14 Sep 2013 00:16:15 +0000 (17:16 -0700)]
am
d176ec1e: Merge "Fix SoundPool.play() looping" into klp-dev
* commit '
d176ec1e371a686c58385692a28da677e398c302':
Fix SoundPool.play() looping
Eric Laurent [Sat, 14 Sep 2013 00:16:14 +0000 (17:16 -0700)]
am
7f91e5e0: Merge "audioflinger: fix ro.audio.silent in offload mode" into klp-dev
* commit '
7f91e5e09cf3bd8068894b2e54cbdaac70bf53a0':
audioflinger: fix ro.audio.silent in offload mode