summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLuis Delgado de Mendoza <luisddmg@google.com>2023-11-17 09:33:34 -0800
committerLuis Delgado De Mendoza <luisddmg@google.com>2023-11-17 21:00:33 +0000
commitd6e1dfd22d29969a9bb3d0a15a5e54e429b81f07 (patch)
treeaf487410b6623ccfca634bdffc7e7102250e3101
parent1574b1a0b85a8ec2742456cd2612201eb7c1500b (diff)
downloadaoc-d6e1dfd22d29969a9bb3d0a15a5e54e429b81f07.tar.gz
Add entries fore new BT channel in aoc_chan.
This CL adds the necessary entries in the aoc_chan driver to handle the new channel that will be used by BT. Bug: 308452948 Test: Validated locally. Change-Id: I4227029dbdbaa56858d6a45b1970dc65e9599db6 Signed-off-by: Luis Delgado de Mendoza <luisddmg@google.com>
-rw-r--r--aoc_channel_dev.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/aoc_channel_dev.c b/aoc_channel_dev.c
index 396b8ab..8e0a513 100644
--- a/aoc_channel_dev.c
+++ b/aoc_channel_dev.c
@@ -70,6 +70,8 @@ static const char * const channel_service_names[] = {
"com.google.usf.non_wake_up",
"com.google.chre",
"com.google.chre.non_wake_up",
+ "com.google.bt",
+ "com.google.bt.non_wake_up",
"usf_sh_mem_doorbell",
NULL,
};
@@ -209,7 +211,8 @@ static int aocc_demux_kthread(void *data)
handler_found = 1;
if (!node->msg.non_wake_up &&
(strcmp(dev_name(&service->dev),"com.google.usf") == 0 ||
- strcmp(dev_name(&service->dev),"com.google.chre") == 0)) {
+ strcmp(dev_name(&service->dev),"com.google.chre") == 0 ||
+ strcmp(dev_name(&service->dev),"com.google.bt") == 0)) {
take_wake_lock = true;
}