Tip / Sign in to post questions, reply, level up, and achieve exciting badges. Know more

cross mob

Resolve audio glitch issue while performing simultaneous Bluetooth® scan operation and A2DP streaming in CYW43xxx devices – KBA239635

Resolve audio glitch issue while performing simultaneous Bluetooth® scan operation and A2DP streaming in CYW43xxx devices – KBA239635

Infineon_Team
Employee
Employee
50 replies posted 25 likes received 25 replies posted

Before you start the A2DP stream, issue the vendor specific command “Write_A2DP_Connection(OGF =0x3F, OCF =0x11A)from the host to controller. Note that the device should be in Controller mode before you perform the following.

Note:  By default, the device will be in Controller mode.

Do the following:

  1. Set the connection handle
  2. Set the “priority” as A2DP. (0x01)
  3. Set proper direction of A2DP data in "A2DP_Data_Direction" as “A2DP Source (0x00)” or “A2DP Sink (0x01)” based on your application.

 Code Listing    AIROC™ Bluetooth® example

Write_A2DP_Connection

      [1A FD 04]: 40 00 01 01

      opcode = 0xFD1A (64794, "Write_A2DP_Connection")

      Connection_Handle = 0x40 (64)

      Priority = 0x1 (1, "A2DP")

      A2DP_Data_Direction = 0x1 (1, "A2DP Sink")

 
Note:  When you suspend or stop A2DP stream, issue the command again and set the "Priority" to 0x0 - Normal ACL.

258 Views
Contributors