summaryrefslogtreecommitdiffstats
path: root/services
Commit message (Collapse)AuthorAgeFilesLines
* Add audio_input_flags_t to IAudioPolicyService::getInputGlenn Kasten2014-07-173-6/+9
| | | | Change-Id: I9f37be05f8dc7b85a8827a94e76ca0f45453e170
* Add audio_input_flags_t to IAudioFlinger::openInputGlenn Kasten2014-07-177-13/+23
| | | | | | | For backward compatibility, until flags are correctly calculated, we will assume that the request is for a low latency input stream. Change-Id: I76746834e870df00833dc77cbdaa2edd2ffeec95
* Improve dumpsys for capture threadsGlenn Kasten2014-07-172-4/+6
| | | | | | Show per-track sample rate, and whether there is a fast capture thread Change-Id: If6a08a40d1eeba0690aa8da3c541f845ec101b7f
* Revisit HDMI-CEC system audio mode in AudioService.Jungshik Jang2014-07-171-2/+19
| | | | | | | | | | | | | | | | | | | | From recent feedback on HDMI-CEC system audio mode, it would be unnecessary to enforce output from AudioService. Instead, it would follow audio policy according to status of HDMI-CEC system audio mode. For that removed two params of setHdmiSystemAudioModeSupported api of AudioManager. In terms of speaker mute, it will be handled by removing speaker from audio ouput instead of changing gain control. For that added new force usage type, FOR_HDMI_SYSTEM_AUDIO_MODE and new force config type, FORCE_HDMI_SYSTEM_AUDIO_ENFORCED. This is used to notify change of system audio mode to audio policy manager. Bug: 16305986 Bug: 16002150 Change-Id: I702e0f9ce7c7887d5f5dd02b06a40d20e4c950df
* Merge "Add audio_input_flags_t to HAL open_input_stream" into lmp-devGlenn Kasten2014-07-161-2/+3
|\
| * Add audio_input_flags_t to HAL open_input_streamGlenn Kasten2014-07-151-2/+3
| | | | | | | | | | | | | | For backward compatibility, until flags are added to openInput(), we will assume that the request is for a low latency input stream. Change-Id: I5e6f7e574418917ff1b41b0a47199203c69cb40f
* | sound trigger: added permission checksEric Laurent2014-07-162-9/+35
|/ | | | | | | | Add check for android.permission.CAPTURE_AUDIO_HOTWORD to all sound trigger binder calls on server side. Bug: 12378680. Change-Id: Ic3fd70e947882cdf5f4d4a4fe609a2c5a8236fd5
* Merge "const correctness on downmix and upmix" into lmp-devGlenn Kasten2014-07-151-3/+3
|\
| * const correctness on downmix and upmixGlenn Kasten2014-07-151-3/+3
| | | | | | | | Change-Id: I0f51470a6d58a22310ce7cda80afc55e9d6df1dc
* | audio policy: build with USE_LEGACY_AUDIO_POLICYEric Laurent2014-07-151-0/+13
| | | | | | | | Change-Id: I9def12ea689b00c0295c670c07373dacfb186799
* | camera2: Set orientation flags for hardware composer.Ruben Brunk2014-07-141-84/+2
|/ | | | | Bug: 15116722 Change-Id: I3fcc9aea38afcbd665f86c511a9929fe9a6a3a8f
* Merge "audiopolicy: remove debug log in AudioPolicyEffects.cpp"Eric Laurent2014-07-111-1/+1
|\
| * audiopolicy: remove debug log in AudioPolicyEffects.cppEric Laurent2014-07-111-1/+1
| | | | | | | | Change-Id: Ia037807a91d6649c3f47baccf8c107df496e934e
* | audio policy: add rules to select audio parametersEric Laurent2014-07-113-31/+176
|/ | | | | | | | | | Added rules to select most appropriate sampling rate, format and channel mask from an input or output profile. Moved mFlags from IOProfile to its base class AudioPort. Removed bogus mChannelMask member in DeviceDescriptor class. Improveed dump of dynamic parameters in AudioPort. Change-Id: Ic09d320386002a8bafee4a28db00b1001a386678
* stagefright: Pass audio aac sub formats in offloadinfoaarti jadhav-gaikwad2014-07-112-7/+26
| | | | | | | | Pass audio aac sub formats in offloadinfo according to aac profile. Audio HAL can take decision about offload using DSP capabilities Change-Id: If269a3654b5d2b09c183212b0646ef03e06f2d8f
* Merge "Return negotiated format with HAL in AudioFlinger"Andy Hung2014-07-102-5/+11
|\
| * Return negotiated format with HAL in AudioFlingerAndy Hung2014-07-102-5/+11
| | | | | | | | | | | | | | | | Fixes an issue caused by extended precision and the FastMixer when the format to the FastMixer was returned instead of the HAL format. Change-Id: I2be9d55d5c87d82e46b5200b07fcdd986ebde08a
* | Revamp HDMI-CEC system audio mode integration with audio service.Jungshik Jang2014-07-101-21/+5
|/ | | | | | | | | | | | | | | | | | | | In previous change we use setForceUse(FORCE_MEDIA, XXX) method in order to set specific audio output type, such as LINE, HDMI_ARC, and SPDIF. But it turns out that it conflicts with bluetooth a2dp which uses the same setForceUse(FORCE_MEDIA, yyy). This change is based on several conditions. 1. When other non-speaker devices are on, prevent system audio from turing on. 2. In order to keep track of other devices' connectivity and to turn off system audio if other device like bluetooth or headphone preempts current output, register OnAudioPortChangeListner to audio manager. 3. All possible system audio outputs can be merged with other outputs without priority. Change-Id: Ic5ccc80f9b48fb77433c347de7969837c69e58c1
* Merge "Add floating point volume handling to AudioMixer"Andy Hung2014-07-0813-114/+291
|\
| * Add floating point volume handling to AudioMixerAndy Hung2014-07-0813-114/+291
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Use floating point volume in AudioMixer mixing when floating point input is used with the new mixer engine. AudioResampler is updated to take floating point volume to match. Both legacy integer and floating point mixer engines work. For now, integer volume is used when the new mixer engine runs in integer input mode, for backward compatibility with the legacy mixer. The new mixer engine will generally run in floating point input mode. When the legacy path is removed, the integer volumes will be removed. Change-Id: I79e80c292ae7c8b8bdd0aa371a1b2c3a1b618290
* | Merge "Enable extended precision PCM output in AudioFlinger"Andy Hung2014-07-091-1/+1
|\ \
| * | Enable extended precision PCM output in AudioFlingerAndy Hung2014-07-081-1/+1
| | | | | | | | | | | | Change-Id: I7c0907c7b2369681975d8ea0192b722d7ed7a867
* | | Merge "Revise speaker volume curve for media on devices with speaker DRC"Jean-Michel Trivi2014-07-091-1/+1
|\ \ \ | |_|/ |/| |
| * | Revise speaker volume curve for media on devices with speaker DRCJean-Michel Trivi2014-07-091-1/+1
| | | | | | | | | | | | | | | | | | Bug 15318604 Change-Id: I14b451e2d8d4439fe286dd98c45d09b9dadbb4f6
* | | Merge "audio policy: add new input audio device"Terry Heo2014-07-021-0/+1
|\ \ \
| * | | audio policy: add new input audio deviceTerry Heo2014-07-041-0/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | Add entry for AUDIO_DEVICE_IN_LOOPBACK to string to enum table. Bug: 15437484 Change-Id: I552df0969c745bdf66ff9e5d7bd864ef9e3f438d
* | | | sound trigger: update HALEric Laurent2014-07-081-14/+11
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | New start_recognition() prototype with recognition configuration structure. New recognition event format. Bug: 12378680. Change-Id: I57b430eb076e6baa58118a0ed45ce4afaacb998c
* | | | Merge "Replace int bitDepth with audio_format_t in Resampler"Andy Hung2014-07-0711-59/+54
|\ \ \ \
| * | | | Replace int bitDepth with audio_format_t in ResamplerAndy Hung2014-07-0711-59/+54
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Remove mBitDepth from class (not used). Replace with audio_format_t in factory method to distinguish between float and pcm 16-bit. Change-Id: I166860796c68285077ef4458d8758d19b82523f9
* | | | | Camera3: Add capture intent for ZSL captureZhijun He2014-07-084-10/+56
| |_|_|/ |/| | | | | | | | | | | | | | | | | | | Also fix the warning condition in input buffer return path. Change-Id: I90e9edc1db9f1de87bc8936000b00c3306160c71
* | | | Merge "av: native_window_set_buffers_geometry is deprecated."Eino-Ville Talvala2014-07-061-2/+7
|\ \ \ \
| * | | | av: native_window_set_buffers_geometry is deprecated.Pierre Couillaud2014-07-071-2/+7
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | native_window_set_buffers_geometry is deprecated, but __set_buffers_geometry is still used for device1 camera support. replace deprecated call with its equivalent combination of native_window_set_buffers_dimensions and native_window_set_buffers_format. Change-Id: I4940367dcae6049451508bfdfc11c16907ec1afc Signed-off-by: Pierre Couillaud <pierre@broadcom.com>
* | | | | Camera3: only return input buffer when it is sent in requestZhijun He2014-07-072-19/+51
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This is to WAR the case where HAL sends non-NULL input_buffer in capture result even capture framework doesn't send input buffer in the request. It's very likely the input_buffer is uninitialized, and we shouldn't use it. Log a warning for such case as well. Bug: 16115675 Bug: 16117312 Change-Id: Ib299b45fbfe084059a9f546ded239c8094b039e2
* | | | | Merge "IAudioFlinger::openRecord now suggests notificationFrames"Glenn Kasten2014-07-024-1/+6
|\ \ \ \ \
| * | | | | IAudioFlinger::openRecord now suggests notificationFramesGlenn Kasten2014-07-034-1/+6
| | |_|_|/ | |/| | | | | | | | | | | | | Change-Id: I08885cc381d03c522a23289e74f0e1ed46563863
* | | | | audio: deprecate audio_stream_frame_size()Eric Laurent2014-07-031-3/+3
| | | | | | | | | | | | | | | | | | | | | | | | | Bug: 15000850. Change-Id: I955a6efa620b8f70fa5193c7853cbe88e879c9c3
* | | | | Merge "Remove obsolete IAudioFlinger::channelCount()"Glenn Kasten2014-07-023-13/+0
|\ \ \ \ \ | |/ / / / |/| | | |
| * | | | Remove obsolete IAudioFlinger::channelCount()Glenn Kasten2014-06-023-13/+0
| | | | | | | | | | | | | | | | | | | | Change-Id: Ie623edae2e795f9155f1f452fe4e6c7217a4a4c8
* | | | | Merge "Add and enable multichannel for audio resampler"Andy Hung2014-07-024-56/+130
|\ \ \ \ \ | | |_|/ / | |/| | |
| * | | | Add and enable multichannel for audio resamplerAndy Hung2014-07-024-56/+130
| | | | | | | | | | | | | | | | | | | | | | | | | Change-Id: I2b86fb73d70abc4c456f7567270a888086b301d4 Signed-off-by: Andy Hung <hunga@google.com>
* | | | | Merge "Add force usage and category for System Audio Control."Jungshik Jang2014-07-021-1/+26
|\ \ \ \ \
| * | | | | Add force usage and category for System Audio Control.Jungshik Jang2014-07-021-1/+26
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | System Audio Control in HDMI-CEC delegate audio control to audio receiver. When system audio control is selected in audio settings as audio output it should select one of ARC, SPDIF, and LINE as audio output. Whenever user select System Audio as audio output, audio setting should call setForceUse(AUDIO_POLICY_FORCE_FOR_SYSTEM_AUDIO, AUDIO_POLICY_FORCE_XXX); and if other output is selected it should call setForceUse(AUDIO_POLICY_FORCE_FOR_SYSTEM_AUDIO, AUDIO_POLICY_FORCE_NONE); Change-Id: I1c237ee9291a4e0acf01a86aff3176edce5c14e0
* | | | | | Merge "Add multichannel to audio resample processing"Andy Hung2014-07-021-62/+146
|\ \ \ \ \ \ | | |/ / / / | |/| | | |
| * | | | | Add multichannel to audio resample processingAndy Hung2014-07-021-62/+146
| | |_|/ / | |/| | | | | | | | | | | | | | | | | | Change-Id: If6bfbf74000520713f9ba19488a475fc2eefc271 Signed-off-by: Andy Hung <hunga@google.com>
* | | | | Merge "Camera3: fix ZSL processor3 issues"Zhijun He2014-07-027-38/+109
|\ \ \ \ \ | |/ / / / |/| | | |
| * | | | Camera3: fix ZSL processor3 issuesZhijun He2014-07-027-38/+109
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | - Return input buffer in capture result. Per hal3.2 spec, we should return the input buffer in process capture result rather than immediately after process capture request. - Make the depths of mZslQueue and mFrameList the same. It doesn't make sense mFrameList depth is larger than mZslQueue depth. - Set the depths of mZslQueue and mFrameList based on pipelineMaxDepth. - Clear result queue while clearing zsl buffer queue. - Hook up camera3 buffer listener with ZslProcessor3, make sure that adding the same listener multiple times has no effect. - Remove flush call in pushToReprocess, it is a guaranteed deadlock once camera3 buffer listener is hooked up. Change-Id: I285155ab4241e827145855d628f8e98b881c01d5
* | | | | Merge "frameworks: av: services: audiopolicy: Added AudioPolicyEffects"Eric Laurent2014-07-017-530/+883
|\ \ \ \ \
| * | | | | frameworks: av: services: audiopolicy: Added AudioPolicyEffectsbryant_liu2014-07-017-530/+883
| | |/ / / | |/| | | | | | | | | | | | | | | | | | | | | | | Manage pre- and postprocessing effects defined in audio_effects.conf Change-Id: Idea1478e3d434f8ff66907adb3c77663db78d583
* | | | | Add new AudioMixer processing hooksAndy Hung2014-06-303-45/+761
|/ / / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | This change adds new process and thread hooks for multi-format handling. It is enabled by setting kUseNewMixer = true. Change-Id: I262a3d2e4411f8cef7370a497b77a34eb55f1f86
* | | | Merge "Add enabling variable for extended precision audio"Andy Hung2014-06-263-10/+43
|\ \ \ \ | |/ / / |/| | |