summaryrefslogtreecommitdiff
path: root/audio/common/all-versions/default/service/service.cpp
AgeCommit message (Collapse)Author
2022-03-11Merge TP1A.220225.003Scott Lobdell
Change-Id: Iad9e960e034127e3320f78d2eadd23e36300b10c
2022-03-07Merge TP1A.220209.001Deyao Ren
Change-Id: Ia39c40c82efb5b7c7d2ad4c464b75e6fd4e073aa
2022-02-16Audio: Load Bluetooth AIDL HALJosh Wu
Test: m android.hardware.audio.service Bug: 203490261 Change-Id: If518ed69331489bd9aeb2a0c58e17c2917e3c0cf
2022-02-16audio: use binder threadpoolJasmine Cha
Support to communicate with other service with AIDL interface. Bug: 215463744 Test: build pass Signed-off-by: Jasmine Cha <chajasmine@google.com> Change-Id: I13da2121623779b0ba21d29cf39c11abc7b96dd9
2022-02-05Audio HAL V7.1: Update the default implementationMikhail Naganov
Split versions of "common" and "core" types from the version of the interfaces. "Common" and "core" versions are set to 7.0. Implemented new methods of V7.1 interfaces. Bug: 214426419 Test: m android.hardware.audio@7.1-impl Test: m android.hardware.audio@7.0-impl Test: m android.hardware.audio.effect@7.0-impl Test: m android.hardware.audio@6.0-impl Change-Id: Ic4c44d4ac9bbfa7b62695866b9aa7473658390b2 (cherry picked from commit 7d01538eeccf81aa57da61b4abba830d34582195) Merged-In: Ic4c44d4ac9bbfa7b62695866b9aa7473658390b2
2022-01-25Audio HAL V7.1: Update the default implementationMikhail Naganov
Split versions of "common" and "core" types from the version of the interfaces. "Common" and "core" versions are set to 7.0. Implemented new methods of V7.1 interfaces. Bug: 214426419 Test: m android.hardware.audio@7.1-impl Test: m android.hardware.audio@7.0-impl Test: m android.hardware.audio.effect@7.0-impl Test: m android.hardware.audio@6.0-impl Change-Id: Ic4c44d4ac9bbfa7b62695866b9aa7473658390b2
2022-01-14Merge TP1A.211116.001Scott Lobdell
Change-Id: Iba540947aa34084b7ef3210f93332bb757b4bb43
2021-11-09Fix the integration issue for HAL 2.2Alice Kuo
Bug: 150670922 Bug: 197297498 Test: A2DP & LE aduio stream works well with HIDL 2.1/2.2 Change-Id: I64113dd4a229874b2d17ae71d088abafd8197cfd
2021-09-30Merge TP1A.210812.002Haamed Gheibi
Bug: 198367246 Change-Id: I64df13aefdc06c8bb9f9b3a4256c41879e15e515
2021-09-29audio: ignore SIGPIPE in audio HAL processWeiyin Jiang
Ignore SIGPIPE in audio HAL process. CRs-Fixed: 3032815 Change-Id: Ib120f3ea27f609d7aca1e06e8f90f04d8f957c26
2021-06-17audio: Ignore SIGPIPE in the default audio HAL wrapperMikhail Naganov
It could happen that a service process receives a SIGPIPE while providing a dump due unexpected pipe closure on the other side. This should not lead to a service termination. Ignoring SIGPIPE is a normal practice for system services. Bug: 191123848 Test: adb shell kill -s 13 <pid-of-audio-hal> Change-Id: I9c1d170b76aa27203206e8fd2ce2fc3f5431baac
2021-02-08Merge SP1A.210208.001Daniel Norman
Change-Id: I0c596171de3bcead62935db7388b784e55444080
2021-02-05Default Audio HAL service: add V7, remove V2Mikhail Naganov
Modify the list of supported audio HAL versions in android.hardware.audio.service: add V7, remove V2. Bug: 171260360 Test: m Change-Id: I7ecdac0b9a30e51e2b1b54d7a56dfc9d62649fb4
2020-10-16Merge SP1A.201015.001Scott Lobdell
Change-Id: I6c897691c5d6474603c6d45f7d4050bdadf606d6
2020-10-09Introduce LE Audio software provider for bluetooth audio 2.1Grzegorz Kolodziejczyk
Patch introduces LE Audio software encoding provider for bluetooth audio 2.1. Bug: 150670922 Tag: #feature Test: vts-tradefed run vts -m VtsHalBluetoothAudioV2_1TargetTest Sponsor: jpawlowski@ Change-Id: If668593be7a46c9abcc45d21c5bdb9b493864cc1
2020-02-06Merge RP1A.200204.001Steven Laver
Change-Id: Icdc452e8cf70e432759c112a5b5b12b61e40f0bc
2020-01-31audio: Fix invalid BT A2DP interface nameMikhail Naganov
The correct name is: android.hardware.bluetooth.a2dp@1.0::IBluetoothAudioOffload Bug: 148648456 Bug: 148648729 Bug: 148648469 Bug: 148648355 Test: DeviceBootTest.DeviceBootTest#SELinuxUncheckedDenialBootTest Change-Id: I50d3486159f17697b06e9680b85586b1935a9ccc
2020-01-29audio: Remove dynamic dependency on HIDL interface libs from serviceMikhail Naganov
This is intended to reduce memory footprint of the default HAL service. The inteface libraries were only used to retrieve interface descriptors and use generated code to register as service. This code was replaced with static code from HIDL transport library. Bug: 148115870 Test: check audio on devices Change-Id: Ie8713d513cfbde64120546ba0db1cf80fd366138
2020-01-07Merge RP1A.200106.001Steven Laver
Change-Id: Ie811be9aed9faa15d56e8a0eac5e27867dfed863
2019-12-11add SoundTrigger HAL V2.3Nicholas Ambur
add support for model parameter control APIs with THRESHOLD_FACTOR as the first supported parameter Bug: 141929369 Test: Tested manually with test app, GTS test gts-tradefed run gts-dev -m GtsAssistIntentTestCases and VTS test vts-tradefed run vts-hal -m VtsHalSoundtriggerV2_3Target Change-Id: I79d2b6365cc63fbdfe06fa94f1d0878903cbf554
2019-10-25Merge RP1A.191024.001Steven Laver
Change-Id: I22b7b600104c6d7fd4d448dd2efdeb20f95ca28b
2019-10-08Introduce Audio V6Kevin Rocard
Generate with ./newHal.sh 5.0 + some typo fix in the .hal + some clang-tidy run This new HAL is an exact copy of the V5. It will be modified in following patches while R is developed. Test: push V6 to device and check audio works fine Bug: 134940862 Change-Id: Ic25d30175032e76e0d3208fb876451de9ae6b7b4 Signed-off-by: Kevin Rocard <krocard@google.com>
2019-10-07Change some formatting for better script parsingKevin Rocard
Test: Compile Bug: 134940862 Change-Id: Ibbafdcaa6e0bfa8fd2b80f4a6c9ac6ac95058f93 Signed-off-by: Kevin Rocard <krocard@google.com>
2019-08-28Merge RP1A.190822.001Scott Lobdell
Change-Id: Ifb22f79184c6a41442311b607964c81fccbb99f0
2019-07-01Audio service: Refactor register interfaceKevin Rocard
Remove all per interface version boilerplate. Adding a new version now requires only including the file and adding the version name to the list. Bug: 134940862 Test: adb shell lshal Change-Id: Ib6b99d7a2c2079d914970fbe804aaf3c78c143ce Signed-off-by: Kevin Rocard <krocard@google.com>
2019-06-21Bluetooth: Remove registration of A2DP 1.0 HALSrinu Jella
- Remove internal A2DP 1.0 HAL from registration as it is no more going to be supported. Change-Id: I259ae8914e4a015541849bb4849024a9c80fa140 CRs-Fixed: 2475750
2019-02-12Merge QP1A.190212.003Scott Lobdell
Change-Id: I6b2f3fdbf247a232e46f8472088058f0d4b6bad8
2019-02-06Merge "Register Bluetooth Audio Hal v2 within Audio HAL" am: f7b6c73725 am: ↵Cheney Ni
6cef9b0a49 am: 1c9ef33a17 Change-Id: I1868f8093259855c2331231678dc71f3f2522735
2019-02-06Register Bluetooth Audio Hal v2 within Audio HALCheney Ni
Register Bluetooth Audio Hal v2 by Audio HAL service so Bluetooth stack can fetch the service interface as well. Bug: 111519504 Test: manual Change-Id: I3ac8c0472c58dd4d8a9b1ad8408313b80282cc85
2019-01-23Merge QP1A.190122.001Scott Lobdell
Change-Id: Ie7680fe9a660b370a700dd624c75c9e3f879a509
2019-01-17Enabling sound trigger V2_2mike dooley
V2_2 has the same functionality as V2_1 except it adds one new api, getModelState. Note: V2_1 will be removed in a subsequent cl. Test: built android and tested using SoundTriggerTestApp Bug: 70206501 Change-Id: Ia1567bfc988482195b89b8d6a0901d51e870bfbf
2019-01-14Merge QP1A.190107.001Scott Lobdell
Conflicts: wifi/1.3/default/wifi_chip.cpp wifi/1.3/default/wifi_feature_flags.cpp wifi/1.3/default/wifi_feature_flags.h wifi/1.3/default/wifi_legacy_hal_stubs.cpp Change-Id: Ia498209a96e10b7d50d4d1447de95898e0eaa08b
2018-12-02Audio HAL V5: Introduce HAL V5, equal to V4 for nowKevin Rocard
find -name 4.0 | xargs -I@ cp -r @ @/../5.0 find 5.0 */5.0 -type f | xargs sed -Ei 's/V4/V5/;s#(@|/)4.0#\15.0#' find -name *cpp -o -name *.h | xargs sed -i 's/VERSION == 4/VERSION >= 4/g' mv {4.1,5.0}/config/audio_policy_configuration.xsd Then a manual update to Android.bp to add V5 support. Then a manual update to service.cpp to add support for loading 5.0. If someone knows a way to avoid copying the .hal, it would be great. They will be 99% identical between V4 and V5. Bug: 118203066 Test: vts-tradefed run commandAndExit vts --module VtsHalAudioEffectV2_0Target vts-tradefed run commandAndExit vts --module VtsHalAudioV2_0Target vts-tradefed run commandAndExit vts --module VtsHalAudioEffectV4_0Target vts-tradefed run commandAndExit vts --module VtsHalAudioV4_0Target Change-Id: If99a5645d19c9780019704ea4f51f8114d83ee8f Signed-off-by: Kevin Rocard <krocard@google.com>
2018-10-17Merge P_TO_Q_5054975Steven Laver
Conflicts: audio/common/all-versions/default/service/android.hardware.audio@2.0-service.rc audio/common/all-versions/default/service/service.cpp graphics/composer/2.2/default/android.hardware.graphics.composer@2.2-service.rc Change-Id: Ide86a3d58408d9a6da6bb13dce6fa4b43ebc0b6e
2018-10-09Merge QP1A.181008.001Diego Wilson
Change-Id: I3502f79b1ba0802a892ef28d7bf429fae2d78e52
2018-09-26audio: Allow vendors to configure hwbinder RPC buffer sizeMikhail Naganov
If persist.vendor.audio.hw.binder.size_kbyte property is set, its value is used to configure the size of hwbinder's MMap buffer. Bug: 114776290 Test: set the property, check logcat Change-Id: Icb6a4d0ebe98eb702201f8a9f0fed3a91a24f7ba
2018-08-07audio_hal: Optimize binder buffer allocation.Ramjee Singh
Optimize binder buffer allocation based on maximum page size observed during peak usage. CRs-Fixed: 2290589 Change-Id: I308f3eaff5ada787426526e1efcc787cd4f12409
2018-03-26audio: Register bluetooth service with audio HALRevathi Uddaraju
Register bluetooth audio library with audio HIDL service, Changes required for Split A2dp implementation. CRs-Fixed: 2050029 Change-Id: I8eb958b7fb283d506c19b009e595e6045c3a5e8c
2018-03-12audio: Register Bluetooth service with audio HALAniket Kumar Lata
Register Bluetooth audio library with audio HIDL service. Changes required for A2DP offload implementation. Bug: 63932139 Bug: 68824150 Test: A2DP offload verified on supported codecs Change-Id: Idd89f0d28903579d42bd0f33b0194fb8dc2ceaaa (cherry picked from commit c5a5203114b7696f5287c0ebada84b35df1be0f7)
2018-03-09audio: Register Bluetooth service with audio HALAniket Kumar Lata
Register Bluetooth audio library with audio HIDL service. Changes required for A2DP offload implementation. Bug: 68824150 Test: A2DP offload verified on supported codecs Change-Id: Idd89f0d28903579d42bd0f33b0194fb8dc2ceaaa
2018-03-06Audio V4: Declare support for 4.0 interfaceKevin Rocard
Declare that the audio HAL service supports 4.0 as well as 2.0 interface. Formatting done by clang-format. Test: compile Bug: 38184704 Change-Id: Iee842b141e1218f4f3779187339bde40680ec78a Merged-In: Iee842b141e1218f4f3779187339bde40680ec78a Cherry-picked from master Signed-off-by: Kevin Rocard <krocard@google.com>
2018-03-06Audio V4: Move service entry point to commonKevin Rocard
The HAL audio service entry point is not version dependant and is common to core and effect. Bug: 38184704 Test: compile Change-Id: I143cf28490afc978791ccd7e8aeee2106cbb2ebd Merged-In: I143cf28490afc978791ccd7e8aeee2106cbb2ebd Cherry-picked from master Signed-off-by: Kevin Rocard <krocard@google.com>
2018-03-05Audio V4: Declare support for 4.0 interfaceKevin Rocard
Declare that the audio HAL service supports 4.0 as well as 2.0 interface. Formatting done by clang-format. Test: compile Bug: 38184704 Change-Id: Iee842b141e1218f4f3779187339bde40680ec78a Signed-off-by: Kevin Rocard <krocard@google.com>
2018-03-02Audio V4: Move service entry point to commonKevin Rocard
The HAL audio service entry point is not version dependant and is common to core and effect. Bug: 38184704 Test: compile Change-Id: I143cf28490afc978791ccd7e8aeee2106cbb2ebd Signed-off-by: Kevin Rocard <krocard@google.com>