• Home
  • History
  • Annotate
  • only in /frameworks/av/media/libnbaio/
History log of /frameworks/av/media/libnbaio/
Revision Date Author Comments (<<< Hide modified files) (Show modified files >>>)
0f6a0435713c435e1aaeacbfd9ce7abb6a5b19a9 19-Jun-2014 Mark Salyzyn <salyzyn@google.com> libnbaio: 64-bit compile warnings

Change-Id: I9517c32193031dcc7af7b2104e985d66805b84aa
onoPipe.cpp
BAIO.cpp
87cebadd48710e42474756fc3513df678de045ce 22-May-2014 Elliott Hughes <enh@google.com> resolved conflicts for merge of f285c91e to master

Change-Id: I4c995e297d09c0854a42142cc57dce8b771acf65
8b5f642eb2364ea7fe46a5b3af51b48b58f12183 22-May-2014 Elliott Hughes <enh@google.com> Move frameworks/av from fdprintf to POSIX dprintf.

Bug: 11156955
Change-Id: Ia98cd16b4c1f7be87cf060b7456de4f40896bacb
BLog.cpp
e541269be94f3a1072932d51537905b120ef4733 16-May-2014 Andy Hung <hunga@google.com> Use new channel count functions for audio masks

Change-Id: Ia658ab4b6320d19fdb50f123c930918724ff0ef3
Signed-off-by: Andy Hung <hunga@google.com>
udioStreamInSource.cpp
udioStreamOutSink.cpp
5e4c4f12337ff4d7ceb105bcd441bb7aea6ab070 09-May-2014 Glenn Kasten <gkasten@google.com> Fix bit rot in AudioStreamInSource

It obviously had not been compiled in a while.

Change-Id: If514f474808e557a67a671c3b833572ad4a88338
udioStreamInSource.cpp
c26d923712a59e669d18191d93fbe3696789d592 09-May-2014 Glenn Kasten <gkasten@google.com> Allow placement of Pipe buffer to be specified

Change-Id: I2f6b68089ecfe85cd975d29ad0d0afd13c487002
ipe.cpp
d1adad7acdff96f6518935214d93a655cc447570 01-May-2014 Glenn Kasten <gkasten@google.com> resolved conflicts for merge of 0d79b935 to master

Change-Id: If6de8c1b1d7707918e2a60ea8583749e0127edb8
95d287db3aa5c93533d8e4a723e24f33ea29ffa0 28-Apr-2014 Glenn Kasten <gkasten@android.com> Fix format warnings

Change-Id: Id7aded4287cc8d5387a20389d3ef6220d67d1d88
BLog.cpp
92dfd8e67e099577d07eaeb28aad533fd5514d8a 11-Jul-2013 Glenn Kasten <gkasten@google.com> Add private method NBLog::Reader::dumpLine()

This allows us to abstract out fdprintf vs ALOGI
so that callers don't need an 'if' at every location.

Change-Id: I4c68185fc19f32caeaed93347e6b7d09b8d4c4d8
BLog.cpp
3f35eb55f0e2bc5a4dda7f58ed52654403a87efa 21-Nov-2013 Glenn Kasten <gkasten@google.com> Fix log spam when MonoPipe is unable to get local frequency

Local frequency does not change, so only ask for it the first time a
MonoPipe is constructed in a given client process. Thereafter use a
previously cached value. Likewise, if the local frequency is unavailable,
only log this the first time.

Change-Id: Ib1fc7251c3832e02fe03811db39a87e500f1df50
onoPipe.cpp
55e599daff7712142095f546b7e5bf2dcda807a8 06-Mar-2014 Glenn Kasten <gkasten@google.com> Miscellaneous cleanup for NBAIO

Finish removing Format_frameBitShift
Fix type of mFrameSize
Add FIXME

Change-Id: I02039b97cb93af1a180e88f6575210bd752faf20
BAIO.cpp
f69f9869514730aebe5724c461768507084dfff7 07-Mar-2014 Glenn Kasten <gkasten@google.com> NBAIO::Format_from_SR_C requires audio_format_t parameter

Change-Id: I4b65f6ed2f6ca3608b3a5f88f52a93af0b9b1f4a
udioStreamInSource.cpp
udioStreamOutSink.cpp
d42bc56e5883274edf1f0b45cad5c324eceff9b8 06-Mar-2014 Glenn Kasten <gkasten@google.com> Remove checks for specific sample rates and channel counts

Change-Id: Idadfe7c11dc831e82f95015f02dd9b9861b401c8
BAIO.cpp
43d9b8706b3916ee0f1d745a2832f792c3406ca8 06-Mar-2014 Glenn Kasten <gkasten@google.com> Remove restriction for HAL streams of AUDIO_FORMAT_PCM_16_BIT

Change-Id: I6b89a3ac4b77b9a5a84e3b623987186c3d2db89d
udioStreamInSource.cpp
udioStreamOutSink.cpp
c326e1c3d122917462f1cda4f03d9c639ad92902 06-Mar-2014 Glenn Kasten <gkasten@google.com> Remove Format_frameBitShift()

Change-Id: Iae2e80a7330c5dd0f70a263051aa44c23cfe3541
udioStreamInSource.cpp
udioStreamOutSink.cpp
BAIO.cpp
ourceAudioBufferProvider.cpp
983f0578ccd2928af40c9689f6fe90110d02b92e 06-Mar-2014 Glenn Kasten <gkasten@google.com> Re-implement Format_frameSize(), to support non-power-of-2

Change-Id: I671bd4f03ce70de685770fd7992e2e023133c9b4
BAIO.cpp
2b7b910f4b417ab3930379298f538d0dfc857e88 06-Mar-2014 Glenn Kasten <gkasten@google.com> Split mPacked into 4 separate fields

Change-Id: I940324dce9b51fd8d7e2e362e12ad74b70e658dd
BAIO.cpp
f95a3c4122d67273d930c7d83c3df99f136603ed 06-Mar-2014 Glenn Kasten <gkasten@google.com> Add format parameter to Format_from_SR_C

Change-Id: I891138b7754342fe2a4f02de30ee616dbd078474
BAIO.cpp
4d693d6b8cc1283f92f5301daf19a07abc772a2b 06-Mar-2014 Glenn Kasten <gkasten@google.com> Use mFrameSize instead of mBitShift

Change-Id: Idac335ae70cc9300bb3325839fe8ef1e9e097245
udioBufferProviderSource.cpp
udioStreamInSource.cpp
udioStreamOutSink.cpp
onoPipe.cpp
onoPipeReader.cpp
ipe.cpp
ipeReader.cpp
ourceAudioBufferProvider.cpp
ac3e9db88ddb1f24bc6c8fb744a37dfdeec332bb 06-Mar-2014 Glenn Kasten <gkasten@google.com> Add mFrameSize but do not remove mFrameBitShift yet

Change-Id: Icb1edefeb6a0e659503f6b7a92c9d15784df9865
udioStreamInSource.cpp
udioStreamOutSink.cpp
ourceAudioBufferProvider.cpp
3e8027a04c20a4b7028f1615538b36219386c9e5 15-Oct-2013 Glenn Kasten <gkasten@google.com> Move StateQueueInstantiations to libinstantssq

This removes a circular dependency between libmedia and libnbaio

Change-Id: I3692cbbe2b76028a953b36606b62cdda70c8c26f
ndroid.mk
c02c96161dde9d6ca7b408cf08fcf10bd8e61a54 15-Oct-2013 Glenn Kasten <gkasten@google.com> Fix bug with not reporting lost bytes

Change-Id: I431d989dbd115b43822e9e48fd4c2b8e6322cfe3
BLog.cpp
4e01ef6b2f6d288b9aa83b5817adad02cecc429f 11-Jul-2013 Glenn Kasten <gkasten@google.com> Add private method NBLog::Reader::dumpLine()

This allows us to abstract out fdprintf vs ALOGI
so that callers don't need an 'if' at every location.

Change-Id: I4c68185fc19f32caeaed93347e6b7d09b8d4c4d8
BLog.cpp
1d6fa7af1288b550faabe4ec2cf98684236723db 11-Feb-2014 Narayan Kamath <narayan@google.com> resolved conflicts for merge of 566be7c3 to master

Change-Id: I7b1cc71057b2bd4f771e7bcf508a8c3abd6017ce
377b2ec9a2885f9b6405b07ba900a9e3f4349c38 03-Feb-2014 Kévin PETIT <kevin.petit@arm.com> Make frameworks/av 64-bit compatible

Contains the necessary changes to make frameworks/av build and work
on a 64-bit machine.

Signed-off-by: Craig Barber <craig.barber@arm.com>
Signed-off-by: Kévin PETIT <kevin.petit@arm.com>
Signed-off-by: Ashok Bhat <ashok.bhat@arm.com>
Signed-off-by: Marcus Oakland <marcus.oakland@arm.com>

Change-Id: I725feaae50ed8eee25ca2c947cf15aee1f395c43
BLog.cpp
c99144dd2766c499701a7bd7db2d9d8697127186 07-Feb-2014 Glenn Kasten <gkasten@google.com> Merge "Change Format_frameBitShift() API for non-power-of-2 sizes"
ddc0630dd80847dad5253bb285a16e3ed9cc0320 07-Feb-2014 Glenn Kasten <gkasten@google.com> Merge "Add FIXMEs about audio_format_t assumption"
c7a38829841b764f509e6a688a507b8c0da82c2e 07-Feb-2014 Glenn Kasten <gkasten@google.com> Merge "Change NBAIO_Format from typedef to struct"
a793625031a3e326a261a0843598c35a5784bbde 07-Feb-2014 Glenn Kasten <gkasten@google.com> Merge "Use Format_isValid() and Format_isEqual() instead of direct comparison"
19f420ea68424a608e982d39ab76676a05337685 07-Feb-2014 Glenn Kasten <gkasten@google.com> Merge "Add Format_isValid() and Format_isEqual() to NBAIO"
2a16afb8dc056877f34124ba5befe75171de930f 05-Feb-2014 Glenn Kasten <gkasten@google.com> Merge "Fix unused parameter warnings in audio"
4d7b3f876b21997680ae32a340d746ed1cae6ab1 31-Jan-2014 Glenn Kasten <gkasten@google.com> Change Format_frameBitShift() API for non-power-of-2 sizes

Change-Id: Ie39ff51ab8c403ca9d9898396297efdaa3193588
BAIO.cpp
1ec712f180072a7eb2131be09862921ae62dc2b4 31-Jan-2014 Glenn Kasten <gkasten@google.com> Add FIXMEs about audio_format_t assumption

Change-Id: I0d38241b61f70013573f4a0b9306547afe5f38ad
BAIO.cpp
c4b8b32dec91a11a83d0a7ab49747606d16d39a5 31-Jan-2014 Glenn Kasten <gkasten@google.com> Change NBAIO_Format from typedef to struct

This will make it easier to support arbitrary sample rates,
channel counts, and sample formats in NBAIO.

Change-Id: I5eda412648b094358f5eefc38300e9ec8a734cd3
BAIO.cpp
6e0d67d7b496ce17c0970a4ffd3a6f808860949c 31-Jan-2014 Glenn Kasten <gkasten@google.com> Use Format_isValid() and Format_isEqual() instead of direct comparison

Change-Id: Ie87607aa514976947540a77775e6425c4e56e7d9
udioBufferProviderSource.cpp
udioStreamInSource.cpp
udioStreamOutSink.cpp
BAIO.cpp
cc1e0e807ee9a9f163a4685cbd6efd6ae55849cf 31-Jan-2014 Glenn Kasten <gkasten@google.com> Add Format_isValid() and Format_isEqual() to NBAIO

This is in preparation for changing the typedef to a struct.

Change-Id: I8eb1c7d98fd12f997641e462359864fdb834abe6
BAIO.cpp
51d53cd993043d9286e12cba884e6ee4d10b5fac 31-Jan-2014 Glenn Kasten <gkasten@google.com> Change Format_Invalid from enum to global const

This is in preparation for changing the typedef to a struct

Change-Id: I36d1fe81d2f974224750f753453753303c224591
BAIO.cpp
0f11b51a57bc9062c4fe8af73747319cedabc5d6 01-Feb-2014 Glenn Kasten <gkasten@google.com> Fix unused parameter warnings in audio

Change-Id: I665ba3358dd9502f0adec70d486e7bf8a2e1b0fe
ipeReader.cpp
72e54af9fcdc4754914fe2bf8de699523538b315 31-Jan-2014 Glenn Kasten <gkasten@google.com> Use const NBAIO_Format& in parameter lists

This is in preparation for changing the typedef to a struct.

Change-Id: I8d73a6b29580c65105afd78f24db7e2f4a1eb872
udioBufferProviderSource.cpp
onoPipe.cpp
BAIO.cpp
ipe.cpp
aaa42e57797db140ead1068dce6340ffd33fa005 11-Jan-2014 Nick Kralevich <nnk@google.com> am 081559cc: am 514ac2ba: am e311b15c: Merge "Fix c++11 narrowing"

* commit '081559cc5afb6c8f2f9847e1de739f66a5a07a6b':
Fix c++11 narrowing
e311b15cf821f65f68af2cdfe01e864cbc9a86ce 11-Jan-2014 Nick Kralevich <nnk@google.com> Merge "Fix c++11 narrowing"
481fb67a595f23c5b7f5be84b06db9b84a41a42f 30-Sep-2013 Glenn Kasten <gkasten@google.com> Add RecordThread media.log and deferred deallocation

This change allows a media.log buffer for RecordThread.

Unlike playback threads which stick around forever, the RecordThread comes
and goes for every capture session. This means that the media.log buffer
for a RecordThread would disappear too, and so was useless. Now when a
thread exits, it's associated media.log buffer is just marked for deferred
deallocation. It is only actually freed when the memory is needed.

Other changes:
- Fix bug in unregistering comparison, it was comparing the wrong pointers
- Increased size of log area so we can log for RecordThread also

Change-Id: If45d4c03a793b86390a0112ec3acc5d41b2e3635
BLog.cpp
3b546caeb0a576c4d7d7f1e8d2fdfed2bb8bdeed 25-Oct-2013 synergydev <synergye@codefi.re> Fix c++11 narrowing

The best fix for these narrowing
violations is to use static casting

As an example, this change would the following for libnaio:
error: non-constant-expression cannot be narrowed from
type 'uint32_t' (aka 'unsigned int') to 'long' in initializer list

const struct timespec req = {0, ns};
^~

Change-Id: I04ed1de4497dc19772194afef3ebf8fe0c8b82bc
onoPipe.cpp
fe346c707f59d763ded93bc3d27b51f0c0408258 30-Aug-2013 Glenn Kasten <gkasten@google.com> Fix miscellanous AudioTrack::getTimestamp() bugs

Check that get_presentation_position is non-NULL before calling.

AudioTrack::getTimestamp not implemented for fast tracks.

Fix typo in Track::getTimestamp().

Fix bugs in AudioTrack::getTimestamp after stop:
- getTimestamp while stopped is not allowed.
- stop, start, getTimestamp now returns the correct value.

Change-Id: Ie8d9dc1f28d8927634e04175a68b147ffc2ea8eb
udioStreamOutSink.cpp
4d0815d694e5a2edb3ce48427de50f55d0f84c0b 29-Aug-2013 Glenn Kasten <gkasten@google.com> Implement MonoPipe::getTimestamp

using SingleStateQueue observer

Change-Id: I7b1928b087f1e676c7b291df6cefa7707301662c
onoPipe.cpp
6466c9e6e6278c740aed77f695f679be9f5db478 23-Aug-2013 Glenn Kasten <gkasten@google.com> Add ExtendedAudioBufferProvider::framesReleased and onTimestamp

and implement them in SourceAudioBufferProvider using the associated NBAIO_Source,
and in Track using the associated AudioTrackServerProxy.

Change-Id: I60dc4adba63fc1dc452ff16caf347e4a7c8242c2
ourceAudioBufferProvider.cpp
894d6be4f9b4721c77a01919ecf03b27cec90cc9 26-Aug-2013 Glenn Kasten <gkasten@google.com> Add NBAIO_Source::onTimestamp()

with dummy default implementation, and implement in MonoPipeReader.
onTimestamp is meant to be called by the corresponding sink when it has
a new timestamp available.

Change-Id: I8a90d24d1061e4a592ce5bd8ee1c9fce6bdd8a84
onoPipeReader.cpp
a07a1c2c91dc7ee6ded319262499f20cd01edcf7 23-Aug-2013 Glenn Kasten <gkasten@google.com> Instantiate SingleStateQueue<AudioTimestamp>

as typedef AudioTimestampSingleStateQueue and use it in MonoPipe.

Change-Id: Idaebb362bd9d0a81a7ed83792ab9369dc37c0e74
ndroid.mk
onoPipe.cpp
767094dd98b01baf21de2ad09c27b3c98776cf73 23-Aug-2013 Glenn Kasten <gkasten@google.com> Add NBAIO_Sink::getTimestamp()

with a real implementation in AudioStreamOutSink
for dummy implementation initially in MonoPipe.

Use in AudioFlinger::PlaybackThread::threadLoop_write()
to keep the input to the timestamp latch up-to-date.

Change-Id: I10ef277991b63bb43d55d6f3df75116ef32246cd
udioStreamOutSink.cpp
onoPipe.cpp
ecba7488c5cceaacef95836b1b476433451e7761 10-Apr-2013 Ying Wang <wangying@google.com> Add liblog

Bug: 8580410
Change-Id: If493d87d60d71be664ad75b140c62acadb75b0d0
ndroid.mk
da0dc0af0effe9fbfb3ce3187c8472fca2baf3c6 10-Apr-2013 Ying Wang <wangying@google.com> Add liblog

Bug: 8580410
Change-Id: If493d87d60d71be664ad75b140c62acadb75b0d0
ndroid.mk
10eb4b33545a58e4b09249c30c100bc7b992250a 14-Jan-2013 Glenn Kasten <gkasten@google.com> Add non-blocking event logger NBLog

Change-Id: I6c136cf3d7f46a8af84c69ecfc199dab394c10dc
ndroid.mk
BLog.cpp
11d8dfcc063425ae7d59229f54b6752fd8987c10 14-Jan-2013 Glenn Kasten <gkasten@google.com> Add non-blocking event logger NBLog

Change-Id: I6c136cf3d7f46a8af84c69ecfc199dab394c10dc
ndroid.mk
BLog.cpp
fb6a5c31c003ee56a04098a8b4930c7178d3e62a 01-Oct-2012 Glenn Kasten <gkasten@google.com> Add NBAIO support for more sample rates

This will be used for audio capture but it is not scalable,
and we need a better approach in the long term.

Change-Id: I8b12f6b64a3fd8e8a8c425c82574260fe8ffbed6
BAIO.cpp
b64497eb8724c4c372fffdbf3ee30543432953c5 01-Oct-2012 Glenn Kasten <gkasten@google.com> Add NBAIO support for more sample rates

This will be used for audio capture but it is not scalable,
and we need a better approach in the long term.

Change-Id: I8b12f6b64a3fd8e8a8c425c82574260fe8ffbed6
BAIO.cpp
9bb6e65def86afb36a03643c50456e646cdf98a8 28-Sep-2012 Glenn Kasten <gkasten@google.com> Enable write side of MonoPipe to be shutdown

Bug: 7253033
Change-Id: Iea8390763b59ffa7a8e2a6b77dd04ea23442698f
onoPipe.cpp
003d9f71937070791418bf7efc1f7fe1e4c6b821 28-Sep-2012 Glenn Kasten <gkasten@google.com> Enable write side of MonoPipe to be shutdown

Bug: 7253033
Change-Id: Iea8390763b59ffa7a8e2a6b77dd04ea23442698f
onoPipe.cpp
99ae06be60d7ccd753a0808191583225e5533f3a 24-Sep-2012 Glenn Kasten <gkasten@google.com> Check clock_gettime(CLOCK_MONOTONIC) for failure

Bug: 7100774
Change-Id: I15a84a19bb6d6ef1d9dac4beaa03587638196404
onoPipe.cpp
80b3273cea8660fe8a5868d024d2788a1e083ffc 24-Sep-2012 Glenn Kasten <gkasten@google.com> Check clock_gettime(CLOCK_MONOTONIC) for failure

Bug: 7100774
Change-Id: I15a84a19bb6d6ef1d9dac4beaa03587638196404
onoPipe.cpp
5e33395f4e1e15061bf0f09c4960a236563ecaa2 29-Aug-2012 Glenn Kasten <gkasten@google.com> Documentation on pipes

Change-Id: I3de496c7db026c50dcb6bc577741bb65d08e7c9d
EADME.txt
ba8da29bb615bd507c4d182f8f7b3b6743edd1c8 29-Aug-2012 Glenn Kasten <gkasten@google.com> Documentation on pipes

Change-Id: I3de496c7db026c50dcb6bc577741bb65d08e7c9d
EADME.txt
fc7992bd8220824f1404c0c54ac516d9e28b58c2 29-Aug-2012 Glenn Kasten <gkasten@google.com> Move libnbaio out of AudioFlinger

libnbaio is now a separate shared library from AudioFlinger, rather
than a static library used only by AudioFlinger.

AudioBufferProvider interface is now also independent of AudioFlinger,
moved to include/media/

Change-Id: I9bb62ffbc38d42a38b0af76e66da5e9ab1e0e21b
ndroid.mk
udioBufferProviderSource.cpp
udioStreamInSource.cpp
udioStreamOutSink.cpp
ibsndfileSink.cpp
ibsndfileSource.cpp
onoPipe.cpp
onoPipeReader.cpp
BAIO.cpp
ipe.cpp
ipeReader.cpp
ourceAudioBufferProvider.cpp
oundup.c
2dd4bdd715f586d4d30cf90cc6fc2bbfbce60fe0 29-Aug-2012 Glenn Kasten <gkasten@google.com> Move libnbaio out of AudioFlinger

libnbaio is now a separate shared library from AudioFlinger, rather
than a static library used only by AudioFlinger.

AudioBufferProvider interface is now also independent of AudioFlinger,
moved to include/media/

Change-Id: I9bb62ffbc38d42a38b0af76e66da5e9ab1e0e21b
ndroid.mk
udioBufferProviderSource.cpp
udioStreamInSource.cpp
udioStreamOutSink.cpp
ibsndfileSink.cpp
ibsndfileSource.cpp
onoPipe.cpp
onoPipeReader.cpp
BAIO.cpp
ipe.cpp
ipeReader.cpp
ourceAudioBufferProvider.cpp
oundup.c