summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
...
* audio policy: remove special notifications handling in call for a new SP.Lalit Kansara2018-10-172-91/+0
| | | | | | Not needed anymore as this is handled by NotificationManager. Change-Id: I6f1f7fd0e970e50899eaad184b7481088701428e
* Fix build error for a new SP.Lalit Kansara2018-10-171-2/+1
| | | | | | libserviceutility is removed Change-Id: I8574b4c4798ea21aa63f692ebacd733c760b8d7a
* policy_hal: avoid unnecessary closure of HOTWORD recordingZhou Song2018-09-101-0/+6
| | | | | | | | | | | When the new selected input device is not supported by current input handle, normally it needs to be closed and then create a new one to capture with the new device. While for HOTWORD recording, as the data will either be captured from handset mic or headset mic, recording can be continued on the original input handle. Change-Id: I0f20811effc18433d97b5460b66d4fed21c323b4
* Merge "policy: update voice volume after output device is changed."Linux Build Service Account2018-08-211-4/+8
|\
| * policy: update voice volume after output device is changed.kunleiz2018-08-091-4/+8
| | | | | | | | | | | | | | | | | | | | | | | | During voice call, when device switch from handset to speaker, speaker volume in voice stream is set only after voice call is routed to speaker. In this duration, handset volume is used for voice call even if speaker device is enabled. Fix it by setting voice volume after voice output device is changed. CRs-Fixed: 2281357 Change-Id: I5cf9639cfac788d12c07f3c83b610bc16fc0143c
* | Merge "policy: close voip output when new output is opened by same voip client"Linux Build Service Account2018-08-141-2/+8
|\ \ | |/ |/|
| * policy: close voip output when new output is opened by same voip clientkunleiz2018-08-021-2/+8
| | | | | | | | | | | | | | | | | | | | | | | | | | When USB headset is inserted, VoIP client will stop current output and then open a new output. Due to voip usecase is not closed in time, the new output is opened in handset with FLAG_NONE and fallback to primary output. Fix it by closing voip output when a new output is opened by same voip client in different device. CRs-Fixed: 2272627 Change-Id: I71672675f13f58ed818117d5d0abe0d93204227e
* | audio: do not set deep buffer flag for incall music use case.Preetam Singh Ranawat2018-08-021-1/+1
|/ | | | | | | | | -Deep buffer flag is getting set for incall music use case leading to cts failures related to incall music routing. -do not set deep buffer flag for incall music use case. Change-Id: I5fc7367996d7844dce796cd15f1fc782a631cc89
* audiopolicy: Close the voip output before track is invalidatedRamjee Singh2018-07-051-0/+13
| | | | | | | | | | | | | | | With 3rd party voip application, compress voip usecase is failed to be selected by policy when headset is inserted during voip call. Audio policy invalidates the track first and then closes the direct output. Voip output count is not reset to 0 when new track is created from restoreTrack. APM rejects voip usecae due to this reason. Close voip output before invalidating the track to avoid this issue. CRs-Fixed: 2251583 Change-Id: I9fac1974fae2565daee10fce44f4a14d6961421b
* Audio : Fix output curActiveCount mismatch issueManisha Agarwal2018-06-041-0/+21
| | | | | | | | | | | | | | | | In case of FM concurrency output curActiveCount was not getting updated When FM device is connected then setDeviceConnectionStateInt is called which was not updating the output curActiveCount because of which if any other tracks were added the curActiveCount mismatch issue was occuring and the AudioServer was dying. As a solution to this problem start() and stop() are called when mRefCount is updated in case of FM. CRs-Fixed: 2230307 Change-Id: Ib591127bb60741228ec7ab2341e0512f8f05b5c0
* audiopolicy: Fix ompilation errors with AOSP refreshPreetam Singh Ranawat2018-05-052-3/+1
| | | | | | - Update API signature to inline with AOSP refresh Change-Id: Ie9eac48abc7f10d3673d6dee8c391ff75f44cc1e
* audiopolicy: Fix ompilation errors with AOSP refreshPreetam Singh Ranawat2018-05-031-1/+1
| | | | | | - Update API name to inline with AOSP refresh Change-Id: I70368b65223587363f0dac2c6c5ff1e136d29362
* Merge "policy_hal: Remove closeAllInputs() from custom policy manager"Linux Build Service Account2018-04-292-26/+0
|\
| * policy_hal: Remove closeAllInputs() from custom policy managerkunleiz2018-04-262-26/+0
| | | | | | | | | | | | | | | | | | | | | | In customer policy manager, AudioInputDescriptor::close() is not called to reset curActiveCount. This will cause input stream start fail. Remove closeAllInputs() from custom policy manager. CRs-Fixed: 2218335 Change-Id: I31a6643f6ba5a517212adaae8706667f49558e68
* | policy_hal: Compilation fix for compress voipRamjee Singh2018-04-261-5/+5
|/ | | | Change-Id: I1459b1a51c5e276f7cbf46fa02068e09f79c730d
* policy_hal: close input descriptor during device switchpavanc2018-04-201-0/+1
| | | | | | | | | | | | closeAllInputs is not closing the input descriptor of all the inputs before clearing input list. current active input count on the profile is not getting decremented due to this reason Called close on input descriptor to update curActiveCount correctly CRs-Fixed: 2217362 Change-Id: I8b0739ab179d2f9eaf92ee105d6bcfdcfca34de0
* Merge "policy_hal: Remove the AOSP header paths."Linux Build Service Account2018-03-281-1/+2
|\
| * policy_hal: Remove the AOSP header paths.Revathi Uddaraju2018-03-261-1/+2
| | | | | | | | | | | | | | Remove the AOSP header paths and add them through corresponding header library. Change-Id: I55434d49bc2251c874fc0a974f1b8a43ab90d6cc
* | policy_hal: add support for track offloadRamjee Singh2018-03-201-57/+58
|/ | | | | | | | | | - enable track offload through direct output - restrict track offload for media and game usages - select non direct output when direct pcm is already in use Change-Id: I8eb0e52a01c56b9bcfb00493624dd1e48d41a769
* audiopolicy: Fix ompilation errors with AOSP refreshNaresh Tanniru2018-03-162-22/+25
| | | | | | - Update GetOutputDevice API to inline with AOSP refresh Change-Id: Ia898b25e1d547052a50d691d9550831c6c8d064a
* policy_hal: android upgrade bringup for custom policyPreetam Singh Ranawat2018-02-203-229/+171
| | | | | | | - Modify API signature and associated logic for android upgrade. Change-Id: Iec030d5b1c35d3e2af94681bd8e3b6711c428229
* policy_hal: fix compilation failureZhou Song2017-12-271-2/+2
| | | | | | | This fix compilation failure for platforms with COMPRESS VOIP enabled. Change-Id: I664be06da07d776cae7a2f73e0a225af3f9075eb CRs-Fixed: 2145990
* Merge "policy_hal: fix for MR1 function prototype."Linux Build Service Account2017-12-253-1/+26
|\
| * policy_hal: fix for MR1 function prototype.Sharad Sangle2017-12-233-1/+26
| | | | | | | | Change-Id: I0b4efbbe0620766e68999bb8e9cabe28ff9ba28d
* | Merge "policy_hal: use primary output for voice playback if voip bypassed"Linux Build Service Account2017-12-161-33/+34
|\ \
| * | policy_hal: use primary output for voice playback if voip bypassedZhou Song2017-11-301-33/+34
| | | | | | | | | | | | | | | | | | | | | | | | If voice stream can't go with voip path, then always let it use primary output for playback. CRs-Fixed: 2145990 Change-Id: I0c55f5e8ad806ed7320ac42d832bcd96adc6be9d
* | | Merge "Policy_HAL: avoid setting direct VoIP flag multiple"Linux Build Service Account2017-12-061-4/+18
|\| |
| * | Policy_HAL: avoid setting direct VoIP flag multiplekunleiz2017-11-281-4/+18
| |/ | | | | | | | | | | | | | | | | Block setting direct VoIP flag to normal playback output. Fallback to primary output if a VoIP output is already opened and if there is a request for other. CRs-Fixed: 2145224 Change-Id: I33c553f1e8e3fcb15a9810a0bd9c35780ce7fa34
* / policy_hal: query hal for dp connectionAalique Grahame2017-11-302-0/+23
|/ | | | | | | | Query hal to determine whether display-port is connected and is allowed to be used for voip/voice call CRs-Fixed: 2151861 Change-Id: I82b78315e336baea64234fb8e44f5b875ea6e10f
* Merge "policy_hal: restore device if it differs from the stopped output"Linux Build Service Account2017-11-121-1/+1
|\
| * policy_hal: restore device if it differs from the stopped outputZhou Song2017-11-021-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | Currently, restore device for the output handle can be ignored if the new device is the same with current device of this output, this can lead playback for this output keeps on the route of the stopped output. Instead, need to compare the device with the previous active device of the stopped output to decide if it's a spurious routing request. Change-Id: I3e5eb8b3aa68b050a84515b50b9745864826129a CRs-Fixed: 2136994
* | policy_hal: add bounds checkingAalique Grahame2017-10-121-0/+5
|/ | | | | | | Add sanity check on stream to avoid potential out of bounds access on mRefCount and mStopTime arrays Change-Id: I1ec657e50a5ccb1db80617ce4eac3ac686c9b21f
* Merge "policy_hal: Use right cflags to support Compress VoIP"Linux Build Service Account2017-10-031-1/+1
|\
| * policy_hal: Use right cflags to support Compress VoIPkunleiz2017-09-271-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | COMPRESS_VOIP_ENABLED is defined as false by default in makefile even if COMPRESS_VOIP feature is applicable. Then VoIP rx and tone playback both are configured with direct flag, and reusing same direct output. When tone stop, VoIP rx also is also stopped. Fix by correcting error in makefile to use right cflags to support Compress VoIP. CRs-Fixed: 2115554 Change-Id: Ie06f4859ed6c2c74d48c89bb7cf588df1dd3cff7
* | policy_hal: support for concurrent sound trigger streamsQuinn Male2017-09-142-3/+40
|/ | | | | | | | | This is a work around for platforms that don't properly support concurrent capture in the audio hal - the APM won't preempt sound trigger streams for other sound trigger streams, and will allow concurrent sound trigger streams to be recording at the same time. Change-Id: I8e946862605926ecefd7555a5661d9149b9ea0be
* policy_hal: fix possible NULL dereference reported in KW reportsDhananjay Kumar2017-08-151-8/+8
| | | | | | | Fix possible NULL dereference in custom policy manager inside method getOutputForDevice(). Change-Id: I643d5e8401b03973284cef06820cc1cc914b0658
* audio: policy_hal: Make policy changes for supporting VoIPVikram Panduranga2017-08-152-8/+19
| | | | | | | Simplify audio policy HAL changes to support VoIP using audio path. This is intended for VoIP usecase on direct output stream. Change-Id: I490f225e17bc31d30003dbf90b687eee30bec8db
* policy_hal: update custom audio policy against OPR1.170521.001_AOSPDhananjay Kumar2017-07-281-17/+81
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Update custom audio policy implementation APIs against below O-AOSP updates. 1. audio policy manager: do not reapply same forced usage Skip systematic audio path and volume reevaluation when the new forced configuration for the selected usage is the same as current one. Bug: 38276985 commit: 8dc87a60e69f462e0382d025c335e45699025b48 Change-Id: Id43a5270c666065e099d02d9e52de86b20cb8039 2. audio policy: always provide a valid device address when opening a stream Treble audio HAL mandates that a valid device address is passed when opening an output or input stream and teh device type requires and address. Bug: 37905534 commit: e301410b8495a3702e21019e92d44ade2a3f81d1 Change-Id: I12f2128120b1bbe8530e8c2428e3e2cba1ba1535 3. audio policy: fix global effect attachment Fix logic for global music effects (e.g Visualizer) attachement to output streams. - Consider only outputs with active music sessions first and then all outputs - Reevaluate effect attachment systematically on music playback start/stop and when outputs are opened/closed - Use the same logic every where. Bug: 33397379 commit: 36829f97c0c547d9c6c918e248071cc616818616 Change-Id: Iabc23bc8a24f36b68942b7f32749c535781497b4 4. audio policy: disable concurrent capture Disable concurrent capture until the corresponding UI is available. Restore preemption for HOTWORD audio source. Bug:36891272 commit: 74708e7c4622d65a7798d5fa9347c55583d347fe Change-Id: I1b6c32c2a76ae0e004e14e46fedd596a8844c0d4 Change-Id: I1d59377e9892350b8f6a33de5640a90c4b6cdc5f Conflicts: policy_hal/AudioPolicyManager.cpp Conflicts: policy_hal/AudioPolicyManager.cpp
* policy_hal: Fix compilation issueRamjee Singh2017-07-151-2/+2
| | | | Change-Id: I2ad929d8b4c048501e50187e6f74a201761cf0b5
* policy_hal: fix VoIP rx path use ULL usecasekunleiz2017-07-151-0/+3
| | | | | | | | | | | | | During VoIP use audio path scenario, ULL usecase is used for VoIP rx path due to AUDIO_OUTPUT_FLAG_RAW is set. And primary output is on standby status. Due to it, VoIP tx device cannot get proper device. Fix this by setting primary outupt flag when VoIP RX use audio path. CRs-Fixed: 2051669 Change-Id: I878486d8e0805d9fccae524c5fc2fc6240dfe8f9
* policy_hal: handle direct pcm concurrency from different clientsDhananjay Kumar2017-07-151-1/+29
| | | | | | | | | | | Fallback to non-direct output when direct/track pcm is already active and clients are not same, since reusing output between different clients can lead to continuous teardown of sessions by one client to another. Force deep-buffer when falling back from direct pcm to non-direct outputs. Change-Id: I383b8d526c8a87abe771b3d9d94b2b7c6f7edb6a
* policy_hal: Update prefixes for audio system propertiesAniket Kumar Lata2017-07-151-26/+27
| | | | | | | | | Vendor created android system properties are required to have vendor/qti prefixes. Update vendor specific audio system properties used in policy HAL. CRs-Fixed: 2034869 Change-Id: I2bbe9ff9d8576fc62886679bfc419411422a3d20
* audio: Move audio policy to opensource audio projectBen Romberger2017-07-124-0/+2460
| | | | | | | Move audio policy from hardware audio to vendor opensource audio project. Change-Id: I9531d7be602a33b59ac2c9d217f671c50e7b919a
* Initial empty repositoryJagannadha Raju Pinnamaraju2017-06-210-0/+0