Commit graph

5800 commits

Author SHA1 Message Date
Treehugger Robot
db72a6dfe4 Merge "Remove explicit dependency on libdl" am: 2cac8b9f81
Original change: https://android-review.googlesource.com/c/platform/hardware/libhardware/+/2123559

Change-Id: Ib0c0faf87d987634a7923be276033cc1b5eb13a1
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-07-28 20:17:48 +00:00
Xin Li
7c0bc319e9 Merge tm-dev-plus-aosp-without-vendor@8763363
Bug: 236760014
Merged-In: If82a5bf302cb68a2c5b486006e4679fbfc8ee545
Change-Id: I9f63475a68f386bbb8ad768a8f2075e6c3c55eaa
2022-06-27 23:38:54 +00:00
Treehugger Robot
2cac8b9f81 Merge "Remove explicit dependency on libdl" 2022-06-17 00:18:40 +00:00
Xin Li
97dbb73578 [automerger skipped] Merge "Merge Android 12 QPR 3" am: b0eb536590 -s ours am: 7c9cf4930a -s ours
am skip reason: Merged-In I36e233dc5b59feec9354f9aef6f231babbbcec6f with SHA-1 c41d9de876 is already in history

Original change: https://android-review.googlesource.com/c/platform/hardware/libhardware/+/2126095

Change-Id: Iac40bb50d65ba3b7ec38d8e1e551fc4524a2f8e1
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-06-17 00:15:19 +00:00
Xin Li
4c81cb72ef [automerger skipped] Merge Android 12 QPR 3 am: 9e5c95612b -s ours am: be6d94e0dd -s ours
am skip reason: Merged-In I36e233dc5b59feec9354f9aef6f231babbbcec6f with SHA-1 c41d9de876 is already in history

Original change: https://android-review.googlesource.com/c/platform/hardware/libhardware/+/2126095

Change-Id: I43e9f699fb6fb876f992530a5c5bf22184afe3d7
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-06-17 00:14:13 +00:00
Xin Li
7c9cf4930a [automerger skipped] Merge "Merge Android 12 QPR 3" am: b0eb536590 -s ours
am skip reason: Merged-In I36e233dc5b59feec9354f9aef6f231babbbcec6f with SHA-1 c41d9de876 is already in history

Original change: https://android-review.googlesource.com/c/platform/hardware/libhardware/+/2126095

Change-Id: I7e76b76be8e6b011c5ad8fdc2bb6499b555bb018
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-06-16 19:58:19 +00:00
Xin Li
be6d94e0dd [automerger skipped] Merge Android 12 QPR 3 am: 9e5c95612b -s ours
am skip reason: Merged-In I36e233dc5b59feec9354f9aef6f231babbbcec6f with SHA-1 c41d9de876 is already in history

Original change: https://android-review.googlesource.com/c/platform/hardware/libhardware/+/2126095

Change-Id: Ice06d9e2407d1f617c7e95744b3e8d9513c724b0
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-06-16 19:57:06 +00:00
Xin Li
b0eb536590 Merge "Merge Android 12 QPR 3" 2022-06-16 18:51:54 +00:00
Xin Li
9e5c95612b Merge Android 12 QPR 3
Bug: 236045730
Merged-In: I36e233dc5b59feec9354f9aef6f231babbbcec6f
Change-Id: Ie3de5c4a7566ae5ed6bc2e3549029d7d42cfc27c
2022-06-14 16:48:12 -07:00
Liz Kammer
3e805478fb Remove explicit dependency on libdl
A dependency to libdl is added by default by the build system based on
system_dynamic_libs property.

Test: m libhardware
Change-Id: I4bc1a7cb4af2c49d6f1343843cf86c436294bed7
2022-06-13 17:52:48 +00:00
Erik Staats
3493565708 Add /dev permissions to dynamic sensor README.md .
Bug: 228879057
Test: Verified in gitiles.
Change-Id: If82a5bf302cb68a2c5b486006e4679fbfc8ee545
2022-04-20 11:16:52 -07:00
Erik Staats
fdb42f78cd dynamic_sensor: Fix HID min/max sample rate computation.
Bug: 228369656
Test: Used uhid-sample to add a dynamic sensor and verified correct
 min/max sample rate.
Change-Id: I88a1bec26a03a97ee7a3c590d2601151b89ee545
2022-04-06 15:30:02 -07:00
Erik Staats
9b8bc0f7c1 dynamic_sensor: Support timing out sensor operations.
Bug: 226012902
Test: Used uhid-sample to add a dynamic sensor and verified it can be
 sampled.
Test: Simulated start sampling ioctl timeout and verified operation
 completes with a timeout and eventually cleans up.
Test: Simulated start sampling ioctl timeout with device removal before
 completion and verified operation completes with a timeout and
 eventually cleans up.
Change-Id: I9a957bc1e4000b2c587278146ecbe6e903010616
2022-04-06 12:42:06 +00:00
Xin Li
97fa686b5d [automerger skipped] Merge Android 12 QPR3 ab/8391262 am: c86c769102 -s ours am: c41d9de876 -s ours
am skip reason: Merged-In I11cfdae56524722afd33ee3c01fdb3c1559d8c85 with SHA-1 edfcd7d421 is already in history

Original change: https://googleplex-android-review.googlesource.com/c/platform/hardware/libhardware/+/17544754

Change-Id: Iaf074ba904bcb417005de1f7bec88c228f63828f
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-04-03 07:43:37 +00:00
Xin Li
c41d9de876 [automerger skipped] Merge Android 12 QPR3 ab/8391262 am: c86c769102 -s ours
am skip reason: Merged-In I11cfdae56524722afd33ee3c01fdb3c1559d8c85 with SHA-1 edfcd7d421 is already in history

Original change: https://googleplex-android-review.googlesource.com/c/platform/hardware/libhardware/+/17544754

Change-Id: I36e233dc5b59feec9354f9aef6f231babbbcec6f
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-04-03 07:11:36 +00:00
Xin Li
c86c769102 Merge Android 12 QPR3 ab/8391262
Bug: 226662282
Merged-In: I11cfdae56524722afd33ee3c01fdb3c1559d8c85
Change-Id: I517f7a7454372f79f959df33c13b26202080e33c
2022-04-01 20:32:38 +00:00
Brian Duddie
b9769d799c Change dynamic sensors handle base to 1
Fixes: 227766975
Test: load on device, confirm handle number changed
Change-Id: I0466784d7e468bd785f2525f1ab7cd02cc5436e8
2022-04-01 17:22:31 +00:00
Xin Li
4c996b4015 [automerger skipped] Merge "Merge Android 12L" am: c2b7fb4aad -s ours am: b8395c238a -s ours am: edfcd7d421 -s ours
am skip reason: Merged-In Ice502eaba6c5dd8ca1157d3fde1b5b5b223267e4 with SHA-1 466b596cc5 is already in history

Original change: https://android-review.googlesource.com/c/platform/hardware/libhardware/+/2013325

Change-Id: Ibc96dbb712bf69d6d4577df69def914354347b5e
2022-03-09 10:05:02 +00:00
Xin Li
6929b605f6 [automerger skipped] Merge Android 12L am: ebebf51c4f -s ours am: a111192091 -s ours am: 7e3e6a3a82 -s ours
am skip reason: Merged-In Ice502eaba6c5dd8ca1157d3fde1b5b5b223267e4 with SHA-1 466b596cc5 is already in history

Original change: https://android-review.googlesource.com/c/platform/hardware/libhardware/+/2013325

Change-Id: I365d0a49970bbda7acc8833f9fc0b80088fb9942
2022-03-09 10:02:18 +00:00
Xin Li
edfcd7d421 [automerger skipped] Merge "Merge Android 12L" am: c2b7fb4aad -s ours am: b8395c238a -s ours
am skip reason: Merged-In Ice502eaba6c5dd8ca1157d3fde1b5b5b223267e4 with SHA-1 466b596cc5 is already in history

Original change: https://android-review.googlesource.com/c/platform/hardware/libhardware/+/2013325

Change-Id: I11cfdae56524722afd33ee3c01fdb3c1559d8c85
2022-03-08 11:06:32 +00:00
Xin Li
7e3e6a3a82 [automerger skipped] Merge Android 12L am: ebebf51c4f -s ours am: a111192091 -s ours
am skip reason: Merged-In Ice502eaba6c5dd8ca1157d3fde1b5b5b223267e4 with SHA-1 466b596cc5 is already in history

Original change: https://android-review.googlesource.com/c/platform/hardware/libhardware/+/2013325

Change-Id: I947d662b436195b55bbf32c98110046ea56131ab
2022-03-08 11:03:47 +00:00
Xin Li
b8395c238a [automerger skipped] Merge "Merge Android 12L" am: c2b7fb4aad -s ours
am skip reason: Merged-In Ice502eaba6c5dd8ca1157d3fde1b5b5b223267e4 with SHA-1 466b596cc5 is already in history

Original change: https://android-review.googlesource.com/c/platform/hardware/libhardware/+/2013325

Change-Id: I6bb2fd8bd268fd95b7513288ceb74758335dd242
2022-03-08 10:21:44 +00:00
Xin Li
a111192091 [automerger skipped] Merge Android 12L am: ebebf51c4f -s ours
am skip reason: Merged-In Ice502eaba6c5dd8ca1157d3fde1b5b5b223267e4 with SHA-1 466b596cc5 is already in history

Original change: https://android-review.googlesource.com/c/platform/hardware/libhardware/+/2013325

Change-Id: I0a2e1695d50a97fd80985594bfbd722edeb0749a
2022-03-08 10:18:57 +00:00
Xin Li
c2b7fb4aad Merge "Merge Android 12L" 2022-03-08 06:51:51 +00:00
Xin Li
ebebf51c4f Merge Android 12L
Bug: 222710654
Merged-In: Ice502eaba6c5dd8ca1157d3fde1b5b5b223267e4
Change-Id: Ie2b319c7d588f5044c694e85795eef0bc9d14b75
2022-03-08 00:18:38 +00:00
Ray Essick
dd45428ffa drop no-longer-needed apex_available clause on libhardware
codec2/vndk referenced, but did not use, libhardware. Now that
the reference is cleaned, we don't need to to export to apex's.

Bug: 221444002
Test: build, boot
Change-Id: I43bff5cab71d53d8c7422c13265f129b26ca0430
2022-03-01 15:45:33 -08:00
Xin Li
a95b600c5a [automerger skipped] Merge "Merge sc-v2-dev-plus-aosp-without-vendor@8084891" into stage-aosp-master am: d2adcd79f8 -s ours am: 5a80ca8ae8 -s ours
am skip reason: Merged-In I975390f8f495267ef0cd24dc8e73db859e541146 with SHA-1 16699d13ec is already in history

Original change: https://googleplex-android-review.googlesource.com/c/platform/hardware/libhardware/+/16844215

Change-Id: I4fef372e22b9c1302e1d2f4d49bc3d28267646fc
2022-02-14 18:20:53 +00:00
Xin Li
5a80ca8ae8 [automerger skipped] Merge "Merge sc-v2-dev-plus-aosp-without-vendor@8084891" into stage-aosp-master am: d2adcd79f8 -s ours
am skip reason: Merged-In I975390f8f495267ef0cd24dc8e73db859e541146 with SHA-1 16699d13ec is already in history

Original change: https://googleplex-android-review.googlesource.com/c/platform/hardware/libhardware/+/16844215

Change-Id: I34d543a1395a507b8fdf8fbcb797d0d2a124de4a
2022-02-14 18:03:29 +00:00
Xin Li
d2adcd79f8 Merge "Merge sc-v2-dev-plus-aosp-without-vendor@8084891" into stage-aosp-master 2022-02-14 17:30:14 +00:00
Treehugger Robot
32091b4dcc [automerger skipped] Merge "Add audio_hw_device.set_device_connected_state_v7 method" am: ac977b6016 am: 466b596cc5 am: 9ab5ad944a -s ours
am skip reason: Merged-In I0868cdfdbe46d1399071967653372b55713843e4 with SHA-1 521310bc26 is already in history

Original change: https://android-review.googlesource.com/c/platform/hardware/libhardware/+/1978754

Change-Id: I888f2469d4410eb791aa64216d8cc3fa389522df
2022-02-11 19:18:11 +00:00
Treehugger Robot
9ab5ad944a Merge "Add audio_hw_device.set_device_connected_state_v7 method" am: ac977b6016 am: 466b596cc5
Original change: https://android-review.googlesource.com/c/platform/hardware/libhardware/+/1978754

Change-Id: Ic66bd494ef59ce98cc856470a28379cbcc399552
2022-02-11 19:06:35 +00:00
Treehugger Robot
466b596cc5 Merge "Add audio_hw_device.set_device_connected_state_v7 method" am: ac977b6016
Original change: https://android-review.googlesource.com/c/platform/hardware/libhardware/+/1978754

Change-Id: Ice502eaba6c5dd8ca1157d3fde1b5b5b223267e4
2022-02-11 18:45:17 +00:00
Treehugger Robot
ac977b6016 Merge "Add audio_hw_device.set_device_connected_state_v7 method" 2022-02-11 18:19:22 +00:00
Xin Li
f911d3a70d Merge sc-v2-dev-plus-aosp-without-vendor@8084891
Bug: 214455710
Merged-In: I975390f8f495267ef0cd24dc8e73db859e541146
Change-Id: Ia540313ff7bb064b9de8a8655b59fed8c40a8aaa
2022-02-11 06:57:38 +00:00
Mikhail Naganov
f912141956 Add audio_hw_device.set_device_connected_state_v7 method
Add an interface method for providing extra information
about the connected device.

Bug: 211601178
Test: m
Change-Id: I0868cdfdbe46d1399071967653372b55713843e4
(cherry picked from commit 521310bc26)
Merged-In: I0868cdfdbe46d1399071967653372b55713843e4
2022-02-09 19:29:39 +00:00
Ray Essick
0a0dd5f489 Make apex_available explicit
Move the implicit allowing by modules from a list in the build
tools to explicit lines in the relevant module's Android.bp

Bug: 215589022
Test: build
Change-Id: I17f93210f027cb8189e92b19a46b6d64faef7ed8
2022-02-09 10:14:29 -08:00
Treehugger Robot
9e1bf27989 [automerger skipped] Merge "Audio HAL: Add latency mode APIs" am: 5c264411c6 am: 909e4b4cc5 am: 07d5a5d873 am: 14e51195e5 -s ours
am skip reason: Merged-In I30a7f34a265ddac69b283c803b5729770426ebf1 with SHA-1 e689139808 is already in history

Original change: https://android-review.googlesource.com/c/platform/hardware/libhardware/+/1975466

Change-Id: I75de37b22233ff135fc73e0f80d19919e22bcf31
2022-02-08 20:44:24 +00:00
Treehugger Robot
14e51195e5 Merge "Audio HAL: Add latency mode APIs" am: 5c264411c6 am: 909e4b4cc5 am: 07d5a5d873
Original change: https://android-review.googlesource.com/c/platform/hardware/libhardware/+/1975466

Change-Id: I7f07b98c79413e7622f2773ca57a64ad34412989
2022-02-08 20:20:00 +00:00
Treehugger Robot
07d5a5d873 Merge "Audio HAL: Add latency mode APIs" am: 5c264411c6 am: 909e4b4cc5
Original change: https://android-review.googlesource.com/c/platform/hardware/libhardware/+/1975466

Change-Id: I27b4677df694901c1fbfc7dbfe298feaf18bed33
2022-02-08 20:14:46 +00:00
Treehugger Robot
909e4b4cc5 Merge "Audio HAL: Add latency mode APIs" am: 5c264411c6
Original change: https://android-review.googlesource.com/c/platform/hardware/libhardware/+/1975466

Change-Id: Idfbf54929627e785aa9efe02f41fc6a336c30d14
2022-02-08 19:54:45 +00:00
Treehugger Robot
5c264411c6 Merge "Audio HAL: Add latency mode APIs" 2022-02-08 19:35:58 +00:00
Eric Laurent
3a14e04923 Audio HAL: Add latency mode APIs
Add APis for controlling the latency mode on an output stream.
Latency mode control is optional but mandated if spatial audio with
head tracking is supported over Bluetooth classic audio link.

Bug: 187446271
Test: make
Change-Id: I30a7f34a265ddac69b283c803b5729770426ebf1
(cherry picked from commit e689139808)
Merged-In: I30a7f34a265ddac69b283c803b5729770426ebf1
2022-02-07 19:57:47 +00:00
TreeHugger Robot
1e78a4260d Merge "r_submix module: pipe size changes with sample rate" 2022-02-02 17:40:13 +00:00
Jean-Michel Trivi
71834f3775 r_submix module: pipe size changes with sample rate
Adapt the pipe size based on the sample rate.
Behavior is unchanged for the default sample rate (48kHz), size
is adjusted by the ratio relative to the default rate.

Bug: 141604269
Test: atest AudioHostTest#testTwoChannelCapturingMediaConversion
Change-Id: I0ba45af18ef02dc0ef77d480e1203d2cd1db9864
2022-02-02 08:27:24 -08:00
Roopa Sattiraju
10af36db66 Merge "Adding bluetooth apex" am: eb9947d30d am: 137114ba46 am: 36e4b68091 am: 04a0700f25
Original change: https://android-review.googlesource.com/c/platform/hardware/libhardware/+/1931307

Change-Id: If763e8ab40a40dcc1ef08cbb08176b29150f9d25
2022-02-02 06:14:39 +00:00
Roopa Sattiraju
04a0700f25 Merge "Adding bluetooth apex" am: eb9947d30d am: 137114ba46 am: 36e4b68091
Original change: https://android-review.googlesource.com/c/platform/hardware/libhardware/+/1931307

Change-Id: Icd9f086edbc37aebbb1c2043d8784e0d5cbe66a0
2022-02-02 06:00:02 +00:00
Roopa Sattiraju
36e4b68091 Merge "Adding bluetooth apex" am: eb9947d30d am: 137114ba46
Original change: https://android-review.googlesource.com/c/platform/hardware/libhardware/+/1931307

Change-Id: Ic2fee753889c7e61535a508f3c614197723ea9de
2022-02-02 05:51:33 +00:00
Roopa Sattiraju
137114ba46 Merge "Adding bluetooth apex" am: eb9947d30d
Original change: https://android-review.googlesource.com/c/platform/hardware/libhardware/+/1931307

Change-Id: I2b64a8db6a05a3a627f13523a96530e8f5ce1b35
2022-02-02 05:34:21 +00:00
Roopa Sattiraju
eb9947d30d Merge "Adding bluetooth apex" 2022-02-02 05:17:24 +00:00
Roopa Sattiraju
da4e70bc33 Adding bluetooth apex
Bug: 206121418
Test: Compile
Change-Id: Ib7dcc33843a2173e353ba6e52f7f423cbf445915
2022-02-01 13:37:56 -08:00