summaryrefslogtreecommitdiff
path: root/include
AgeCommit message (Collapse)Author
2021-10-20audio: Add audio amplifier HALsugisawaEthan Chen
This is a squash of the following commits. commit dabc25c1d073a0f32b706e59b87ac89f67389107 Author: Ethan Chen <intervigil@gmail.com> Date: Fri, 03 Jul 2015 21:35:30 -0700 audio: Notify amplifier HAL of device enable/disable Change-Id: Ice808c9b55a9e3bc8bafe5ca3ff555377d38dd8f commit 5b2337c434acff34d85ae14b9cc2d3507fdffe52 Author: Scott Mertz <scott@cyngn.com> Date: Fri, 11 Sep 2015 12:09:06 -0700 amplifier: add set_parameters method - audio hal should pass the audio_device parameters to the amplifier to allow the amplifier to make decisions based on the additional parameters. For example, we may want to change settings for DTS TrueMedia use case. Change-Id: Iccf6ef7ced2abd2e12e857eea8e580cda15eec04 commit 6a6c815e74bc9c8da0cead508dfa722229ea878f Author: Scott Mertz <scott@cyngn.com> Date: Wed, 21 Oct 2015 10:11:49 -0700 audio_amplifier: fix compilation stdlib.h is needed explicitely with the new toolchain/toolchain options. Change-Id: I876041828310ec8f9fb1e0d636a38cce1977d9b9 commit dcc6b5fd693b129492a45ec75038ca582689bd5d Author: Ethan Chen <intervigil@gmail.com> Date: Fri, 15 Jan 2016 16:12:39 -0800 amplifier: Fix compilation warning * Forward declare str_parms Change-Id: Iafb0ad8e4b0696807cfe568d0f89ce5dad6bcade commit 978ac098d6cde55bc5090ea83a9bda2ee176577b Author: codeworkx <daniel.hillenbrand@codeworkx.de> Date: Sat Mar 24 21:30:34 2018 +0100 audio_amplifier: add hooks for stream parameter manipulation This allows to modify audio parameters before the first device selection happens which is necessary when setting ANC parameter since it must happen before audio hal hits voice_start_call() and selects devices. If setting ANC after stream has been started it will trigger a re-selection of devices and cause a short downtime. Change-Id: Icfddab5ce27235c1567a0557e63b3a7421778187 commit fbd7069e5c87772338608e026f60d2fef37ca5f3 (HEAD) Author: Pig <pig.priv@gmail.com> Date: Tue Sep 22 21:41:59 2020 +0800 audio_amplifier: Add new hook for setting amp feedback Change-Id: Ifcea8b0c680c5066ed17cd41c29a49a8a9508aea
2021-03-29Merge SP1A.210329.001Scott Lobdell
Change-Id: I01c8f2a811f6ee2009571ba7849fd1b8fc0d228b
2021-03-15Update oob data structMartin Brabham
Bug: 178007935 Test: compiles and runs Tag: #feature Change-Id: Ia06b8c65cac45694a3a9f01ca73bf6e0b3010d06
2021-03-11Merge SP1A.210311.001Scott Lobdell
Change-Id: I665b43a5d8fb2238f332e1c8f05efb1c2f95eab7
2021-02-23Merge SP1A.210222.001Scott Lobdell
Change-Id: I6242e39038406b128e1cef95f130dd1e04f7ef4c
2021-02-18Add MAX_BOOT_LEVEL tag, BOOT_LEVEL_EXCEEDED errorPaul Crowley
Test: Treehugger Bug: 176450483 Change-Id: Ibfc838496fec507dbe4831e86b933666296a4b35
2021-02-11Add ATTEST_KEYShawn Willden
Bug: 171845787 Test: Build Change-Id: I41451eb35dd0992c049525782e7afb5228ed6b3f
2021-02-08Merge SP1A.210208.001Daniel Norman
Change-Id: Ic7b776415a05523fe22d28be8fd449b479d5e38b
2021-01-31Keymint: Add CERTIFICATE_* tagsJanis Danisevskis
Add CERTIFICATE_NOT_BEFORE/AFTER and change CERTIFICATE_SERIAL to bignum type. Test: N/A Change-Id: I5b1ed20a9babe8425e98a03637cdc14be842872c
2021-01-27audio: add implementation for TV related APIKuowei Li
1. AudioDescriptionMixLevel getter/setter. 2. DualMonoMode getter/setter. 3. PlaybackRate getter/setter. Test: TIS player with instrumented HAL Test: atest AudioTrackTest#testTunerConfiguration Test: atest AudioTrackTest#testDualMonoMode Test: atest AudioTrackTest#testAudioDescriptionMixLevel Test: atest AudioManagerTest#testGetAdditionalOutputDeviceDelay Bug: 173482792 Merged-In: Id89dd151797723dbb58a44db48ff05bff3f20e04 Change-Id: Id89dd151797723dbb58a44db48ff05bff3f20e04
2021-01-27Merge "Add limited use key tag defination." am: 3cd53f9f9d am: 15ff37860e ↵Treehugger Robot
am: d09416063a Original change: https://android-review.googlesource.com/c/platform/hardware/libhardware/+/1538759 MUST ONLY BE SUBMITTED BY AUTOMERGER Change-Id: Id4adf74fc46cb200ff917202148325180380680e
2021-01-27Merge "Add KM_PURPOSE_AGREE_KEY constant." am: 203813672e am: 4f136a5659 am: ↵David Zeuthen
1fa7495b89 Original change: https://android-review.googlesource.com/c/platform/hardware/libhardware/+/1556301 MUST ONLY BE SUBMITTED BY AUTOMERGER Change-Id: I5d8a778dd90b93a2b74c13f475c1b34f241e76c2
2021-01-26Merge "Add limited use key tag defination."Treehugger Robot
2021-01-26Merge SP1A.210122.003Chris Gross
Change-Id: I97ce82e53efdd21be5c98060dd25bf00a163fa5b
2021-01-25Add KM_PURPOSE_AGREE_KEY constant.David Zeuthen
Test: VtsAidlKeyMintTargetTest Bug: 171847641 Change-Id: I9e3128652767509911445491248c01953359cb67
2021-01-14audio: add implementation for TV related APIKuowei Li
1. AudioDescriptionMixLevel getter/setter. 2. DualMonoMode getter/setter. 3. PlaybackRate getter/setter. Test: TIS player with instrumented HAL Test: atest AudioTrackTest#testTunerConfiguration Test: atest AudioTrackTest#testDualMonoMode Test: atest AudioTrackTest#testAudioDescriptionMixLevel Test: atest AudioManagerTest#testGetAdditionalOutputDeviceDelay Bug: 173482792 Change-Id: Id89dd151797723dbb58a44db48ff05bff3f20e04
2021-01-13Add limited use key tag defination.Qi Wu
Test: none Change-Id: I5464f6411b8bce94a3736cd033d064e75d313fe1
2021-01-05Merge SP1A.210105.001Scott Lobdell
Change-Id: I099689dd41c2945a9b902920d88dce0a7687224b
2021-01-05audio HAL: new track metadata versionEric Laurent
Add channel mask and audio attributes tags to playback and record track metadata sent to audio HAL. Add new HAL methods and structs for use with HALs version 3.2 and above to provide backwards compatibility with old HALs. Bug: 168751366 Test: make Change-Id: I30cc3d35f97bb1bc5f80983f6ae85f3e820bf414 Merged-In: I30cc3d35f97bb1bc5f80983f6ae85f3e820bf414
2021-01-05Merge "Add libhardware support for RSA OAEP MGF1." am: 1de976f07b am: ↵David Zeuthen
ee427986d8 am: 482268110b Original change: https://android-review.googlesource.com/c/platform/hardware/libhardware/+/1533863 MUST ONLY BE SUBMITTED BY AUTOMERGER Change-Id: I0fd84e5926fdf63cea6a3501266e8502cd3c8dbb
2020-12-21Add libhardware support for RSA OAEP MGF1.Chirag Pathak
Test: atest VtsAidlKeyMintV1_0TargetTest Bug: 160968519 Change-Id: I2c534d2a9ad401a48451ca392ebf6e0039345de4
2020-12-16audio HAL: new track metadata versionEric Laurent
Add channel mask and audio attributes tags to playback and record track metadata sent to audio HAL. Add new HAL methods and structs for use with HALs version 3.2 and above to provide backwards compatibility with old HALs. Bug: 168751366 Test: make Change-Id: I30cc3d35f97bb1bc5f80983f6ae85f3e820bf414
2020-12-11Merge "Add a function pointer to get active boot slot"Tianjie Xu
2020-12-09Add a new API for getting audio_port_v7.jiabin
Add a function to audio HAL interface for retrieving audio_port_v7 structure directly. The legacy audio_port structure can always be converted into audio_port_v7, however the latter may contain more information. This function must be supported from legacy HAL version 3.2. Bug: 160352965 Test: make Change-Id: I60f2615791c19aed37fdb91328e8bc420bc3419d Merged-In: I60f2615791c19aed37fdb91328e8bc420bc3419d
2020-12-08Add a function pointer to get active boot slotTianjie
bootcontrol 1.2 adds a new function to get the active boot slot on the next boot. Since the getter is closely related to the gpt implementation of bootcontrol, we add the header here and expose to clients of libhardware. Devices with an old HAL should never call this new getter function. Bug: 173808057 Test: Vts tests for bootcontrol Change-Id: I19135ed16bf0ba546e0a8d9cb2d521ec0a9c5bbc
2020-12-04Delete keymaster0Shawn Willden
Test: Build Change-Id: I55f713587ccd91a9ec76cc10f84ecb0109aad7ac
2020-11-30Merge SP1A.201130.001Daniel Norman
Change-Id: I8b32cfcc87e0adc88933ea8e0098a9328957f65d
2020-11-19Merge "Add new certificate tags defination for KeyMint V1." am: 78b8a3ffed ↵Treehugger Robot
am: 210e6bb504 am: e79b241ac6 am: fac68811bb Original change: https://android-review.googlesource.com/c/platform/hardware/libhardware/+/1412868 Change-Id: Id8277401ba23900dcaffd5d82b7206e3c400b51f
2020-11-18Add new certificate tags defination for KeyMint V1.Selene Huang
Test: n/a Change-Id: I05f629feec5cd2bd01f03b88cd5d830bb1f22623
2020-11-05Merge SP1A.201105.002Scott Lobdell
Change-Id: I9adf446f5f37da7b733a27f71d29b60f1c34b4f5
2020-11-03keymaster_defs: Add missing tags added in KM 4.1 and earlier.Selene Huang
Test: N/A Change-Id: Ie01cbc50d9bc77150adc46962d06cda2a7c1544a Merged-In: Ie01cbc50d9bc77150adc46962d06cda2a7c1544a
2020-11-02Merge "Add a new API for getting audio_port_v7."TreeHugger Robot
2020-10-30Add a new API for getting audio_port_v7.jiabin
Add a function to audio HAL interface for retrieving audio_port_v7 structure directly. The legacy audio_port structure can always be converted into audio_port_v7, however the latter may contain more information. This function must be supported from legacy HAL version 3.2. Bug: 160352965 Test: make Change-Id: I60f2615791c19aed37fdb91328e8bc420bc3419d
2020-10-29keymaster_defs: Add missing tags added in KM 4.1 and earlier.Selene Huang
Test: N/A Change-Id: Ie01cbc50d9bc77150adc46962d06cda2a7c1544a
2020-09-21Merge SP1A.200921.001Justin DeMartino
Change-Id: Ida5bfb081b9bb9de3c57de6aa3192076107c143e
2020-08-31Merge SP1A.200727.001Daniel Norman
Change-Id: Ib992c4a022d2fc509408b25e0f7eb4e26988cbaf
2020-08-05Update the signature of init function to include whether the device is am: ↵Rahul Sabnis
247c646824 am: 14511f6722 am: 99d5aba8ec am: 28ce79352a am: 1751a06b9f am: db07ea5953 Original change: https://googleplex-android-review.googlesource.com/c/platform/hardware/libhardware/+/12308133 Change-Id: I61f2c9dc76f20b44c3efe84ddc00a8184a099da5
2020-08-05Update the signature of init function to include whether the device is am: ↵Rahul Sabnis
247c646824 am: 14511f6722 am: 99d5aba8ec am: 28ce79352a Original change: https://googleplex-android-review.googlesource.com/c/platform/hardware/libhardware/+/12308133 Change-Id: I443edd62865ca64aaeeee749818430cd41cf160c
2020-08-05Update the signature of init function to include whether the device is am: ↵Rahul Sabnis
247c646824 am: 14511f6722 Original change: https://googleplex-android-review.googlesource.com/c/platform/hardware/libhardware/+/12308133 Change-Id: I9962c4c765f16fdffaac17f24ca62fac6eb0bf31
2020-08-05Update the signature of init function to include whether the device is am: ↵Rahul Sabnis
247c646824 Original change: https://googleplex-android-review.googlesource.com/c/platform/hardware/libhardware/+/12308133 Change-Id: I787e5077a29653ecb551f4176fcfa0b2a054f7a5
2020-08-04Update the signature of init function to include whether the device isRahul Sabnis
an ATV Bug: 157038281 Test: Manual Change-Id: I1685c4318c27e8dcca5f7a696fe9e1f8bf594b9d
2020-06-08Merge "audio_alsaops: fix format conversion error handling bug" am: ↵Andy Hung
9a2cf9a818 am: 53ead60966 Original change: https://android-review.googlesource.com/c/platform/hardware/libhardware/+/1323975 Change-Id: If3b86f025a61e3151da8e45c6dac1d221c8f3a5c
2020-06-05audio_alsaops: fix format conversion error handling bugJindong
Returns a invalid format after fatal error, instead of "0", which equals to PCM_FORMAT_S16_LE or AUDIO_FORMAT_DEFAULT. Also fix below build error: hardware/libhardware/include/hardware/audio_alsaops.h:63:16: error: cannot initialize return object of type 'enum pcm_format' with an rvalue of type 'int' return 0; hardware/libhardware/include/hardware/audio_alsaops.h:97:16: error: cannot initialize return object of type 'audio_format_t' with an rvalue of type 'int' return 0; Signed-off-by: Jindong <jindong.yue@nxp.com> Change-Id: Iabf5ae106d9c371c00ad5236326c6f38d1a9f116
2020-03-13Merge RP1A.200313.001Steven Laver
Change-Id: I1a4fc04679bcece88666d571f3bfb43391644ac0
2020-03-09Added identity credential key to keymaster tag set.Selene Huang
Bug: 149908474 Test: atest android.security.identity.cts.AttestationTest Test: atest VtsHalIdentityCredentialTarge Merged-In: I5a0336692f894580a46d6e70a5b2e2b6d54508e5 Change-Id: I4c1cf2cc5112ccae2151958c65025d9e225bdeed
2020-03-03Merge RP1A.200303.001Steven Laver
Change-Id: Idb31027666ee01f676aa352386210f016901f621
2020-02-26Add a callback for codec format changed. am: 3b4b33f479Automerger Merge Worker
Change-Id: Idb2e22016e4a58cc1315d8f1355830512fb58ffb
2020-02-25Merge "Added identity credential key to keymaster tag set." am: 0f6a221b62 ↵Automerger Merge Worker
am: 353924555e Change-Id: I8b9be13d5928f2a9221c08a5801b8a3b4f7f4fe0
2020-02-24Add a callback for codec format changed.jiabin
Bug: 133526565 Test: Manually Change-Id: Ie7d17c7d9b49394601b4788aa44a8407ebb6f72e
2020-02-21Added identity credential key to keymaster tag set.Selene Huang
Bug: 149908474 Test: atest android.security.identity.cts.AttestationTest Test: atest VtsHalIdentityCredentialTarge Change-Id: I5a0336692f894580a46d6e70a5b2e2b6d54508e5