summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* 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-234-17/+151
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | - 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
* Merge "audio_policy: Fix volumes for ICS blob compat" into cm-10.1Ricardo Cerqueira2012-12-231-1/+8
|\
| * audio_policy: Fix volumes for ICS blob compatRicardo Cerqueira2012-12-231-1/+8
| | | | | | | | | | | | | | Allow usage of the default audio_policy source, even if the primary audio HAL is an ICS binary blob Change-Id: I959a925f458e14380c2e5443b1378c4018d9f084
* | wifi: fix samsung wifi logiccodeworkx2012-12-221-7/+4
|/ | | | Change-Id: Ib065c0dffa1265a17f5e4fd6ec0b0ad36bbc7b14
* wifi: Add support for AP module argsSteve Kondik2012-12-203-0/+27
| | | | | | * Needed for Samsung's goofy handling of AP mode Change-Id: I5ec65460b7c9f8ef34170473cf1bdaa36587767b
* wifi.c: allow devices to specify driver delayR. Andrew Ohana2012-12-172-3/+6
| | | | | | | This is necessary on the Samsung smdk4210 tablets. Without the delay, it takes roughly 30 seconds to enable wifi. Change-Id: I6a3419e66958fc72ae60e5294f52124b1180d752
* wifi: support adding p2p0 when starting wpa_supplicantHashcode2012-12-143-0/+3377
| | | | | | | | | | | | | | | | For TI wlan chips in p2p mode we need this omapzoom cherry-pick to start p2p0 correctly. http://www.omapzoom.org/?p=platform/hardware/libhardware_legacy.git;a=commit;h=ccb4c24db795059f1df365d313d80c6b269bc55e By: Arik Nemtsov <arik@wizery.com> On: Tue, 31 Jul 2012 21:21:20 Original commit description: Add p2p0 using an NL80211 command when wpa_supplicant is started, and p2p_supported is enabled. Change-Id: Ibc0ad138513f024672642cc5764a81510aa38625 Signed-off-by: Hashcode <hashcode0f@gmail.com>
* wifi: Choose correct nvram file on samsung hardwareSteve Kondik2012-12-042-4/+42
| | | | Change-Id: I9d428ae61c1ce80d97e6ea513839ed64e8f61440
* power: Add DVFS stubXpLoDWilD2012-11-261-0/+10
| | | | Change-Id: I23837ff88a0a7b23474348b6fe8eee15cfe91e10
* hardware_legacy: allow alternative vibrator implementationsRicardo Cerqueira2012-11-232-0/+12
| | | | | | | | | | | | | | | | | | The native vibrator code in libhardware_legacy assumes the vibrator is always controlled by inputting timers into sysfs (at /sys/class/timed_output/vibrator/enable). This isn't necessarily true, there's an upcoming device which has the vibrator controlled by ioctl() calls. This patch lets the device configuration specify an alternative vibrator implementation throught the variable BOARD_HAS_VIBRATOR_IMPLEMENTATION That variable should point to a sourcefile that implements the vibrator "int sendit(timeout_ms)" function, like this: BOARD_HAS_VIBRATOR_IMPLEMENTATION := ../../device/vendor/model/vibrator.c Change-Id: I78d60480f87ef00a0bab096d7f42e47501def936
* Add support for ICS audio blobsRicardo Cerqueira2012-11-224-1/+52
| | | | Change-Id: If0cde8860a5cb1fa63a40787bfe001cf18e9be6d
* merge in jb-mr1-release history after reset to jb-mr1-devThe Android Automerger2012-10-290-0/+0
|\
| * merge in jb-mr1-release history after reset to jb-mr1-devThe Android Automerger2012-10-190-0/+0
| |\
| | * merge in jb-mr1-release history after reset to jb-mr1-devThe Android Automerger2012-10-170-0/+0
| | |\
| | | * merge in jb-mr1-release history after reset to jb-mr1-devThe Android Automerger2012-10-170-0/+0
| | | |\
| | | | * merge in jb-mr1-release history after reset to jb-mr1-devThe Android Automerger2012-10-160-0/+0
| | | | |\
| | | | | * merge in jb-mr1-release history after reset to jb-mr1-devThe Android Automerger2012-10-120-0/+0
| | | | | |\
| | | | | | * merge in jb-mr1-release history after reset to jb-mr1-devThe Android Automerger2012-10-110-0/+0
| | | | | | |\
| | | | | | | * merge in jb-mr1-release history after reset to jb-mr1-devThe Android Automerger2012-10-100-0/+0
| | | | | | | |\
| | | | | | | | * merge in jb-mr1-release history after reset to jb-mr1-devThe Android Automerger2012-10-090-0/+0
| | | | | | | | |\ | | | | | | | | |/ | | | | | | | |/|
* | | | | | | / | audio policy: active analog dock force usageEric Laurent2012-10-261-1/+2
|/ / / / / / / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Qualify the selection of the analog dock for media by the force use. Bug 7302106. Change-Id: I2ea48fd43866ce8491085bba72a27751b2203401
* | | | | | | | Merge "Fix native crash when driver commands time out" into jb-mr1-devIrfan Sheriff2012-10-181-1/+7
|\ \ \ \ \ \ \ \
| * | | | | | | | Fix native crash when driver commands time outIrfan Sheriff2012-10-181-1/+7
| | |_|_|/ / / / | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Bug: 7361130 Change-Id: Ia076b4ec84a4a0e05ba9eaa53ed732fa041fca6a
* | | | | | | | Merge "audio policy: fix scanning of supported devices" into jb-mr1-devEric Laurent2012-10-181-2/+2
|\ \ \ \ \ \ \ \
| * | | | | | | | audio policy: fix scanning of supported devicesEric Laurent2012-10-171-2/+2
| | |/ / / / / / | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Fix is a bug in checkOutputsForDevice() which makes that we can try to reopen an output stream after a new device is connected because we believe that no opened output is available for this device. Bug 7369475. Change-Id: I2290a9b5ba102657cda495fbb8a995e0003b883a
* | | | | | | | Merge "audio policy: tune voice/video chat volumes" into jb-mr1-devEric Laurent2012-10-182-18/+22
|\ \ \ \ \ \ \ \ | |/ / / / / / / |/| | | | | | |
| * | | | | | | audio policy: tune voice/video chat volumesEric Laurent2012-10-172-18/+22
| | |/ / / / / | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Add new volume curves for VOICE_CALL stream type to improve voice/video chat volume on speakers. Bug 7346643. Change-Id: Ib282a97570d2234deec6b58391bdfc45846d9cc0
* / | | | | | audio policy: update output delayMs in setPhoneStateSathishKumar Mani2012-10-171-0/+16
|/ / / / / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | - Issue: When call is connected in HDMI while playing music, Playback is routed to phone shortly - Cause: delayMs is not updated correctly, and no delay is set when setOutputDevice is called - Fix: update delayMs with biggest mOutput latency and mute STRATEGY_MEDIA on all outputs Bug: 7268860 Change-Id: I12b75443a29ab8485314bd0cbfe5ee4789be5c29 Signed-off-by: Iliyan Malchev <malchev@google.com>
* | | | | | Merge "audio policy: do not route in call audio to HDMI" into jb-mr1-devEric Laurent2012-10-161-20/+24
|\ \ \ \ \ \
| * | | | | | audio policy: do not route in call audio to HDMIEric Laurent2012-10-161-20/+24
| |/ / / / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | In call audio shuold not be routed to HDMI, S/PDIF or USB by default as most platform do not support it. Bug 7339490. Change-Id: Iac4803f3fbde0c321fc7b37ab7ba34af6a16b4aa
* | / / / / Initialize mStrategyMutedByDeviceMarco Nelissen2012-10-161-0/+3
| |/ / / / |/| | | | | | | | | | | | | | | | | | | | | | | | Valgrind found this Change-Id: I24c640c2b0b6cac129c23bfc18828aff005ec952
* | | | | Merge "Remote audio submix always has priority for media, only plays media" ↵Jean-Michel Trivi2012-10-152-6/+5
|\ \ \ \ \ | |/ / / / |/| | | | | | | | | into jb-mr1-dev
| * | | | Remote audio submix always has priority for media, only plays mediaJean-Michel Trivi2012-10-112-6/+5
| |/ / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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
* | | | Merge "Fix native crash" into jb-mr1-devIrfan Sheriff2012-10-121-6/+6
|\ \ \ \ | |/ / / |/| | |
| * | | Fix native crashIrfan Sheriff2012-10-111-6/+6
| |/ / | | | | | | | | | | | | Bug: 6404766 Change-Id: I8d2199fe2f4d48840a237b1ec2d085fe40c06517
* / / AudioPolicyManager supports querying active record sourcesJean-Michel Trivi2012-10-104-0/+22
|/ / | | | | | | | | | | | | | | | | 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-082-13/+20
|/ | | | | | | | | | | | | 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
* fix a typo in uevent_next_eventiMathias Agopian2012-10-011-1/+1
| | | | | Bug: 7114973 Change-Id: I15a4c714b59aeb1d02db00517d70b5f0e5ab22c2
* audio policy: force device update if disconnectedEric Laurent2012-09-261-1/+4
| | | | | | | | | | | Force the new device selection to be applied when a device is disconnected even if none is select. This is to indicate to the audio HAL that current device selection is not valid anymore even if no new device is selected because no audio track is active. Bug 7141149. Change-Id: Iade02fb53a4cc2051fce9da07870c5391396b696
* audio policy: fix crash when closing HDMI outputEric Laurent2012-09-251-0/+1
| | | | | | | | | When a direct output is closed, the vector containing the previously opened outputs must also be updated. Bug 7157451. Change-Id: I575b1f4928cf7527a4a98632fdec7600664a1e1c
* am e0232039: Merge "Restore the ability to use ctrl_interface directory"Jean-Baptiste Queru2012-09-201-1/+13
|\ | | | | | | | | * commit 'e0232039e0a59f7ef4fc67dad178387b2d5fffba': Restore the ability to use ctrl_interface directory
| * Merge "Restore the ability to use ctrl_interface directory"Jean-Baptiste Queru2012-09-201-1/+13
| |\
| | * Restore the ability to use ctrl_interface directoryPaul Drews2012-08-231-1/+13
| |/ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | lihardware_legacy was ALWAYS re-writing the wpa_supplicant.conf file's "ctrl_interface" entry to the value specified as the property wifi.interface, whose value was typically "wlan0". This was designed to allow the wpa_supplicant service to be started with a "socket" directive in its service description in an init.rc file. Under these circumstances, the socket name is exchanged between wpa_supplicant and its WifiService client through an environment variable whose name is derived from wifi.interface and a standard prefix. However, since the "ctrl_interface" entry was always re-written in this way, it broke the ability to use "ctrl_interface" in its standard usage as a directory where the (unix-domain) socket will be exchanged. This change restores the ability to use the standard directory-form ctrl_interface usage by limiting the re-writing of the ctrl_interface entry to cases where it does not look like an absolute path or the "DIR=" form of directory. Change-Id: I96c8656d144c1ea41e25ab0eb0807f7b49193b49 Signed-off-by: Paul Drews <paul.drews@intel.com> Signed-off-by: Andrew Boie <andrew.p.boie@intel.com>
* | Support audio recording while remote submix is activeJean-Michel Trivi2012-09-182-3/+22
| | | | | | | | | | | | | | 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-075-92/+180
| | | | | | | | | | | | | | | | | | | | 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-073-6/+35
| | | | | | | | | | | | | | | | | | | | | | | | 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
* | audio policy: fix ringtone volume on headphonesEric Laurent2012-09-051-2/+3
| | | | | | | | | | | | | | | | | | | | | | When limiting ringtone volume because headphones are connected and music is playing, the volume was not limited against the right music volume. The is because the device used for music (headphone) is not the same as the one used for ringtone (headphone + speaker). Bug 6816207. Change-Id: I3342be1789a1b7c58705812335b788f030bc6d76
* | Update AudioPolicyManagerBase to only use audio_devices_tJean-Michel Trivi2012-08-244-127/+135
| | | | | | | | | | | | | | | | | | | | | | | | 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