diff options
author | Luis Delgado de Mendoza Garcia <luisddmg@google.com> | 2023-04-25 09:14:20 -0700 |
---|---|---|
committer | Luis Delgado De Mendoza Garcia <luisddmg@google.com> | 2023-05-04 17:08:34 +0000 |
commit | 8237d4626d01ec2f0ed6d98f69543472371eeb9c (patch) | |
tree | 7939581a3a3c6c214b4129ad9bbb61cd8b640ff9 | |
parent | 95523c2cee9e32de8e4d129f3da4d9afdb1c2bf9 (diff) | |
download | aoc-8237d4626d01ec2f0ed6d98f69543472371eeb9c.tar.gz |
Allow chre channels to be MUXed.
This CL adds the chre channels to the list of channels handled by
the MUX.
CHRE needs the MUX to keep 100% feature parity with what they have
running through USF.
Bug: 279597610
Test: in-device verification.
Change-Id: Ib60f89792dcb48f6c35cfed9eb85f52c4e65a4c0
Signed-off-by: Luis Delgado de Mendoza Garcia <luisddmg@google.com>
-rw-r--r-- | aoc_channel_dev.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/aoc_channel_dev.c b/aoc_channel_dev.c index 8233e31..eecc977 100644 --- a/aoc_channel_dev.c +++ b/aoc_channel_dev.c @@ -67,6 +67,8 @@ static int aocc_remove(struct aoc_service_dev *dev); static const char * const channel_service_names[] = { "com.google.usf", "com.google.usf.non_wake_up", + "com.google.chre", + "com.google.chre.non_wake_up", "usf_sh_mem_doorbell", NULL, }; @@ -205,8 +207,8 @@ static int aocc_demux_kthread(void *data) if (channel == entry->channel_index) { 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.usf") == 0 || + strcmp(dev_name(&service->dev),"com.google.chre") == 0)) { take_wake_lock = true; } |