summaryrefslogtreecommitdiffstats
path: root/include
Commit message (Collapse)AuthorAgeFilesLines
* audio_policy: Add EVRCB & EVRCWB formats for msm7x27asakindia1232013-07-061-0/+2
| | | | | | Needed to compile audio hal from caf Change-Id: Ibac3cf0b58de0bb6ee621e0498322318464492a0
* qcom-fm: audio: add support for FM featureMingming Yin2013-03-243-0/+15
| | | | | | | | | | | -Add set_fm_volume() to set handle fm volume Change-Id: I2a2c6a60b9855d9360ff8fb90849517e77e5faab Conflicts: audio/AudioPolicyManagerBase.cpp include/hardware_legacy/AudioSystemLegacy.h
* fmradio: cleanup QCOM_FM_ENABLED/STE_FM defs and ifdefGiulio Cervera2013-02-161-16/+45
| | | | Change-Id: Ia34dca04e6b9de3509987ad9d88a5fecc3820e2f
* Merge tag 'android-4.2.2_r1' of ↵Steve Kondik2013-02-122-1/+2
|\ | | | | | | | | | | https://android.googlesource.com/platform/hardware/libhardware_legacy into 1.1 Android 4.2.2 release 1
| * audio policy: notification delay - DO NOT MERGEEric Laurent2012-11-081-0/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | merge from master: "audio policy: fix notification start delay The mechanism delaying notifications in case of muliple active outputs with long latencies must take into account recently paused audio tracks. Bug 7400428." Change-Id: I4ac9dfac81336e33f475b4f28df82713707d0c46
| * Fix stop supplicant apiIrfan Sheriff2012-11-061-1/+1
| | | | | | | | | | Bug: 7227463 Change-Id: I4576e223c69dd67bd714fefecf0a1047770362fd
* | STE_FMRDIO:enable STE_FM radioAlin Jerpelea2013-01-291-1/+11
| | | | | | | | Change-Id: I77ff268d37f0359c45600132281d5620c7c2d61d
* | audio policy :Added EVRC and QCELP for 7x30 HAL compilationKalyani polepeddy2013-01-091-0/+2
| | | | | | | | Change-Id: I46ac52fa5e04edf1d55302f3868427fa35b378d7
* | audio: Add support for QCOM audio devices, formats, and channelsMingming Yin2012-12-233-1/+49
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | - Add QCOM supported devices, fomats, and input/output channels in AudioPolicyManagerBase - Add QCOM supported devices in AudioSystemLegacy.h Change-Id: I5e2977a630c2bf9211af62d97ae024c5c57075f9 libhardware_legacy: Add support for DirectTrack - Add support for DirectOutput in libhardware_legacy - Add new APIs to AudioStreamOut base class - Add audio output flags to openOutputStream Change-Id: I301b3b9b2c2ad08dba75f616008d692e825af96f audio: add missing QCOM audio devices, formats, and channels - Add support for FM I/O devices and communication device for VOIP - Add support for mp2 audio format - Add support for 6.1 audio channels Change-Id: I7b3042902c658dc8e5dfa34719fb80d18f3ff4e7 libhardware_legacy: Support LPA Playback Add support to enable Playback in LPA mode When Alarm is playing on headset+spkr, if LPA playback is selected STARTEGY_MEDIA gets selected and switches device from Combo device to Headset. - Fix the issue by selecting Combo device only even incase of LPA when stream ALARM/NOTIFICATION is active. Change-Id: Ifde78a744a17ce613eac92b4c3bcf875167aaeb6 Add ifdefs for QCOM enhanced features Change-Id: I87ce3503ed85458c775d0c8c7fa649d8194e28e3
* | wifi: Add support for AP module argsSteve Kondik2012-12-201-0/+5
| | | | | | | | | | | | * Needed for Samsung's goofy handling of AP mode Change-Id: I5ec65460b7c9f8ef34170473cf1bdaa36587767b
* | Add support for ICS audio blobsRicardo Cerqueira2012-11-221-0/+2
|/ | | | Change-Id: If0cde8860a5cb1fa63a40787bfe001cf18e9be6d
* audio policy: tune voice/video chat volumesEric Laurent2012-10-171-0/+2
| | | | | | | | | Add new volume curves for VOICE_CALL stream type to improve voice/video chat volume on speakers. Bug 7346643. Change-Id: Ib282a97570d2234deec6b58391bdfc45846d9cc0
* Remote audio submix always has priority for media, only plays mediaJean-Michel Trivi2012-10-111-1/+0
| | | | | | | | | | | Don't use force use mechanism for remote audio submix routing. Prevent streams of strategy sonification to be played over remote audio submix (e.g. WFD) and HDMI Bug 7318180 Change-Id: Ic5c87d3c568873dffea9002cf87ecf42b403cde6
* AudioPolicyManager supports querying active record sourcesJean-Michel Trivi2012-10-102-0/+2
| | | | | | | | | Add support for querying whether there is currently a recording underway from the specified audio source. Bug 7314859 Change-Id: I8894845b176241134870af5df2bebc5ef27e4de4
* audio policy: add forced uses for systemEric Laurent2012-10-081-0/+2
| | | | | | | | | | | | | The volume and routing policy of AUDIO_STREAM_ENFORCED_AUDIBLE is now controlled by AudioService by means of new forced use type AUDIO_POLICY_FORCE_FOR_SYSTEM with config AUDIO_POLICY_FORCE_SYSTEM_ENFORCED. Property ro.camera.sound.forced is not used anymore. Bug 7032634. Change-Id: I742b0eebbe6b013f61d199846454a06411b52bc8
* Support audio recording while remote submix is activeJean-Michel Trivi2012-09-181-1/+4
| | | | | | | When evaluating if an audio record is active, do not count inputs opened on "virtual" devices, such as remote submix, as active. Change-Id: If19c321cf673e3bdf4c3f81e73c163190df7c21e
* audio: new audio devices enumsEric Laurent2012-09-072-2/+10
| | | | | | | | | | Changes for new audio devices enums: - legacy audio HAL wrapper provides conversion between new and old device enums. It exposes a rev 2.0 audio device API to the audio framework and allow legacy implementation to use old device enums. - AudioPolicyManager: use standard enum value for no device (0). Change-Id: I855d72291d672cdd8a6641bedb228634a54b7d9d
* Update Audio Policy Manager for remote submixJean-Michel Trivi2012-09-072-0/+2
| | | | | | | | | | | | Define a new forced mode to route media to remote submix. Update media routing rules according to mode. Modify device connection management for remote submix. Note that this CL doesn't implement changes to not prevent audio recording when WFD is on, as audio recording is currently limited to one input. Change-Id: I458fe1802705da2d091ff82e536dc3e7f092f291
* Update AudioPolicyManagerBase to only use audio_devices_tJean-Michel Trivi2012-08-243-4/+6
| | | | | | | | | | | | 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
* Remove unused member variables in AudioPolicyManagerBaseJean-Michel Trivi2012-08-201-2/+0
| | | | | | | | The fields for the lists of input and output IOProfile are not used in the AudioPolicyManagerBase class. Those are actually stored inside each HwModule instance. Change-Id: Iebb9fa5b7599a74013fd785a87de692890a89758
* effect_descriptor_t const correctnessGlenn Kasten2012-07-242-4/+4
| | | | Change-Id: I734155d4cebb22b180f25290332c7c48be1e2b36
* audio policy: fix HDMI hot plugEric Laurent2012-06-211-5/+10
| | | | | | | | | | | When an HDMI sink is connected it is possible that a direct output is made available for multichannel audio. In this case, the list of outputs available to reach the HDMI device after the connection is different from before. checkOutputForStrategy() must take this into account in order to invalidate tracks so that they can be re connected to the multi channel output if necessary. Change-Id: Id0baeb51688eba8017fe96bf92aaac52eb8e0f59
* audio policy: improve support for direct outputsEric Laurent2012-06-042-3/+11
| | | | | | | | | | | Add the capability to query supported parameters for direct outputs after a device is connected. This allows to dynamically update the output profile for devices like HDMI where the capabilities depend on the connected sink. Also added very verbose log mode for volume and mute. Change-Id: I1d4ba8e7dbc3e1af883582857ce93240441e551c
* audio policy: allow disabling A2DP for media.Eric Laurent2012-05-221-0/+1
| | | | | | | | | Added FORCE_NO_BT_A2DP forced use to allow applications to override default policy to use A2DP whenever connected. Bug 6485897. Change-Id: I784271c062294fbe1aff7884965075b40c68dc24
* audio policy: fix in call volume problem.Eric Laurent2012-05-151-2/+10
| | | | | | | | | | | | | | | | When switching audio path, it is sometimes required to temporarily mute certain streams to avoid glitches. The unmute command is sent with a delay but the volume applied when unmuting is computed according to the state at the time of mute. If the device selection changes after the delayed unmute is programmed the new volume will not correspond to the new device. setStreamMute() now accepts a device selection as input parameter which is used instead of current device for volume computation. Bug 6497819. Change-Id: I355ebf9e1afe814fa5c2723bda9c40e58f921b46
* Delete unused function.Jeff Brown2012-05-111-3/+0
| | | | | | | | | | | | | | set_last_user_activity_timeout() is no longer used or useful. It opens a sysfs node that no longer exists that used to be published by a daemon that is no longer even compiled and that is about to be deleted. It used to be called by the power manager with a huge value whose purpose was essentially to disable the timeout feature altogether. Long live dead code! Bug: 6435382 Change-Id: If8f97a66f4e963a11e1c6b67ad97b41b2613043e
* system and UI sounds volume policyEric Laurent2012-04-261-2/+4
| | | | | | | | | | | | | Added specific volume curves for AUDIO_STREAM_SYSTEM, AUDIO_STREAM_ENFORCED_AUDIBLE and AUDIO_STREAM_DTMF. Volume for these streams tracks AUDIO_STREAM_RING on phones and AUDIO_STREAM_MUSIC on tablets but is contrained in the range -24dB to -6dB on speaker and -24dB to -12dB on headset. STRATEGY_ENFORCED_AUDIBLE routing policy is now the same as STRATEGY_MEDIA in countries where not enforced. Change-Id: If58d96559bfe2bbff4cd94c631d5933bd940778e
* audio_policy: set some reasonable defaults if audio_policy.conf is not foundDima Zavin2012-04-241-0/+1
| | | | | Change-Id: I25f7407c34b3032d4e77a27a4ac47b648098d9b0 Signed-off-by: Dima Zavin <dima@android.com>
* audio_policy: look for config file in /vendor firstDima Zavin2012-04-231-0/+1
| | | | | Change-Id: If10308f688437e1682e4104120772cfce16e9d89 Signed-off-by: Dima Zavin <dima@android.com>
* audio policy: volume burst when switching deviceEric Laurent2012-04-231-1/+2
| | | | | | | | | | | | | | The addition of the per device volume feature has introduced a problem where a volume burst can be heard in the headphones just after insertion if the speaker volume is much higher than the headphones volume. Added a temporary mute of the output when switching device to force volume ramp to 0 and back up to new volume. Issue 5984108. Change-Id: I5c9ffbbcadd12d25c78cc2614d351346b8186c55
* audio policy: add support for deep audio buffersEric Laurent2012-04-201-3/+8
| | | | | | | | | | Added definitions for parsing deep buffer flags in output profiles. Make sure that sound start is delayed enough to allow duck/mute effect to apply before starting a notification on an output with lower latency. Change-Id: I1578e245da19d1a0f9ec62a2ea6dddaf82ea282b
* rename audio policy flagsEric Laurent2012-04-182-7/+7
| | | | Change-Id: Ic42eba3432671f651c9703a07fe7b429a8ec0dff
* audio policy: added rules for USB audio devicesEric Laurent2012-04-061-0/+3
| | | | Change-Id: If712b0c7fcf281d66d34614529f3433e56e058fb
* audio policy: load audio hw modulesEric Laurent2012-04-032-30/+62
| | | | | | | | | | | | | 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
* audio policy: use configuration fileEric Laurent2012-04-032-27/+129
| | | | | | | | | | | | | | | | The audio policy manager implementation now reads a configuration file at boot time that contains descriptors for available audio hardware modules and for each module the profiles of available inputs and outputs streams. The configuration file path on the target is: /system/etc/audio_policy.conf. A default configuration file is given that defines a basic configuration with one primary audio hw module capable of playback and capture. Each platform or device should have its own audio_policy.conf file. Also removed default value of fromCache argument of getDeviceForStrategy() and getNewDevice() methods. Change-Id: I0c773d2331508bbc787f89b123dd6a7b8c10d459
* Only duplicate notifications when no media is playingJean-Michel Trivi2012-04-022-0/+8
| | | | | | | | | | | | 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
* Merge commit '5b71e6f'Mike Lockwood2012-03-211-0/+7
|\ | | | | | | | | | | Add an implementation of get_next_write_timestamp. Change-Id: Ie8e19307bafdb057d06bf3c536380c5740f830a6
| * Add an implementation of get_next_write_timestamp.John Grossman2011-10-271-0/+7
| | | | | | | | | | | | | | | | | | | | Add a default implementation of get_next_write_timestamp to the C <--> C++ legacy audio HAL implementation allowing HALs using the legacy C++ AudioStreamOut to overload and implement get_next_write_timestamp. Default implementation returns INVALID_OPERATION to indicate that the functionality is not supported. Change-Id: I087347649e9ba186a74cb34aaadf989bf90720fe
* | Merge commit '617c80a'Mike Lockwood2012-03-212-0/+9
|\ \ | |/ | | | | | | | | | | | | | | Add a bridge implementation of get_master_volume. Conflicts: audio/audio_hw_hal.cpp Change-Id: Icff9d8dce05d1d811fca815cc39cb38a1df293f9
| * Add a bridge implementation of get_master_volume.John Grossman2011-10-272-0/+9
| | | | | | | | | | | | | | Add an implementation of the new get_master_volume method to bridge from the new C only audio HAL to the old C++ legacy audio HAL. Change-Id: I5c29814623b5141b0c69927ea60be9873c8a5dab
* | audio policy: use audio_devices_t when appropriateEric Laurent2012-03-082-21/+23
| | | | | | | | Change-Id: I0b4e2ff705fce96b40fdda28b1bc4b514438bec6
* | audio policy: spaced comments in header fileEric Laurent2012-03-071-0/+28
| | | | | | | | Change-Id: Ie72dcb9e33afb217bb7e37081500a7fc53d7a047
* | audio policy manager: more generic A2DP impl.Eric Laurent2012-03-071-20/+43
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This change makes support for A2DP related audio policy more generic: -removed WITH_A2DP compilation switch -use output profile descriptors listing the parameters (sampling rate, format...) devices and attributes (low power, tunneling...) for each available output. All the behavior specific to A2DP is derived from the A2DP output profile descriptor. - removed obsolete a2dpUsedForSonification() method. This is a first step towards a more generic support for different audio hardware modules (USB, HDMI) and output streams supporting different combinations of parameters (sampling rate, format...) and attributes (low power, tunneling...). Ultimately, the hw modules and output descriptors will loaded from a configuration file. Change-Id: Ife3e49e1afbcb72613bfc8ce38919bb087ca85ea
* | libhardware_legacy: Remove set_screen_stateTodd Poynor2012-02-181-3/+0
| | | | | | | | | | | | | | | | | | | | | | The early-suspend/late-resume interface to /sys/power/state is being moved to the default/legacy Power HAL. The emulator interface is being moved to the emulator Power HAL. Change-Id: I66a1e611e6d907f20335f047001745f818dfc846 Signed-off-by: Todd Poynor <toddpoynor@google.com>
* | Merge "Fixes for concurrency support"Irfan Sheriff2012-02-141-8/+1
|\ \
| * | Fixes for concurrency supportIrfan Sheriff2012-01-201-8/+1
| | | | | | | | | | | | Change-Id: Ia7251dc86184fff710234c70a8ad54a6b245809a
* | | Use audio_in_acoustics_t consistentlyGlenn Kasten2012-01-271-1/+1
| | | | | | | | | | | | Change-Id: I9875afdf21937c88a5decc9d94e89fddffc3519e
* | | Merge "Use audio_format_t consistently"Glenn Kasten2012-01-201-2/+2
|\ \ \
| * | | Use audio_format_t consistentlyGlenn Kasten2012-01-121-2/+2
| | | | | | | | | | | | | | | | | | | | | | | | Was int Change-Id: I8cc1beaa8006fb0a135cf1135955155090c8e87e
* | | | Merge "Audio policy HAL set_ringer_mode is deprecated"Glenn Kasten2012-01-202-4/+0
|\ \ \ \