summaryrefslogtreecommitdiffstats
path: root/include/hardware_legacy/AudioPolicyInterface.h
Commit message (Collapse)AuthorAgeFilesLines
* Rename setStreamOutput to invalidateStreamGlenn Kasten2014-02-281-3/+2
| | | | | | And simplify by removing the unused I/O handle parameter 'output'. Change-Id: Ie9c4df17a7378066312d4ed8790fda7a9125c95e
* Use audio_channel_mask_t in AudioPolicyGlenn Kasten2013-12-161-2/+2
| | | | | | | | | | Also: - use %x format for logging channel masks - use AUDIO_CHANNEL_IN_* constants from system/audio.h instead of AudioSystemLegacy.h symbols - remove redundant casts - use "channelMask" instead of "channels" to avoid possible confusion with channel counts Change-Id: If05d6b1cae5cf1b560cd53a93ae9e592b719ec9e
* Use audio_format_t in AudioPolicyGlenn Kasten2013-12-101-10/+9
| | | | | | Also remove unnecessary default parameters Change-Id: I553c01a98b8c2a3f3fd2ac98724aded3ad3c3022
* Include header files used by this headerGlenn Kasten2013-07-021-0/+1
| | | | Change-Id: I36c6f580c698706b961150978e2124f9235eab12
* Add audio policy API changes for audio offloadRichard Fitzgerald2013-06-271-2/+7
| | | | | | | | | | | | Changes to the API of audio policy for audio offload support: - Add isOffloadSupported() function - Add OUTPUT_FLAG_OFFLOAD - Extend AudioOutputDescriptor to include a sharing count for direct outputs - Pass audio_offload_info_t when opening output streams Change-Id: I5ad26418fdb286eb7ae299d586dd1fd525d48ab9 Signed-off-by: Richard Fitzgerald <rf@opensource.wolfsonmicro.com> Signed-off-by: Eric Laurent <elaurent@google.com>
* Identify remote stream activity, used for notification routingJean-Michel Trivi2013-02-111-0/+1
| | | | | | | | | | | | Add support for checking remote stream activity. Don't route notifications like media when media active remotely. Add remote stream activity query in audio policy HAL. Bug 7485803 Change-Id: Ifb722c7f9ffbfbdc877fec5156bcfc09bec40651
* AudioPolicyManager supports querying active record sourcesJean-Michel Trivi2012-10-101-0/+1
| | | | | | | | | Add support for querying whether there is currently a recording underway from the specified audio source. Bug 7314859 Change-Id: I8894845b176241134870af5df2bebc5ef27e4de4
* Update AudioPolicyManagerBase to only use audio_devices_tJean-Michel Trivi2012-08-241-2/+2
| | | | | | | | | | | | The AudioPolicyManagerBase implementation was using some device enum values from AudioSystemLegacy.h, of type audio_devices, and some from /system/audio.h, of type audio_devices_t. Now only uses audio_devices_t, and associated functions to inspect what audio device type they correspond to. Added #define to represent "no audio device" to clarify code. Removed unused variable in AudioPolicyManagerBase::startOutput() Change-Id: Ibec311dac550d6a806397377206a43bc708914c0
* effect_descriptor_t const correctnessGlenn Kasten2012-07-241-2/+2
| | | | Change-Id: I734155d4cebb22b180f25290332c7c48be1e2b36
* rename audio policy flagsEric Laurent2012-04-181-1/+1
| | | | Change-Id: Ic42eba3432671f651c9703a07fe7b429a8ec0dff
* audio policy: load audio hw modulesEric Laurent2012-04-031-11/+19
| | | | | | | | | | | | | Audio hw modules are now loaded according to configuration data read from audio_policy.conf. They are not loaded anymore from a hardcoded list in AudiFlinger. Output and input streams are opened on the hw module by which they are exposed. Also removed obsolete "acoustics" flags for input streams. Change-Id: I8dc658cc83890d3ac7d5e36c372a03732aa5b0c4
* Only duplicate notifications when no media is playingJean-Michel Trivi2012-04-021-0/+1
| | | | | | | | | | | | Map the NOTIFICATION stream type to a new strategy, named STRATEGY_NOTIFICATION_RESPECTFUL, which differs from STRATEGY_NOTIFICATION in that, when media is playing, the notifications will use the same output as the MEDIA strategy. This will results in the notifications not being duplicated on the speaker when a headset is in use for media playback. Change-Id: I032be0e2d383c69b5b6c912d7174753f5572c4b4
* audio policy: use audio_devices_t when appropriateEric Laurent2012-03-081-1/+1
| | | | Change-Id: I0b4e2ff705fce96b40fdda28b1bc4b514438bec6
* Use audio_in_acoustics_t consistentlyGlenn Kasten2012-01-271-1/+1
| | | | Change-Id: I9875afdf21937c88a5decc9d94e89fddffc3519e
* Merge "Audio policy HAL set_ringer_mode is deprecated"Glenn Kasten2012-01-201-2/+0
|\
| * Audio policy HAL set_ringer_mode is deprecatedGlenn Kasten2012-01-181-2/+0
| | | | | | | | Change-Id: I66ef40ed381151ba61debe20edaa53bece0cc139
* | Fix typosGlenn Kasten2012-01-181-4/+4
|/ | | | Change-Id: Ie0acd07861604e66f571e0c1f43cfdccf12ea691
* audio policy manager: stream volume per deviceEric Laurent2012-01-171-4/+13
| | | | | | | | | | | | | Improve volume management by keeping track of volume for each type of device independently. AudioPolicyManagerBase now keeps track of stream volumes for each device and apply volume according to current device selection. Methods to set and get stream volume now specify the device class. A value for "default" device is always present for each stream and is used if a device is selected and no specific volume was ever set for this device. Change-Id: I06d8f43aa151a09014f7e47e81304c73ff82e9f8
* fix build: method needs to be pure virtual, otherwise needs to be defined.Olivier Bailly2011-10-051-1/+1
| | | | Change-Id: I9dbdd29dc430fbf19a1d9cb8d44a1f9c6f624dbb
* AudioPolicyManager: register effect CPU on enableEric Laurent2011-08-111-0/+1
| | | | | | | | Audio effect CPU usage is now registered on enable and unregistered on disable instead of when the effect is created or destroyed. Change-Id: Icffcede9558d8d41887278f0efef2df430927381
* Audio effects: support for audio pre processingEric Laurent2011-07-121-1/+1
| | | | | | | Audio policy manager: allow registration of audio effects on inputs too. Change-Id: I92efa5b51cfde591052a5c56ba2b0b84de80df0f
* hardware_legacy: provide HAL helpers for legacy audio usersDima Zavin2011-04-271-1/+5
| | | | | | | | | | | | This doesn't actually create a HAL, but rather a set of helper static libraries that device specific libraries (i.e. the old libaudio pieces) can link against to create a proper audio HAL module. We provide an audio_policy static wrapper and audio hardware interface static wrapper. Change-Id: Ie56195447ad24b83888f752dca24674b0afd8a76 Signed-off-by: Dima Zavin <dima@android.com>
* Bug 3352047 Wrong message when adjusting volumeGlenn Kasten2011-02-101-0/+3
| | | | | | Add hidden AudioManager.getDevicesForStream and output device codes. Change-Id: I45be59a2774196a135d013e45f38033036f74257
* Fix issue 3371080.Eric Laurent2011-02-021-0/+2
| | | | | | | | Move isStreamActive() method from AudioFlinger to AudioPolicyManager. iStreamActive() now specifies a time window during which the stream is considered active after it actually stopped. Change-Id: Ib0d7d8f061b9f809d307ecfac40960ef582e5f0f
* Tentative fix for issue 3362362.Eric Laurent2011-01-191-1/+2
| | | | | | | Added an initCheck() method to AudioPolicyInterface to verify successful initialization of AudioPolicyManager. Change-Id: I4c892282dbeb3246ee6c006bd206a3e723bcb71f
* Audio policy manager changes for audio effectsEric Laurent2010-07-201-2/+24
| | | | | | | | | | Added methods for audio effects management by audio policy manager. - control of total CPU load and memory used by effect engines - selection of output stream for global effects - added audio session id in parameter list for startOutput() and stopOutput(). this is not used in default audio policy manager implementation. Change-Id: I3467e64035387cc5272266b1318a5ed788958374
* Log for issue 2203561.Eric Laurent2009-11-031-0/+3
| | | | Added dump() method to AudioPolicyInterface.
* Fix issue 2192181: AudioFlinger must provide separated methods to set ↵Eric Laurent2009-10-211-0/+3
| | | | | | VOICE_CALL stream volume and down link audio volume. Added setVoiceVolume() method to AudioPolicyClientInterface.
* Fix issue 2045911: Camera Shutter tone does not play correctly while ↵Eric Laurent2009-08-271-2/+2
| | | | | | listening to music. Add the possibility to delay routing and volume commands in AudioPolicyClientInterface. The delay is not blocking for the caller.
* Fix issue 1795088 Improve audio routing codeEric Laurent2009-07-171-0/+200
Initial commit for review.