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

Commit b0f9bc19 authored by Jeremy Wu's avatar Jeremy Wu
Browse files

Floss: print logs to show absolute volume support

Even when AVRCP is connected, absolute volume support may not be
correctly propagated, and we do not have a good way to see that with the
current logs.

In this CL, we add the logs to show that value on AVRCP connection.

Bug: 254313937
Test: Deploy and verify
Tag: #floss

Change-Id: I942fea43f48ed206a6daa91cb5f472af7a0ce34b
parent e3a86d3a
Loading
Loading
Loading
Loading
+5 −1
Original line number Diff line number Diff line
@@ -393,7 +393,11 @@ impl BluetoothMedia {
    pub fn dispatch_avrcp_callbacks(&mut self, cb: AvrcpCallbacks) {
        match cb {
            AvrcpCallbacks::AvrcpDeviceConnected(addr, supported) => {
                info!("[{}]: avrcp connected.", addr.to_string());
                info!(
                    "[{}]: avrcp connected. Absolute volume support: {}.",
                    addr.to_string(),
                    supported
                );

                match self.uinput.create(self.adapter_get_remote_name(addr), addr.to_string()) {
                    Ok(()) => info!("uinput device created for: {}", addr.to_string()),