summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* audioflinger: Fix compilation with debug enabledSteve Kondik2015-11-231-1/+1
| | | | Change-Id: I8c459fd5a6530d7fc253f96400208dc6911b68ec
* Bug 1113271 - Fix stagefright FLACParsersotaro2015-11-231-4/+5
| | | | Change-Id: I993bbcdb276ea727c5088cff03cedb34e9a91c38
* stagefright: Fix HEVC in MKV for most clipsSteve Kondik2015-11-201-1/+1
| | | | | | * configurationVersion is not always correct for clips in the wild. Change-Id: I628a8bcf47f372844f05f912ed66aea6dad0aa86
* Revert "DataSource: Remove global variables in DataSource related to sniff"Steve Kondik2015-11-202-92/+56
| | | | | | | | * Don't change the ABI. Fun times. This reverts commit 4440ef8efc77d1bd7838885e83d41e54deb5a3b8. Change-Id: Ie9e0812f5e4ee700c29b76a413083858ec0255c9
* audio: Set OutputFormat of AudioMixer to PCM16Ramjee Singh2015-11-201-0/+4
| | | | | | | | | - MixerThread sets OutputFormat to PCM_FLOAT by default We are having issue with SRS Effects due to this format - Fix is to select always PCM16 format as Audio HAL supports only PCM16 Change-Id: I26d23836180fe95b4c32b071593827b6fe4d674e
* stagefright: ACodec: Don't return success when encoders fail to initDiogo Ferreira2015-11-201-4/+4
| | | | | | | | | | When configureCodec fails we try to fallback to another codec that supports the mimeType. However, this fallback is only done for decoders and, if encoders fail, they will always end up sending a success notification and returning true, causing mediaserver to crash. Change-Id: I32bee3167a8b43243cd708258435174f90f21a1b
* audio: Changes to enable BT A2DPShreyas Nagasandra Chandrasekhar2015-11-202-0/+22
| | | | | | | | | | | | For Proxy thread to be started , a2dp state has to updated from the audiopolicy. Now , added changes to send the BT A2DP status to audio HAL. - A- Family doesn't support separate output for a2dp , removed the getA2dpOutput(). getDeviceForStrategy() is selecting the proper device using mA2dpSuspended flag. CRs-Fixed: 751090 Change-Id: I599de562a8674ee611e10575fcc85e4715707a63
* stagefright: ACodec: Correctly handle FLAC port formatEthan Chen2015-11-201-2/+8
| | | | | | | * Handle FFMPEG FLAC codecs correctly, otherwise do the default codec behavior. Change-Id: Ib8c1c5037060ff1c5ea0a5317ab190ce2e306c1e
* audiopolicy: Remove unused variables with LEGACY_ALSA_AUDIOAdrianDC2015-11-201-1/+3
| | | | | Change-Id: If037b4eb6bbd864ccab050565899ce508ee90f9e Signed-off-by: AdrianDC <radian.dc@gmail.com>
* Fix setTorchMode support for the old HAL versionOleksiy Avramchenko2015-11-171-0/+1
| | | | | | | | | CameraHardwareInterfaceFlashControl class calls disconnectCameraDevice when torch is disabled. This closes connection to the camera module, but mDevice instance is kept and variable is non-NULL which will prevent connection next time torch is going to be enabled. Change-Id: Icb1ffb07f05256afd92821f0f4908cda5332c05b
* Merge branch 'LA.BF64.1.2.2_rb4.7' of ↵Steve Kondik2015-11-1617-27/+122
|\ | | | | | | | | | | git://codeaurora.org/platform/frameworks/av into cm-13.0 Change-Id: Ia41df61c3ccfeb809572b63a4b1a8ca6bd85dfb2
| * Merge "audiopolicy: Add synchronization to EffectDescriptorCollection"Linux Build Service Account2015-11-112-0/+8
| |\
| | * audiopolicy: Add synchronization to EffectDescriptorCollectionHaynes Mathew George2015-11-092-0/+8
| | | | | | | | | | | | | | | | | | | | | Synchronize public APIs of EffectDescriptorCollection CRs-Fixed: 920103 Change-Id: I04ccac526c6f99e61e43288776653d6b7ff325c4
| * | Merge "libstagefright: omx: Prevent assertion due to state mismatches"Linux Build Service Account2015-11-102-4/+41
| |\ \ | | |/ | |/|
| | * libstagefright: omx: Prevent assertion due to state mismatchesHaynes Mathew George2015-11-092-4/+41
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Instead handle them a bit better. Since the assertions dealt with in this patchset can only happen if the OMX IL client died while de-init'ing the component, it is impossible to deal with all possible cases gracefully. Hence take an aggressive approach by moving state of the component to OMX_StateInvalid. This looks okay as per the spec, but might not be the best approach. Change-Id: I3f23f5e3853523fe1a7fb3aaf38b46595fa91732
| * | Merge "AudioPolicyService: fix race in AudioCommandThread"Linux Build Service Account2015-11-091-8/+16
| |\ \ | | |/ | |/|
| | * AudioPolicyService: fix race in AudioCommandThreadEric Laurent2015-11-041-8/+16
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Fixe race condition in AudioCommandThread::threadLoop() where a command can be inserted in first position in the queue after the sleep time has been calculated causing a longer delay than expected. Also fix a failure to hold a wake lock while commands are still in the queue. Bug: 22707905. Change-Id: I813626986677bf00106acb37ee20d3dd75d5cf33
| * | Merge "libstagefright: Add WFD specific flags to consumer usage flags"Linux Build Service Account2015-11-072-2/+14
| |\ \
| | * | libstagefright: Add WFD specific flags to consumer usage flagsTatenda Chipeperekwa2015-11-052-2/+14
| | |/ | | | | | | | | | | | | | | | | | | | | | Add the GRALLOC_USAGE_PRIVATE_WFD flag to the consumer usage flags to allow the display framework to distinguish WFD from other virtual display connections. Change-Id: I7cdbac3716fb5c18d1691701accb8e66f388de86
| * | Merge "stagefright: Add null check before passing meta data buffer"Linux Build Service Account2015-11-061-1/+5
| |\ \
| | * | stagefright: Add null check before passing meta data bufferManoj Kumar AVM2015-11-041-1/+5
| | |/ | | | | | | | | | | | | | | | | | | Add necessary null checks to GraphicBuffer before passing it onto Metadatabuffer. Change-Id: I5cf09da4bd316e5c1733023746aa54960a36d8c9
| * | audio: use QTI flac decoder based on flagSharad Sangle2015-11-041-0/+4
| |/ | | | | | | | | | | | | | | | | | | | | | | While setting up the component for flac, current design is if encoder then don't use QTI flac component otherwise use QTI flac component, so if QTI flac is not being used then this might be wrong. So enhance the design to use QTI flac component only when it is enabled, otherwise use default flac component Change-Id: I57454841611885ae7cdf75896f8297ef8132292e CRs-Fixed: 916650
| * Merge "AudioPolicyService: Synchronize access to AudioPolicyManager"Linux Build Service Account2015-11-041-0/+1
| |\
| | * AudioPolicyService: Synchronize access to AudioPolicyManagerHaynes Mathew George2015-11-021-0/+1
| | | | | | | | | | | | | | | | | | | | | | | | Synchronize access to APM when getDevicesForStream is called on APM. CRs-Fixed: 913227 Change-Id: I2ba6922341f035375270b02000ef5a7e078f6b5a
| * | Merge "Camera: frameworks: Add NULL check for callback"Linux Build Service Account2015-11-041-1/+5
| |\ \
| | * | Camera: frameworks: Add NULL check for callbackSusmitha Gummalla2015-10-301-1/+5
| | | | | | | | | | | | | | | | | | | | | | | | --Added NULL check for mRemoteCallback Change-Id: Ib88a128a52e81b8ec1052e3222b6d8b9e494afcc
| * | | Merge "nuplayer: Drop frames with DATACORRUPT flag"Linux Build Service Account2015-11-036-1/+18
| |\ \ \ | | |_|/ | |/| |
| | * | nuplayer: Drop frames with DATACORRUPT flagShalaj Jain2015-10-266-1/+18
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Drop frames in NuplayerDecoder if the corresponding OMX_BUFFERFLAG_DATACORRUPT is set from OMX. Add a util function to easily switch off this feature. Do not declare MediaSource explicitly. Change-Id: I97bd238d52d660e1ab61eac222cdff28334cc5cc
| * | | Merge "DO NOT MERGE: CameraService: Link to client binder death at end of ↵Linux Build Service Account2015-11-022-8/+11
| |\ \ \ | | | | | | | | | | | | | | | connect"
| | * | | DO NOT MERGE: CameraService: Link to client binder death at end of connectEino-Ville Talvala2015-10-292-8/+11
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | If, within a binder Looper thread, a Binder object death notifier is registered, and then a nested Binder transaction is begun, that transaction may process a death notification callback for the just-registered object, if it was dead at the time of registration. This can lead to an unexpected nested call into the service, and cause deadlock. To avoid this, move the death notifier registration to the end of handling the connect transaction. Also remove one extra bit of disconnect logging. Bug: 23525545 Change-Id: If01cbaf42704f55134118afefc9a8f7bdb014e09
| * | | | Merge "NuPlayer: use a generic funtion to get flags"Linux Build Service Account2015-10-303-3/+3
| |\ \ \ \ | | | |/ / | | |/| / | | |_|/ | |/| |
| | * | NuPlayer: use a generic funtion to get flagsSidipotu Ashok2015-10-263-3/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Use a generic function to get flags while creating extractor, so that there is no restriction to a particular usecase. CRs-Fixed: 911338 Change-Id: I8520d2ea9b25ab564b7eee6610744fcaa364fe87
| * | | Merge "GenericSource: Hold an additional reference to dataSource."Linux Build Service Account2015-10-291-1/+6
| |\ \ \
| | * | | GenericSource: Hold an additional reference to dataSource.Shivaprasad Hongal2015-10-261-1/+6
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | mDataSource can be deleted by client thread while GenericSource looper is accessing dataSource in sniff functions, which can lead to race condition. Add local sp<> to hold an additional reference to dataSource. Change-Id: I9e51f75f3c2bd703e381230dd93cb4d3f6621dab CRs-Fixed: 923729
| * | | | Merge "GenericSource: Synchronize access to dataSource"Linux Build Service Account2015-10-292-5/+18
| |\ \ \ \ | | |/ / /
| | * | | GenericSource: Synchronize access to dataSourcePraveen Chavan2015-10-262-5/+18
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | DataSource and HTTPSource can be accessed/modified by GenericSource's looper and Client's thread which can lead to race conditions when copying the sp<>. Add a Mutex lock to synchronize such accesses and avoid race conditions. CRs-Fixed: 906899 Change-Id: I2fb4b4a7079e638e151f4fe67a780007a4011652
| * | | | Merge "stagefright: Return error for wrong buffer index in MediaCodec"Linux Build Service Account2015-10-292-1/+5
| |\ \ \ \
| | * | | | stagefright: Return error for wrong buffer index in MediaCodecShalaj Jain2015-10-262-1/+5
| | |/ / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Return error if the index passed by client is incorrect rather than returning OK with null buffer. Also add a null buffer check in MPEG4Writer as it shouldn't rely on the source returning the correct error code, just as a precaution. Change-Id: Iaefcd57a545ec3ce4ec0b8d4220bdf41377ff798
| * | | | Merge "stagefright: Remove additional deep-copy of encoder buffers"Linux Build Service Account2015-10-293-9/+22
| |\ \ \ \
| | * | | | stagefright: Remove additional deep-copy of encoder buffersShivaprasad Hongal2015-10-263-9/+22
| | |/ / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | MPEG4Writer makes a copy of encoded buffer to avoid holding on to the read buffer. This is not needed with MediaCodecSource, as the encoded-output buffer is already copied to a heap buffer. This saves a copy and some power. However, cloning the buffer is still needed for upstream sources that cannot afford to keep the buffers with writer up until they are released. So, pass a hint in buffer's metadata to indicate if it is OK to delay the release and not copy the buffer Change-Id: Ib59ac29ebc6ce4afd6fc272688a8260438ab1517
| * | | | Merge "stagefright: Enable QTI FLAC based on feature flag"Linux Build Service Account2015-10-291-0/+6
| |\ \ \ \
| | * | | | stagefright: Enable QTI FLAC based on feature flagAshish Jain2015-10-261-0/+6
| | |/ / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | -QTI Flac decoder is used only if QTI_FLAC_DECODER flag is defined. -Enable QTI_FLAC_DECODER flag if respective feature flag is enabled. Change-Id: I192e30af3e53a57f13aa2be5dc92bfbe5f20d096 CRs-Fixed: 927012
| * | | | Merge "libcameraservice: Fix ALOG prints in FlashLight."Linux Build Service Account2015-10-291-4/+8
| |\ \ \ \ | | |_|_|/ | |/| | |
| | * | | libcameraservice: Fix ALOG prints in FlashLight.Dilip Gopalakrishna2015-10-251-4/+8
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Add missing __FUNCTION__ arguments into log statements. Change-Id: I0256bad626d490fb9360a73c104afaad7a012a97
* | | | | mediaserver: conditionally launch ListenServiceKiran Kandi2015-11-122-0/+14
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Conditionally instantiate ListenService from MediaService. ListenServiceruns as a singleton in its own thread that calls AudioHAL which in turn accesses Listen Driver. It is the entry point from Application processes that want so execute Listen commands and receive Voice detection events. It manages Listen application resources and global states across all Listen applications. ListenService is similar to AudioFlinger. That is why it is instantiated from MediaServer. Listenservice talks to AudioHAL to deal with concurrent usage of mic. Change-Id: I71c346bb16e0ed3a7aae9c908e03c7f1c694fe0a
* | | | | stagefright: Fix more compilation warningsd34d2015-11-071-3/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * Fix format specifiers for int64_t * Fix format specifiers for size_t Change-Id: I25a775ac3eda092e36fc231ec16698a1c4a66f8b
* | | | | stagefright: Fix compilation warningSteve Kondik2015-11-071-4/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * Fix format specifiers for int64_t Change-Id: If3f05d0c8c1471ea0b3a97d90a5a774a5c168915
* | | | | audiopolicy: Fix call recording for legacy qcom HALnadlabak2015-11-072-0/+21
| | | | | | | | | | | | | | | | | | | | Change-Id: I774f75b493c47386ca1eaf004d663432f1041a66
* | | | | audio: Send USB connection events only for USB accessoryRamjee Singh2015-11-071-2/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | - Send USB connected/disconnected events to Audio HAL only in case of USB AOA as these are used only in case of USB AOA Change-Id: I7db508f6eff5e8601d54f1e1bfa603358f9d6703
* | | | | audio: Fixed Audio Source in Voice CallPavan Chikkala2015-11-072-0/+8
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | setPhoneState calls getDeviceForInputSource to check if voice_tx device is available as part of Primary Audio Module. getDeviceForInputSource always returns DEVICE_IN_COMMUNICATION for SOURCE_VOICE_COMMUNICATION on A Family and this is not added to Available devices This is leading to creation of txPatch when it is not needed Fix is to use AUDIO_SOURCE_VOICE_CALL instead of AUDIO_SOURCE_VOICE_COMMUNICATION Change-Id: I9aa7dd2139b8374ec7f06676d06ef5addea4b2a9