summaryrefslogtreecommitdiffstats
path: root/services
Commit message (Collapse)AuthorAgeFilesLines
* audio policy: remove redundant fixed volume managementEric Laurent2014-07-231-8/+0
| | | | | | | | Remove code handling fixed device volume in AudioPolicyManager::computeVolume() as this is already managed by AudioService. Change-Id: Ib2be7578e40652c85a7d44c685ff9cc703d0c969
* Merge "Fix multichannel integer resampling and add tests" into lmp-devAndy Hung2014-07-232-35/+111
|\
| * Fix multichannel integer resampling and add testsAndy Hung2014-07-212-35/+111
| | | | | | | | Change-Id: I384bf8317d4f03616bf9f2b458a8700965d5cf56
* | Merge "Camera3: only append partial result to partial result collection" ↵Zhijun He2014-07-221-2/+3
|\ \ | | | | | | | | | into lmp-dev
| * | Camera3: only append partial result to partial result collectionZhijun He2014-07-221-2/+3
| | | | | | | | | | | | | | | | | | Otherwise, the metadata entries will be duplicated. Change-Id: If0cd96e09960fdf746a70913d380e9036745a944
* | | audio policy: fix hotword captureEric Laurent2014-07-221-0/+5
| | | | | | | | | | | | | | | | | | | | | | | | commit 1c333e2 introduced a regression causing the wrong input source type to be communicated to the audio HAL when starting hotword (background) capture. Change-Id: Iec6b3c58cbc15b9988793077232ff3e7e72a4d6d
* | | camera: clear ZSLQueue when switching modesRuchit Sharma2014-07-221-0/+1
| | | | | | | | | | | | | | | | | | | | | not clearing the queue here will eat up unnecessary memory every time we switch from video to still mode. Change-Id: I279ec709b485ca0dab672464e5b829be849bcaa5
* | | Merge "cameraservice: remove record stream in stopPreview" into lmp-devYin-Chia Yeh2014-07-221-0/+7
|\ \ \ | |/ / |/| |
| * | cameraservice: remove record stream in stopPreviewYin-Chia Yeh2014-07-181-0/+7
| | | | | | | | | | | | | | | | | | Remove recording stream every time stopPreview is called. Change-Id: Iabb783a75418aa41ddc2693cfdfd5a2131109070
* | | Merge "audio policy: add missing formats to audio_policy.conf parser." into ↵Eric Laurent2014-07-211-0/+2
|\ \ \ | | | | | | | | | | | | lmp-dev
| * | | audio policy: add missing formats to audio_policy.conf parser.Eric Laurent2014-07-211-0/+2
| | |/ | |/| | | | | | | Change-Id: I872c11d080c505abe3025e7bbb554ca9711de9af
* | | Remove execute bitGlenn Kasten2014-07-218-0/+0
|/ / | | | | | | Change-Id: I1cf0c0d9375779b3074af12f4cbf9c1ec07bf4ff
* | Merge "Add RemixBufferProvider to AudioMixer" into lmp-devAndy Hung2014-07-172-2/+53
|\ \
| * | Add RemixBufferProvider to AudioMixerAndy Hung2014-07-182-2/+53
| | | | | | | | | | | | | | | | | | | | | This is used to convert between channel masks for input AudioTrack data. Change-Id: Iedffaeccb99c7053992152e7b1cb6b2d33b12eef
* | | Merge "Update DownmixerBufferProvider to use CopyBufferProvider" into lmp-devAndy Hung2014-07-182-158/+166
|\ \ \ | |/ /
| * | Update DownmixerBufferProvider to use CopyBufferProviderAndy Hung2014-07-182-158/+166
| | | | | | | | | | | | Change-Id: I6b1a8755a1e6c29b916662fd376e9509cda5df55
* | | Merge "Add CopyBufferProvider class for AudioMixer" into lmp-devAndy Hung2014-07-172-114/+172
|\ \ \ | |/ /
| * | Add CopyBufferProvider class for AudioMixerAndy Hung2014-07-182-114/+172
| | | | | | | | | | | | | | | | | | | | | | | | AudioMixer::ReformatBufferProvider now uses it as a base class. Fix ReformatBufferProvider object leak. Change-Id: If196f844eaaa124a173ffa27afe88098023c2ff9
* | | Fix copy/paste bugGlenn Kasten2014-07-181-3/+2
|/ / | | | | | | | | | | introduced by Change-Id: I4e9b7fa99858b488ac98a441fa70e31dbba1b865 Change-Id: I9a0c8800f5cf3767cc259776f95c96cad972e392
* | Merge "Move AudioRecord frame count calculations to server" into lmp-devGlenn Kasten2014-07-171-35/+31
|\ \
| * | Move AudioRecord frame count calculations to serverGlenn Kasten2014-07-171-35/+31
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Buffer frame count and notification frame count are now calculated by server instead of by client. The server has more information and can do a better job. Also fix a few bugs: - If a fast track was re-created, even with same pipe depth, it would fail. Now it can correctly re-create a fast track provided the pipe depth is same. - Notification frame count for fast tracks was calculated by client as 1/2 of the total frame count, which is a large value due to the pipe. Now the notification frame count is set by server to the HAL frame count. This should reduce latency for fast tracks. - EVENT_OVERRUN were happening frequently when there was sample rate conversion, because the client didn't know about the sample rate conversion, and under-estimated the necessary buffer size. Now since server calculates the buffer sizes, EVENT_OVERRUN is unlikely. - RecordThread::createRecordTrack_l was checking for mono and stereo for fast tracks. This is not necessary, and now we can handle a multi-channel fast track. Bug: 7498763 Change-Id: I0c581618e8db33084d5ff9ed50a592990c9749e8
* | | Merge "Add audio_input_flags_t to IAudioPolicyService::getInput" into lmp-devGlenn Kasten2014-07-173-6/+9
|\ \ \ | |/ /
| * | Add audio_input_flags_t to IAudioPolicyService::getInputGlenn Kasten2014-07-173-6/+9
| | | | | | | | | | | | Change-Id: I9f37be05f8dc7b85a8827a94e76ca0f45453e170
* | | Merge "Fix initial audio glitch on startup" into lmp-devAndy Hung2014-07-171-1/+1
|\ \ \
| * | | Fix initial audio glitch on startupAndy Hung2014-07-171-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | Also happens when restarting AudioFlinger. Bug: 16322824 Change-Id: I382b20174cb0639e04316130141f2094d7dd0cb3
* | | | Merge "Add audio_input_flags_t to IAudioFlinger::openInput" into lmp-devGlenn Kasten2014-07-177-13/+23
|\ \ \ \ | | |/ / | |/| |
| * | | 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
* | | | Merge "Revert "Revert "Enable extended precision PCM output in ↵Andy Hung2014-07-171-1/+1
|\ \ \ \ | | | | | | | | | | | | | | | AudioFlinger""" into lmp-dev
| * | | | Revert "Revert "Enable extended precision PCM output in AudioFlinger""Andy Hung2014-07-171-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This reverts commit ce83432a922e55d68625aad854f8f6520db395bc. Change-Id: I2d005bfe091beef810c9ddfb53e308fa0e47b355
* | | | | Merge "Camera HAL3: migrate from partial quirks to partial result" into lmp-devZhijun He2014-07-1710-75/+170
|\ \ \ \ \
| * | | | | Camera HAL3: migrate from partial quirks to partial resultZhijun He2014-07-1610-75/+170
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | - Enable the normal partial result path for HAL3.2, the quirk is only used for the HAL version lower than HAL3.2. The partial quirks is no longer supported for HAL3.2 or higher versions. - Add CameraDeviceBase getDeviceVersion API. - Fix some build warnings Change-Id: I7a1b03d4d5fd5258d2addfba4368bee2ba691337
* | | | | | Merge "Improve dumpsys for capture threads" into lmp-devGlenn Kasten2014-07-172-4/+6
|\ \ \ \ \ \ | | |_|/ / / | |/| | | |
| * | | | | 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
* | | | | | Merge "Revert "Enable extended precision PCM output in AudioFlinger"" into ↵Andy Hung2014-07-171-1/+1
|\ \ \ \ \ \ | | |_|/ / / | |/| | | | | | | | | | lmp-dev
| * | | | | Revert "Enable extended precision PCM output in AudioFlinger"Andy Hung2014-07-171-1/+1
| | |_|/ / | |/| | | | | | | | | | | | | This reverts commit a494e82c3c73508b4d3cfe89e9134de94e12fd31.
* | | | | Revert "sound trigger: added permission checks"Eric Laurent2014-07-172-35/+9
| |/ / / |/| | | | | | | | | | | This reverts commit dcb162f3aed807d1e51f29e2454ade584439992e.
* | | | 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