summaryrefslogtreecommitdiffstats
path: root/services
Commit message (Collapse)AuthorAgeFilesLines
* Camera2/3: Cleanup the jpeg buffer size calcaulation logicZhijun He2014-08-1111-56/+45
| | | | | | | | | - Only one place calculating the jpeg size-the device layer, Camera2Device and Camera3Device. - Remove size argument for CameraDeviceBase and cleanup related code. Bug: 14327010 Change-Id: I45d2ab4859ee0cc9273e579254f0569108c748f1
* audio policy: enable more than one sink per audio patch.Eric Laurent2014-08-082-84/+126
| | | | | | | | | | | | Allow creation of audio patches with more than one sink. More than one sink is enabled when: - Connecting an input device to output devices on the same audio HW module. - Connecting an output mix to output devices on the same audio HA module. All other patches are limited to one sink. Bug: 16879363. Change-Id: I95be6948ef29df64e51e5b8ace38c2db7f3e89f2
* Merge "Fix effect and mono sink handling." into lmp-devAndy Hung2014-08-072-5/+6
|\
| * Fix effect and mono sink handling.Andy Hung2014-08-082-5/+6
| | | | | | | | | | | | | | | | Do not permit mixing to mono sink in AudioFlinger. Allow effects on mono sink if not Mixer thread (e.g. Record). Bug: 16863095 Change-Id: I8b232fc1fb3f07bf017020c5d4f9ace644dec6d8
* | Merge "Camera: Need consider AF state for ZSL buffer selection" into lmp-devZhijun He2014-08-071-0/+16
|\ \
| * | Camera: Need consider AF state for ZSL buffer selectionZhijun He2014-08-061-0/+16
| | | | | | | | | | | | | | | Bug: 16569983 Change-Id: I65e604e382ac0b98777155ad480ec3f6071e1a76
* | | Merge "audio policy: add support for USB devices for voice call" into lmp-devEric Laurent2014-08-063-30/+259
|\ \ \ | |/ / |/| |
| * | audio policy: add support for USB devices for voice callEric Laurent2014-08-063-30/+259
| |/ | | | | | | | | | | | | | | | | Add possibility to use sink and source devices not on the primary HW module for voice calls (e.g. USB headsets). Bug: 15520724. Change-Id: Ib27db4ba759b6d91ea1104dc2e35c87733517b30
* | Merge "AudioSystem: add API to query audio HW sync source" into lmp-devEric Laurent2014-08-063-2/+33
|\ \
| * | AudioSystem: add API to query audio HW sync sourceEric Laurent2014-08-063-2/+33
| |/ | | | | | | | | | | | | | | | | | | | | Add a method to query from the audio HAL the HW sync source used for a given audio session. Modify audio policy to select a direct output with HW sync when requested. Bug: 16132368. Change-Id: I03038f9188f2d389f8a5fd76a671854013a4513e
* | Merge "MediaServer crashing and audio effects not applied to TTS." into lmp-devRicardo Garcia2014-08-061-1/+6
|\ \ | |/ |/|
| * MediaServer crashing and audio effects not applied to TTS.Ricardo Garcia2014-08-061-1/+6
| | | | | | | | | | | | | | | | | | A memclear in the EffectChain was out of bounds. Bug 15432115 Bug 16845751 Change-Id: Ib0adc7fa730d630bb71fb87d51163a26149b16e2
* | Merge "audio: fix crashes upon USB device connection" into lmp-devEric Laurent2014-08-052-9/+10
|\ \
| * | audio: fix crashes upon USB device connectionEric Laurent2014-08-052-9/+10
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | - Audio policy: Replace unknown device assertion by debug log in setDeviceConnectionState(). It is possible that some kernels indicate connection of a legacy device type when a USB audio device is connected. We should just ignore this device. - Audio flinger: Make sure FastMixer thread is idle before exiting the normal mixer thread and closing the output stream. Change-Id: Ia10a20176a60a8aa56765538093a555fc998508a
* | | Merge "cameraservice: disallow zsl/recording coexistentce" into lmp-devYin-Chia Yeh2014-08-051-1/+33
|\ \ \
| * | | cameraservice: disallow zsl/recording coexistentceYin-Chia Yeh2014-08-051-1/+33
| | | | | | | | | | | | | | | | | | | | | | | | | | | | Make sure ZSL and recording stream does not exist at the same time. Change-Id: I19e28dedd9dd5cc5118449860b612a5c950fdaec
* | | | policy manager: recognize AUDIO_DEVICE_IN_AMBIENT from policy.confEric Laurent2014-08-051-0/+1
| |/ / |/| | | | | | | | Change-Id: If46b8d13f216bad4aa62598531d406d3303134f5
* | | audio policy: support line output deviceJon Eklund2014-08-052-11/+37
| | | | | | | | | | | | Change-Id: Iddf1b6486430270d871a45c75615e54339a818e9
* | | Merge "Add sound trigger control by audio policy" into lmp-devEric Laurent2014-08-0511-164/+515
|\ \ \
| * | | Add sound trigger control by audio policyEric Laurent2014-08-0511-164/+515
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Audio policy: - Added active capture indication to sound trigger service: recognition stops if concurrent capture is not supported. - Added generation of reserved I/O handle and session ID for utterance capture. Sound trigger service - Added sound model update callback handling. - Added service state callback - Simplified callback shared memory allocation. Bug: 12378680. Change-Id: Ib0292c2733e6df90fdae480633dd9953d0016ef1
* | | | Merge "Remove unused TwoTrack process mode from AudioMixer" into lmp-devAndy Hung2014-08-052-107/+0
|\ \ \ \ | |/ / / |/| | |
| * | | Remove unused TwoTrack process mode from AudioMixerAndy Hung2014-08-042-107/+0
| | |/ | |/| | | | | | | | | | | | | Legacy code that has not been hooked up. Change-Id: Ic01a4eddfa1020089d5bc42f58b6a4697698c27a
* | | [audio][policy] fix crash when offloadInfo is NULLPhil Burk2014-08-041-2/+6
| |/ |/| | | | | | | | | | | | | Added check for NULL pointer to avoid crash in AudioPolicyManager when playing AC3 data. Change-Id: Ie56788f6277be6da47d4218b1b4a6b359fce6473 Signed-off-by: Phil Burk <philburk@google.com>
* | audio flinger: fix service fuzz test crashEric Laurent2014-08-041-0/+6
| | | | | | | | | | Bug: 13744704. Change-Id: I572c89f88dcab2b8b612ec6860983306f9f159ab
* | Merge "audio policy: fix service fuzz test crash" into lmp-devEric Laurent2014-08-011-4/+4
|\ \
| * | audio policy: fix service fuzz test crashEric Laurent2014-08-011-4/+4
| |/ | | | | | | | | Bug: 13744391. Change-Id: I2430e09ad00476b9ac28dc55466942c61fb0531d
* | Merge "Revert "Revert "sound trigger: added permission checks""" into lmp-devEric Laurent2014-08-012-9/+35
|\ \
| * | Revert "Revert "sound trigger: added permission checks""Eric Laurent2014-08-012-9/+35
| | | | | | | | | | | | | | | | | | | | | This reverts commit 936c84a5b743dce2a2572fdf54b37b187bc88b60. Bug: 16374803. Change-Id: I9d3137faeddf119b13f9cdb73c14ca49e1ee3d1c
* | | Remove 64-bit android_atomic uses from StateQueue.Hans Boehm2014-07-312-12/+8
| |/ |/| | | | | | | | | | | | | | | | | Use stdatomic.h instead. We're trying to remove android_atomic use wherever possible. The 64-bit uses seem easiest to remove first. This cleans up the code, though not as much as C++ <atomic> would, if it worked everywhere. (cherry picked from commit f39b560952d3706a7ff47ef0d82c1a836daeea42) Change-Id: I3c29bdbd5915cb9d47118834a3a742fe296cf87f
* | Merge "Add Quad channel output to AudioPolicyManager" into lmp-devAndy Hung2014-07-291-0/+1
|\ \
| * | Add Quad channel output to AudioPolicyManagerAndy Hung2014-07-291-0/+1
| | | | | | | | | | | | | | | | | | Matches some USB device configurations. Change-Id: I2429f9de87816b4ad1d39516e3821562617c76ee
* | | audio policy: add missing enums in config file parsingEric Laurent2014-07-301-0/+1
| | | | | | | | | | | | Change-Id: I4edd6cde11de62c9c19dfa623d08cddf42c953db
* | | Merge "Enable multichannel in AudioFlinger" into lmp-devAndy Hung2014-07-291-1/+1
|\ \ \
| * | | Enable multichannel in AudioFlingerAndy Hung2014-07-281-1/+1
| | | | | | | | | | | | | | | | Change-Id: Ibdbdc6ea0b87cdcd15432257a3455b11b3ce14b7
* | | | Merge "Update multichannel audio policy handling" into lmp-devAndy Hung2014-07-292-5/+6
|\ \ \ \ | |/ / /
| * | | Update multichannel audio policy handlingAndy Hung2014-07-282-5/+6
| |/ / | | | | | | | | | | | | | | | | | | | | | Ensure AUDIO_FORMAT_PCM_FLOAT and AUDIO_FORMAT_PCM_32_BIT have proper precedence. Allow more mixer channels than 2. Change-Id: I02af97dad6218b25cbada4d93077a213314c6725
* | | Fix build warningsGlenn Kasten2014-07-296-15/+15
| | | | | | | | | | | | Change-Id: Ife5e40264f43fb3ccb40830228701003fe106bf5
* | | audio policy: pass session ID to capture activity methodsEric Laurent2014-07-288-35/+74
| | | | | | | | | | | | | | | | | | | | | | | | Indicate the audio session ID when calling getInput(), startInput(), stopInput(), releaseInput(). Bug: 12378680. Change-Id: I763793752f93e2f4e1445a5ab217c895af011038
* | | Merge "Fix rounding in RecordThread resampler buffer computation" into lmp-devGlenn Kasten2014-07-281-10/+12
|\ \ \
| * | | Fix rounding in RecordThread resampler buffer computationAndy Hung2014-07-281-10/+12
| |/ / | | | | | | | | | | | | Bug: 16525305 Change-Id: Ie010822b0fa9dec74adde1d1b091ee44c183fc94
* | | rename AudioSystem::newAudioSessionId()Eric Laurent2014-07-285-2/+11
| | | | | | | | | | | | | | | | | | | | | | | | | | | Rename AudioSystem::newAudioSessionId() to AudioSystem::newAudioUniqueId() as it can be used also for I/O handles. Bug: 12378680. Change-Id: I611ea3b5eb57a4b0774437f477ee87dc4ccc2cc2
* | | Merge "AudioFlinger: update openInput() and openOutput()" into lmp-devEric Laurent2014-07-259-371/+468
|\ \ \
| * | | AudioFlinger: update openInput() and openOutput()Eric Laurent2014-07-289-371/+468
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Add parameters to openInput() and openOutput(): device address, input source. Allow caller to specify a given I/O handle Group parameters in a struct audio_config. Bug: 12378680. Change-Id: I7e9af74c0d996561cc13cbee7d9012d2daf33025
* | | | CameraService: Replace deprecated native_window methodsEino-Ville Talvala2014-07-282-17/+30
| | | | | | | | | | | | | | | | Change-Id: I3be5a720ac8b488d1e507c606a9146480faeef63
* | | | CameraService: Clean up availability listeners and HAL error codesEino-Ville Talvala2014-07-286-61/+68
| |/ / |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | - Refactor where availability listeners are called to centralize behavior, ensuring that all client creation/destruction invokes the listeners - Clean up some of the client hierarchy - Filter error codes from key HAL calls to ensure proper reporting Bug: 16514157 Bug: 16483222 Change-Id: I59875a865b6a508b47423946c78862da8df34cd1
* | | Merge "Enable lower latency audio capture on more devices" into lmp-devGlenn Kasten2014-07-241-3/+3
|\ \ \ | |/ / |/| |
| * | Enable lower latency audio capture on more devicesGlenn Kasten2014-07-271-3/+3
| | | | | | | | | | | | | | | Bug: 16601366 Change-Id: I573b98631f81b7768f7cc00aa09e560008dea587
* | | Merge "audio policy: compatible sample rates and channel masks" into lmp-devGlenn Kasten2014-07-242-43/+162
|\ \ \
| * | | audio policy: compatible sample rates and channel masksGlenn Kasten2014-07-272-43/+162
| |/ / | | | | | | | | | Change-Id: I50d068a968aa6bd9e53e5b3111a1b09a6c2d219c
* | | audiopolicy: fix output audio format selectionEric Laurent2014-07-271-2/+2
|/ / | | | | | | | | | | | | | | Fix two problems in output stream audio format selection added by commit 1e693b55: - flags must be set before picking the format. - fix logic error in best format selection. Change-Id: I6458b32725f771da5a08108932d64e71964ae9f1