The changes for hybrid A2DP broke advanced codec support for devices
running a HAL V4.0 and no A2DP offload.
Fix: consider that if no encoded format is explicitely listed in the
device descriptor in audio policy configuration file, then no rule on
encoded format should be enforced.
Bug: 123399421
Test: connect Sony MDR-1 headphones and play music.
Change-Id: Idd13cf0e0cdeb71554b23d178e61cc1d82abea60
Without this, deep buffer playback is used.
Fixes regression from commit 4e4647077f
Test: Play music with Speaker and BT
Bug: 123371431
Change-Id: Ic5d23c6863223f5456414c887c14fda90aa06f5f
BUG: 123415047
Test:
lunch sdk_gphone_x86_64-user
make -j
emulator
media.swcodec should not be killed by minijail anymore
Change-Id: Id483daf395b977c538cc4b2b8f11e20e0a9954ca
Problem: Major brand 'wmf' is not in compatible array, so mp4
file with major brand 'wmf' is not recognized as mp4.
Solution: add 'wmf' to compatible array
Bug: 123051965
Test: play mp4 file whose ftyp major brand is 'wmf' and check
if it can be played normally
Change-Id: I9ff1411c01aa89d5bc35d85f6bc2ee07d37545e3
* changes:
libstagefright: Add support for muxing Opus files to Ogg format with unified CSD
codec2: add C2SoftOpusEnc
C2SoftOpusDec: Add support for decoding single CSD
OpusHeader: Add support for unified CSD
libstagefright: Move OpusHeader files to libstagefright_foundation
This reverts commit 7194e6da8a.
Reason for revert: AOSP is fixed with new vendor image
Change-Id: I15797a30abcc304379db05bec1b25a0bd95b2ff4
Signed-off-by: Suren Baghdasaryan <surenb@google.com>
This reverts commit 8fc45862aa.
Reason for revert: Build failure on sailfish due to system partition space.
Change-Id: Ief6199e3b1a1fc842a34a225c4f6e567a99bcfe7
Add missing active clients management when an output or input
is force closed by the audio policy manager. This resulted in
stale activity monitoring entries in AuduiService.
Bug: 123312504
Test: connect and disconnect a headset while recording a video
Change-Id: I66fe96daed2475ae6ada700ef1210d38ad099da2
This is required to actually run them on presubmit.
Bug: 122855449
Test: run a presubmit check on a CL while the tests are broken
Change-Id: Id95234d6a4198a246051c869d56ab5c62f6972f4
Move ASSERT_ into the body of the test function, because assert
failure only shows the code line where it has happened.
Update names to emphasize that the delta is from the initial
snapshot, not from the previous check.
Test: audiopolicy_tests
Change-Id: I4328d9d74c0632097150732727c123a446c8ee89
Now Ogg writer supports muxing opus files sent with either single
unified CSD or 3 CSDs that are returned by Ogg extractor.
Test: Tested using a local native application using AMediaMuxer API
Bug: 115576456
Change-Id: I335b078a4edf059aca6b3fd0f17b6bab3e006615
If first CSD contains additional bytes, those are decoded
based on markers present.
C2 encoder plugin sends CSD in this format, so decoder is updated to
support such input.
C2 decoder also continues to support three different CSDs in sent in
the legacy format (OpusHead in first CSD, followed by two CSDs of 8 bytes
to signal CodecDelay and seek pre-roll)
Bug: 115576456
Test: cts-tradefed run commandAndExit cts-dev -m CtsMediaTestCases \
-t android.media.cts.DecoderTest
Change-Id: I089acbd2dddd36175c1e92455e488719a0e3a143
Added few macros and functions to handle unified CSD for opus
These functions are used to write/read codec delay and seek pre-roll data
to/from CSD buffer
Bug: 115576456
Test: vendor
Change-Id: Iace44d7dea860c9fcf27492fcd9666b99a4c1e73
Now OpusHeader.cpp is part of libstagefright_foundation.
This avoids a need to include libstagefright_opus_common as an
additional shared library
Bug: 115576456
Test: Tested with a Ogg writer using a local AMediaMuxer
based application
Change-Id: I102492676447c9f3677e2d418bd39d274ad4f392
converts mediaplayer2 to use the new interface.
Bug: 112555455
Test: boot / relevant ctsMediaTests
Change-Id: I186c1931408414e9fd42bbc501e636a9624b6a6e
The change ag/5874343 switched to DeviceVector usage instead of
audio_devices_t. In AudioPolicyManager::setOutputDevices, one of
the conditions comparing a device to AUDIO_DEVICE_NONE had been
inverted.
This was resulting in resetting of default patches during
a call to 'setForceUse' function.
Test: audiopolicy_tests
Change-Id: Idc43bc152c3d749cd1dab9b696e7e1e700ef3926