Commit graph

36127 commits

Author SHA1 Message Date
Carter Hsu
84a54dfc28 audio: add Ultrasound materials to 7.1 am: ff62b259f8
Original change: https://android-review.googlesource.com/c/platform/hardware/interfaces/+/1983826

Change-Id: Ic2984c4d4f9e1498f6d572df5446ffc2e3d43c13
2022-02-14 17:50:42 +00:00
Xin Li
3125505251 Merge "Merge sc-v2-dev-plus-aosp-without-vendor@8084891" into stage-aosp-master 2022-02-14 17:30:11 +00:00
Alan Stokes
66c0e03f0e Merge "Allow CompOS to use DICE from C++" am: 13eaedcaec
Original change: https://android-review.googlesource.com/c/platform/hardware/interfaces/+/1979471

Change-Id: Ic152b638cc742fb11074231dfb2415c86af7567b
2022-02-14 09:45:55 +00:00
Alan Stokes
13eaedcaec Merge "Allow CompOS to use DICE from C++" 2022-02-14 09:31:21 +00:00
Treehugger Robot
91d9437235 Merge "vibrator: aidl: update OWNERS file" am: e4f19ced34
Original change: https://android-review.googlesource.com/c/platform/hardware/interfaces/+/1984586

Change-Id: I992e61f77f5bfb46aacfe3def38c7696bf5dd1fd
2022-02-14 08:41:43 +00:00
Treehugger Robot
e4f19ced34 Merge "vibrator: aidl: update OWNERS file" 2022-02-14 08:15:24 +00:00
Tai Kuo
a90257463d vibrator: aidl: update OWNERS file
Remove leungv@ and add taikuo@ into the OWNERS file.

Bug: 219384042
Test: Presubmit
Change-Id: I191fdf2500a1bec54f2f55671c99b7b1120aee74
2022-02-14 12:33:12 +08:00
Treehugger Robot
0b907b4638 Merge "Use parens to fix output" am: dfdcdaf09d
Original change: https://android-review.googlesource.com/c/platform/hardware/interfaces/+/1982346

Change-Id: I7e71c207cf2eca19ccde62efcdf2360e9ba2ec4d
2022-02-12 08:00:30 +00:00
Treehugger Robot
dfdcdaf09d Merge "Use parens to fix output" 2022-02-12 07:46:37 +00:00
Treehugger Robot
cb27f8cccb Merge "libhealthloop: Remove the POWER_SUPPLY_SUBSYSTEM macro" am: 652b89bd0a
Original change: https://android-review.googlesource.com/c/platform/hardware/interfaces/+/1864853

Change-Id: I2c45525ca90771643cee2396f0c8e6a0c2768be0
2022-02-12 00:36:37 +00:00
Treehugger Robot
652b89bd0a Merge "libhealthloop: Remove the POWER_SUPPLY_SUBSYSTEM macro" 2022-02-12 00:23:15 +00:00
Carter Hsu
ff62b259f8 audio: add Ultrasound materials to 7.1
Bug: 200256985
Test: build pass
Signed-off-by: Carter Hsu <carterhsu@google.com>
Change-Id: I50ba1272c0b29e482532010f1aca0b6ec83e925c
(cherry picked from commit bb2fe3f4d5)
Merged-In: I50ba1272c0b29e482532010f1aca0b6ec83e925c
2022-02-11 23:16:53 +00:00
Treehugger Robot
5eeb9fe016 Merge changes from topic "upstream-hal-v7_1-p3" am: 4673d5ab25
Original change: https://android-review.googlesource.com/c/platform/hardware/interfaces/+/1978753

Change-Id: I55e6af1f9812f1810f74f55498535238fe488ca1
2022-02-11 18:45:25 +00:00
Mikhail Naganov
4ae88c53da audio: Add IDevice.setConnectedState_7_1 method am: 9307992466
Original change: https://android-review.googlesource.com/c/platform/hardware/interfaces/+/1978752

Change-Id: I7125e7275651d5a0dc3d00c9276e6a4a4cdf1c04
2022-02-11 18:45:22 +00:00
Mikhail Naganov
f8548b969c audio: Add recommended mute duration attribute to APM XSD am: 22dc9b9aa4
Original change: https://android-review.googlesource.com/c/platform/hardware/interfaces/+/1978751

Change-Id: I8bc454c0386a8d02410b417fcf9137b743260549
2022-02-11 18:45:20 +00:00
Andy Hung
551853c305 Audio: Add memory leak checking for HAL am: 87edc66e1f
Original change: https://android-review.googlesource.com/c/platform/hardware/interfaces/+/1979748

Change-Id: Ib177da71868d9b6d84f6181ceff6ef3513a21acc
2022-02-11 18:45:18 +00:00
Treehugger Robot
4673d5ab25 Merge changes from topic "upstream-hal-v7_1-p3"
* changes:
  audio: Remove IStreamIn@7.1
  audio: Add IDevice.setConnectedState_7_1 method
  audio: Add recommended mute duration attribute to APM XSD
  Audio: Add memory leak checking for HAL
2022-02-11 18:19:22 +00:00
Greg Kaiser
42d931a271 Use parens to fix output
We want our ternary conditional to evaluate before the << operator,
so we use parenthesis to make this happen.

Bug: 214615268
Test: TreeHugger
Change-Id: I0efb22487d0cf3778f8a12d2391a0f1a7a87995d
2022-02-11 06:45:43 -08:00
Xin Li
0bf8f21279 Merge sc-v2-dev-plus-aosp-without-vendor@8084891
Bug: 214455710
Merged-In: Id9e06f88539b59480d5cf57a4ba67cef4676c1d5
Change-Id: Id6b1ea4f8700446b044255e80f21c137aeb7acf1
2022-02-11 07:27:13 +00:00
Chen Chen
b55027e757 Merge "Spatial Audio: Implement setLowLatencyAllowed functions in BluetoothAudioSession" am: 9e09eec46b
Original change: https://android-review.googlesource.com/c/platform/hardware/interfaces/+/1978294

Change-Id: I2502dfebc73bffa57342039e0d3cd32234abe4ea
2022-02-11 01:06:36 +00:00
Chen Chen
9e09eec46b Merge "Spatial Audio: Implement setLowLatencyAllowed functions in BluetoothAudioSession" 2022-02-11 00:53:24 +00:00
Keun-young Park
f7d14cbe47 Merge "Adding AIDL version 2 of AudioControl HAL" am: 3e8d4a1e8e
Original change: https://android-review.googlesource.com/c/platform/hardware/interfaces/+/1967405

Change-Id: I1c6e256976b7f37920f2194f8e80436b5429d287
2022-02-10 22:32:13 +00:00
Keun-young Park
3e8d4a1e8e Merge "Adding AIDL version 2 of AudioControl HAL" 2022-02-10 22:15:12 +00:00
Chen Chen
81f38e55c1 Spatial Audio: Implement setLowLatencyAllowed functions in BluetoothAudioSession
Bug: 214615268
Test: Build:
Tag: #feature
Change-Id: I01c182b46fe72ee8f7c8e12e59ea2413c423b061
2022-02-10 22:10:56 +00:00
Chih-hung Hsieh
2f22222a1c Merge "Fix cert-dcl16-c warnings" am: 2d028894c7
Original change: https://android-review.googlesource.com/c/platform/hardware/interfaces/+/1978297

Change-Id: I52d5d846d5192c711a6c129aa1867f2f83facaad
2022-02-10 18:46:42 +00:00
Chih-hung Hsieh
2d028894c7 Merge "Fix cert-dcl16-c warnings" 2022-02-10 18:30:38 +00:00
Mikhail Naganov
4a016add95 audio: Remove IStreamIn@7.1
This has turned out to be an empty interface. By removing
it we save about 100 kB in the interface code.

Bug: 217752112
Test: atest VtsHalAudioV7_1TargetTest
Change-Id: I2522653600a254ddcf2c4eac8bed1df69ac11d3d
(cherry picked from commit 893ea21681)
Merged-In: I2522653600a254ddcf2c4eac8bed1df69ac11d3d
2022-02-10 17:45:31 +00:00
Mikhail Naganov
9307992466 audio: Add IDevice.setConnectedState_7_1 method
This is an updated version of IDevice.setConnectedState which
accepts a full AudioPort so that additional data like extra
audio descriptors can be passed to the audio HAL.

Bug: 211601178
Test: atest VtsHalAudioV7_1TargetTest
Change-Id: Id746caa32122dabfb83feb5b515bed7717bcb67c
(cherry picked from commit 533f78f411)
Merged-In: Id746caa32122dabfb83feb5b515bed7717bcb67c
2022-02-10 17:45:21 +00:00
Mikhail Naganov
22dc9b9aa4 audio: Add recommended mute duration attribute to APM XSD
Add 'recommendedMuteDurationMs' optional attribute to 'mixPort'
element. This attribute specifies customized mute duration while
switching device's audio path to avoid truncated sound at the
beginning.

The framework is already aware of this attribute, only need
to allow it in the XSD.

Bug: 183344508
Bug: 197823000
Test: m
CTS-Coverage-bug: 215647214
Change-Id: I3be36009d1b5db218c846efe96f078e858283992
(cherry picked from commit b6800fc715)
Merged-In: I3be36009d1b5db218c846efe96f078e858283992
2022-02-10 17:45:13 +00:00
Andy Hung
87edc66e1f Audio: Add memory leak checking for HAL
$ adb shell setprop libc.debug.malloc.program android.hardware.audio.service
$ adb shell setprop libc.debug.malloc.options backtrace=8
$ adb shell setenforce 0
$ adb shell pkill audioserver
$ adb shell dumpsys media.audio_flinger

Test: Check the audio flinger dumpsys as above.
Bug: 186054996
Bug: 187462632
Change-Id: I2e8db14b816cc4cd7e1420c538505bf71fa58c97
(cherry picked from commit 8f836b9499)
Merged-In: I2e8db14b816cc4cd7e1420c538505bf71fa58c97
2022-02-10 17:44:56 +00:00
Alan Stokes
4aab4f7704 Allow CompOS to use DICE from C++
Bug: 218494522
Test: Builds
Change-Id: Ica240e1d268403ba546d83c86596d72bacec2bdf
2022-02-10 15:05:48 +00:00
Treehugger Robot
8c9dc1b2a2 Merge "BtAudio: Add AIDL loader entry" am: aedd27a848
Original change: https://android-review.googlesource.com/c/platform/hardware/interfaces/+/1955929

Change-Id: I87e6250fdacebef0471c753b4bbb330e1d0ea556
2022-02-10 10:07:47 +00:00
Treehugger Robot
aedd27a848 Merge "BtAudio: Add AIDL loader entry" 2022-02-10 09:53:42 +00:00
Francois Gaffie
a7e6cd0b73 Adding AIDL version 2 of AudioControl HAL
- Updated APIs to use PlaybackTrackMetadata (aka AudioAttributes)
instead of usage to get rid of usages list limitation.

- Add Gain Callback to notify unexpected gain changed from HAL
(as currently done for Audio Focus).

- Aggregate Callbacks within a unique IAudioControlCallback interface

Bug: b/154906631
Test: build and run VTS tests

Signed-off-by: Francois Gaffie <francois.gaffie@renault.com>
Change-Id: If74d575fad3888b698250a8ec9a6918f7cb294d7
Merged-In: If74d575fad3888b698250a8ec9a6918f7cb294d7
2022-02-10 09:48:04 +01:00
Alice Kuo
111ec5081b Merge "Add the BluetoothAudioStatus for the reconfiguration" am: f17f24ee52
Original change: https://android-review.googlesource.com/c/platform/hardware/interfaces/+/1977690

Change-Id: I38117d5bef041aed8642d1c61f458d7ffb6f3014
2022-02-10 07:55:18 +00:00
Alice Kuo
f17f24ee52 Merge "Add the BluetoothAudioStatus for the reconfiguration" 2022-02-10 07:39:13 +00:00
Treehugger Robot
3898dc7cf9 Merge "Correct the offload capability and update comment(AIDL)" am: d6b3341e55
Original change: https://android-review.googlesource.com/c/platform/hardware/interfaces/+/1977702

Change-Id: I322760578ac0c623cb8bc7817e441c475457d29d
2022-02-10 06:59:45 +00:00
Treehugger Robot
d6b3341e55 Merge "Correct the offload capability and update comment(AIDL)" 2022-02-10 06:43:43 +00:00
Treehugger Robot
b5c7afe32c Merge changes from topic "bt-broadcast-aidl" am: b8e8c57ac6
Original change: https://android-review.googlesource.com/c/platform/hardware/interfaces/+/1977699

Change-Id: I111a9e3aaac832f357a786d66f76bd154a1e6c94
2022-02-10 06:00:53 +00:00
Treehugger Robot
b8e8c57ac6 Merge changes from topic "bt-broadcast-aidl"
* changes:
  BT: Broadcast AIDL more handle on the default implementation
  BT: Broadcast AIDL simplification
2022-02-10 05:49:31 +00:00
Patty
03cbe7182d Correct the offload capability and update comment(AIDL)
- Add some comments to describe the supported scenario
- Correct the config from mono to stereo, when only one device is
  connected, mono only need one audio channel, for stereo case,
  support 2 audio channels.

Tag: #feature
Bug: 203535499
Bug: 150670922
Test: make build
Change-Id: Id3ea1e96a6b4fd7a209a015fb5c475465e300cdb
2022-02-10 10:07:17 +08:00
Chih-Hung Hsieh
4f4d365aa5 Fix cert-dcl16-c warnings
Bug: 120614316
Test: make tidy-hardware-interfaces_subset
Change-Id: I6bbeddb9990e4771155ec7d49a68f0e161789030
2022-02-09 15:38:45 -08:00
Alice Kuo
e80a576850 BT: Broadcast AIDL more handle on the default implementation
* seperate the provider for unicast and broadcast
* add handle for the audio configuration broadcast offload

Bug: 150670922
Test: make
Tag: #feature
Change-Id: Ie41496be24e3742b2f1fa438bc4ed4b127e72dd0
2022-02-09 12:40:10 -08:00
Jack He
16a154767a BT: Broadcast AIDL simplification
* Extract broadcast as separate session type
* Remove the union from LeAudioConfiguration, but use it
  for unicast configuration only
* Simplify default implementations

Bug: 15067092
Test: make
Tag: #feature
Change-Id: Ib6c3ffb6396a71011abb03a374e58ce27fdf3f39
2022-02-09 12:34:49 -08:00
Xusong Wang
706652c817 Merge "Address ANAPIC review comments -- hal." am: 8b389e1123
Original change: https://android-review.googlesource.com/c/platform/hardware/interfaces/+/1957303

Change-Id: Idc8e6d5cb1ed7e287cdd9786dd93dc520d38a6ff
2022-02-09 19:04:46 +00:00
Xusong Wang
8b389e1123 Merge "Address ANAPIC review comments -- hal." 2022-02-09 18:49:21 +00:00
Alice Kuo
0cd341b245 Add the BluetoothAudioStatus for the reconfiguration
As the PortStatusCallback to notify the control or the audio
configuration change, audio HAL may need the information to know the
BluetoothAudioStatus.

Bug: 197296692
Test: make build
Change-Id: I213ac4389693a6e098ebd3f8ae7e6e66ae8675be
2022-02-09 11:29:48 +00:00
Treehugger Robot
2193542a94 Merge "Correct the offload capability and update comment" am: 2617347b0b
Original change: https://android-review.googlesource.com/c/platform/hardware/interfaces/+/1940866

Change-Id: I138a2df345c235ed5739102d1b885be363caa205
2022-02-09 10:48:12 +00:00
Treehugger Robot
2617347b0b Merge "Correct the offload capability and update comment" 2022-02-09 10:36:38 +00:00
Treehugger Robot
9035e139ca Merge "Spatial Audio: Move setLowLatencyModeAllowed from hidl to aidl" am: f256758df4
Original change: https://android-review.googlesource.com/c/platform/hardware/interfaces/+/1977526

Change-Id: I847f32fd793cb3c99fc55eb914c64119596f8d40
2022-02-09 06:21:19 +00:00