OSDN Git Service

PlayItem should go out the control channel
authorSal Savage <salsavage@google.com>
Wed, 28 Apr 2021 22:17:29 +0000 (15:17 -0700)
committerSal Savage <salsavage@google.com>
Fri, 18 Jun 2021 16:05:48 +0000 (16:05 +0000)
According to the AVRCP specification, section 4.5, the PlayItem command
should go out the control channel and not the browse channel.

Tag: #stability
Bug: 184712907
Test: atest BluetoothInstrumentationTests
Change-Id: I2c64c8b2f4aa0ad3c0d0cd577969d27157b4af95
Merged-In: I2c64c8b2f4aa0ad3c0d0cd577969d27157b4af95

btif/src/btif_rc.cc

index bb89488..37dd02c 100644 (file)
@@ -4966,8 +4966,7 @@ static bt_status_t play_item_cmd(const RawAddress& bd_addr, uint8_t scope,
   memcpy(avrc_cmd.play_item.uid, uid, AVRC_UID_SIZE);
   avrc_cmd.play_item.uid_counter = uid_counter;
 
-  return build_and_send_browsing_cmd(&avrc_cmd, p_dev);
-  // return build_and_send_vendor_cmd(&avrc_cmd, AVRC_CMD_CTRL, p_dev);
+  return build_and_send_vendor_cmd(&avrc_cmd, AVRC_CMD_CTRL, p_dev);
 }
 
 /***************************************************************************