summaryrefslogtreecommitdiffstats
path: root/media/libnbaio
Commit message (Collapse)AuthorAgeFilesLines
* Use new channel count functions for audio masksAndy Hung2014-05-162-2/+4
| | | | | Change-Id: Ia658ab4b6320d19fdb50f123c930918724ff0ef3 Signed-off-by: Andy Hung <hunga@google.com>
* Fix bit rot in AudioStreamInSourceGlenn Kasten2014-05-091-1/+1
| | | | | | It obviously had not been compiled in a while. Change-Id: If514f474808e557a67a671c3b833572ad4a88338
* Allow placement of Pipe buffer to be specifiedGlenn Kasten2014-05-091-4/+7
| | | | Change-Id: I2f6b68089ecfe85cd975d29ad0d0afd13c487002
* resolved conflicts for merge of 0d79b935 to masterGlenn Kasten2014-04-301-3/+3
|\ | | | | | | Change-Id: If6de8c1b1d7707918e2a60ea8583749e0127edb8
| * Fix format warningsGlenn Kasten2014-04-281-3/+3
| | | | | | | | Change-Id: Id7aded4287cc8d5387a20389d3ef6220d67d1d88
| * Add private method NBLog::Reader::dumpLine()Glenn Kasten2014-04-281-37/+43
| | | | | | | | | | | | | | This allows us to abstract out fdprintf vs ALOGI so that callers don't need an 'if' at every location. Change-Id: I4c68185fc19f32caeaed93347e6b7d09b8d4c4d8
* | Fix log spam when MonoPipe is unable to get local frequencyGlenn Kasten2014-03-251-6/+22
| | | | | | | | | | | | | | | | | | 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
* | Miscellaneous cleanup for NBAIOGlenn Kasten2014-03-071-10/+0
| | | | | | | | | | | | | | | | Finish removing Format_frameBitShift Fix type of mFrameSize Add FIXME Change-Id: I02039b97cb93af1a180e88f6575210bd752faf20
* | NBAIO::Format_from_SR_C requires audio_format_t parameterGlenn Kasten2014-03-072-2/+2
| | | | | | | | Change-Id: I4b65f6ed2f6ca3608b3a5f88f52a93af0b9b1f4a
* | Remove checks for specific sample rates and channel countsGlenn Kasten2014-03-061-18/+0
| | | | | | | | Change-Id: Idadfe7c11dc831e82f95015f02dd9b9861b401c8
* | Remove restriction for HAL streams of AUDIO_FORMAT_PCM_16_BITGlenn Kasten2014-03-062-14/+10
| | | | | | | | Change-Id: I6b89a3ac4b77b9a5a84e3b623987186c3d2db89d
* | Remove Format_frameBitShift()Glenn Kasten2014-03-064-3/+2
| | | | | | | | Change-Id: Iae2e80a7330c5dd0f70a263051aa44c23cfe3541
* | Re-implement Format_frameSize(), to support non-power-of-2Glenn Kasten2014-03-061-2/+1
| | | | | | | | Change-Id: I671bd4f03ce70de685770fd7992e2e023133c9b4
* | Split mPacked into 4 separate fieldsGlenn Kasten2014-03-061-70/+15
| | | | | | | | Change-Id: I940324dce9b51fd8d7e2e362e12ad74b70e658dd
* | Add format parameter to Format_from_SR_CGlenn Kasten2014-03-061-1/+2
| | | | | | | | Change-Id: I891138b7754342fe2a4f02de30ee616dbd078474
* | Use mFrameSize instead of mBitShiftGlenn Kasten2014-03-068-18/+18
| | | | | | | | Change-Id: Idac335ae70cc9300bb3325839fe8ef1e9e097245
* | Add mFrameSize but do not remove mFrameBitShift yetGlenn Kasten2014-03-063-1/+4
| | | | | | | | Change-Id: Icb1edefeb6a0e659503f6b7a92c9d15784df9865
* | Move StateQueueInstantiations to libinstantssqGlenn Kasten2014-02-181-4/+3
| | | | | | | | | | | | This removes a circular dependency between libmedia and libnbaio Change-Id: I3692cbbe2b76028a953b36606b62cdda70c8c26f
* | Fix bug with not reporting lost bytesGlenn Kasten2014-02-181-2/+2
| | | | | | | | Change-Id: I431d989dbd115b43822e9e48fd4c2b8e6322cfe3
* | Add private method NBLog::Reader::dumpLine()Glenn Kasten2014-02-181-37/+43
| | | | | | | | | | | | | | This allows us to abstract out fdprintf vs ALOGI so that callers don't need an 'if' at every location. Change-Id: I4c68185fc19f32caeaed93347e6b7d09b8d4c4d8
* | resolved conflicts for merge of 566be7c3 to masterNarayan Kamath2014-02-111-1/+1
|\ \ | |/ | | | | Change-Id: I7b1cc71057b2bd4f771e7bcf508a8c3abd6017ce
| * Make frameworks/av 64-bit compatibleKévin PETIT2014-02-111-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | 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
* | Merge "Change Format_frameBitShift() API for non-power-of-2 sizes"Glenn Kasten2014-02-071-1/+2
|\ \
| * | Change Format_frameBitShift() API for non-power-of-2 sizesGlenn Kasten2014-02-031-1/+2
| | | | | | | | | | | | Change-Id: Ie39ff51ab8c403ca9d9898396297efdaa3193588
* | | Merge "Add FIXMEs about audio_format_t assumption"Glenn Kasten2014-02-071-0/+2
|\ \ \ | |/ /
| * | Add FIXMEs about audio_format_t assumptionGlenn Kasten2014-02-031-0/+2
| | | | | | | | | | | | Change-Id: I0d38241b61f70013573f4a0b9306547afe5f38ad
* | | Merge "Change NBAIO_Format from typedef to struct"Glenn Kasten2014-02-071-6/+8
|\ \ \ | |/ /
| * | Change NBAIO_Format from typedef to structGlenn Kasten2014-02-031-6/+8
| | | | | | | | | | | | | | | | | | | | | This will make it easier to support arbitrary sample rates, channel counts, and sample formats in NBAIO. Change-Id: I5eda412648b094358f5eefc38300e9ec8a734cd3
* | | Merge "Use Format_isValid() and Format_isEqual() instead of direct comparison"Glenn Kasten2014-02-074-9/+9
|\ \ \ | |/ /
| * | Use Format_isValid() and Format_isEqual() instead of direct comparisonGlenn Kasten2014-02-034-9/+9
| | | | | | | | | | | | Change-Id: Ie87607aa514976947540a77775e6425c4e56e7d9
* | | Merge "Add Format_isValid() and Format_isEqual() to NBAIO"Glenn Kasten2014-02-071-0/+10
|\ \ \ | |/ /
| * | Add Format_isValid() and Format_isEqual() to NBAIOGlenn Kasten2014-02-031-0/+10
| | | | | | | | | | | | | | | | | | This is in preparation for changing the typedef to a struct. Change-Id: I8eb1c7d98fd12f997641e462359864fdb834abe6
* | | Merge "Fix unused parameter warnings in audio"Glenn Kasten2014-02-041-1/+1
|\ \ \ | |/ / |/| |
| * | Fix unused parameter warnings in audioGlenn Kasten2014-02-031-1/+1
| | | | | | | | | | | | Change-Id: I665ba3358dd9502f0adec70d486e7bf8a2e1b0fe
* | | Change Format_Invalid from enum to global constGlenn Kasten2014-02-031-0/+2
| | | | | | | | | | | | | | | | | | This is in preparation for changing the typedef to a struct Change-Id: I36d1fe81d2f974224750f753453753303c224591
* | | Use const NBAIO_Format& in parameter listsGlenn Kasten2014-01-314-7/+7
|/ / | | | | | | | | | | This is in preparation for changing the typedef to a struct. Change-Id: I8d73a6b29580c65105afd78f24db7e2f4a1eb872
* | am 081559cc: am 514ac2ba: am e311b15c: Merge "Fix c++11 narrowing"Nick Kralevich2014-01-111-1/+1
|\ \ | |/ | | | | | | * commit '081559cc5afb6c8f2f9847e1de739f66a5a07a6b': Fix c++11 narrowing
| * Merge "Fix c++11 narrowing"Nick Kralevich2014-01-111-1/+1
| |\
| | * Fix c++11 narrowingsynergydev2013-10-251-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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
| | * Add liblogYing Wang2013-04-091-1/+2
| | | | | | | | | | | | | | | Bug: 8580410 Change-Id: If493d87d60d71be664ad75b140c62acadb75b0d0
| | * Add non-blocking event logger NBLogGlenn Kasten2013-01-252-0/+450
| | | | | | | | | | | | Change-Id: I6c136cf3d7f46a8af84c69ecfc199dab394c10dc
| | * Add NBAIO support for more sample ratesGlenn Kasten2012-11-011-39/+85
| | | | | | | | | | | | | | | | | | | | | 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
| | * Enable write side of MonoPipe to be shutdownGlenn Kasten2012-09-281-2/+13
| | | | | | | | | | | | | | | Bug: 7253033 Change-Id: Iea8390763b59ffa7a8e2a6b77dd04ea23442698f
| | * Check clock_gettime(CLOCK_MONOTONIC) for failureGlenn Kasten2012-09-241-0/+3
| | | | | | | | | | | | | | | Bug: 7100774 Change-Id: I15a84a19bb6d6ef1d9dac4beaa03587638196404
| | * Documentation on pipesGlenn Kasten2012-08-301-0/+40
| | | | | | | | | | | | Change-Id: I3de496c7db026c50dcb6bc577741bb65d08e7c9d
| | * Move libnbaio out of AudioFlingerGlenn Kasten2012-08-3013-0/+1351
| | | | | | | | | | | | | | | | | | | | 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
* | Add RecordThread media.log and deferred deallocationGlenn Kasten2013-12-051-1/+1
|/ | | | | | | | | | | | | | | | 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
* Fix miscellanous AudioTrack::getTimestamp() bugsGlenn Kasten2013-09-031-0/+3
| | | | | | | | | | | | | | 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
* Implement MonoPipe::getTimestampGlenn Kasten2013-09-031-0/+3
| | | | | | using SingleStateQueue observer Change-Id: I7b1928b087f1e676c7b291df6cefa7707301662c
* Add ExtendedAudioBufferProvider::framesReleased and onTimestampGlenn Kasten2013-09-031-1/+12
| | | | | | | and implement them in SourceAudioBufferProvider using the associated NBAIO_Source, and in Track using the associated AudioTrackServerProxy. Change-Id: I60dc4adba63fc1dc452ff16caf347e4a7c8242c2