Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Skip to content
Commit c6d92242 authored by Pranav Madapurmath's avatar Pranav Madapurmath
Browse files

Support TYPE_BUS for call audio routing.

This CL adds support for handling TYPE_BUS (auto case) in the audio
routing. This route is used by auto devices where earpiece and speaker
aren't available. The current implementation resolves the routing to
an INVALID type which causes tests to fail as call endpoints aren't
updated accordingly. For now, we can resolve the route to
CallAudioState.ROUTE_SPEAKER as is done in the legacy audio routing in
order to resolve the test failures.

Moving forward, we can rework this if audio fwk team decides to
whitelist TYPE_BUS as a valid communication device. For now, this audio
device doesn't need to use the set/clear communication device APIs.

Bug: 364562758
Test: atest CallAudioRouteControllerTest
Flag: com.android.server.telecom.flags.use_refactored_audio_route_switching
Change-Id: Idf30cfb6b4e65e4add0c5b402211aeb680cda7c9
parent d892b67c
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment