A2DP source

Hi.
Hope this message finds you well!

I am using Melody7.3 bluetooth stack.
I am configuring the used profiles using PROFILES config : max number of A2DP source connexion is set to 0 because my devise is used as sink only.
My problem is that when using SDPTOOL we can see that A2DP source was not declared as supported in ICS but advertised in SDP.
How can I disable A2DP source completely ? I don’t want the product to advertise A2DP source in SDP.
Please help,
Cheers,
Eric

Hi @er1c,
At the BC127’s perspective , when you set BC127 as sink it will display SNK in status as below. Note that, It requires a reset module

SET PROFILES=0 0 1 0 1 0 0 0 0 0 0 0
OK
write
OK
reset
BlueCreation Copyright 2017
Melody Audio V6.1.5
Build: 1496939390
Ready
open 482CA00A55AD aghfp
open 482CA00A55AD A2DP
status
STATE CONNECTED[1] CONNECTABLE[ON] DISCOVERABLE[OFF] BLE[OFF]
LINK 10 CONNECTED A2DP 482CA00A55AD SUSPENDED SBC SNK 48000
LINK 11 CONNECTED AVRCP 482CA00A55AD PAUSED

A2DP supports two roles—A2DP Sink (receiver) and A2DP Source (transmitter). Only one role may be enabled at any time. If A2DP sink is enabled so Source is disabled
Thanks

Hi @Vianney

Thanks for your answer.
I have the same configuration :

00:39   UART_TX   VERSION
00:40   UART   Sierra Wireless Copyright 2018
00:40   UART   Melody Audio V7.3
00:40   UART   Build: 1544637564
00:40   UART   	Bluetooth addresses: XXXX
00:40   UART   	Profiles: A2DP AVRCP HFP BLE TWS
00:40   UART   	Codecs: SBC AAC
00:40   UART   OK
00:42   UART_TX   STATUS
00:42   UART   STATE CONNECTED[1] CONNECTABLE[ON] DISCOVERABLE[OFF] BLE[ADVERTISING]
00:42   UART   LINK 10 CONNECTED A2DP 7C11CBC7FF20 SUSPENDED SBC SNK 44100
00:42   UART   LINK 11 CONNECTED AVRCP 7C11CBC7FF20 STOPPED
00:43   UART   LINK 13 CONNECTED HFP 7C11CBC7FF20 IDLE NB
00:43   UART   OK

But even with SNK connection I can see A2DP SRC advertising. Please find below the SDPtool output :

    Service RecHandle: 0x10000
Service Class ID List:
  "Audio Sink" (0x110b)
Protocol Descriptor List:
  "L2CAP" (0x0100)
    PSM: 25
  "AVDTP" (0x0019)
    uint16: 0x0103
Profile Descriptor List:
  "Advanced Audio" (0x110d)
    Version: 0x0103
Service RecHandle: 0x10001
Service Class ID List:
  "Audio Source" (0x110a)
Protocol Descriptor List:
  "L2CAP" (0x0100)
    PSM: 25
  "AVDTP" (0x0019)
    uint16: 0x0103
Profile Descriptor List:
  "Advanced Audio" (0x110d)
    Version: 0x0103
Service RecHandle: 0x10002
Service Class ID List:
  "AV Remote" (0x110e)
  "AV Remote Controller" (0x110f)
Protocol Descriptor List:
  "L2CAP" (0x0100)
    PSM: 23
  "AVCTP" (0x0017)
    uint16: 0x0104
Profile Descriptor List:
  "AV Remote" (0x110e)
    Version: 0x0106
Service RecHandle: 0x10003
Service Class ID List:
  "AV Remote Target" (0x110c)
Protocol Descriptor List:
  "L2CAP" (0x0100)
    PSM: 23
  "AVCTP" (0x0017)
    uint16: 0x0104
Profile Descriptor List:
  "AV Remote" (0x110e)
    Version: 0x0106
Service Name: Hands-Free unit
Service RecHandle: 0x10004
Service Class ID List:
  "Handsfree" (0x111e)
  "Generic Audio" (0x1203)
Protocol Descriptor List:
  "L2CAP" (0x0100)
  "RFCOMM" (0x0003)
    Channel: 10
Language Base Attr List:
  code_ISO639: 0x656e
  encoding:    0x6a
  base_offset: 0x100
Profile Descriptor List:
  "Handsfree" (0x111e)
    Version: 0x0107
Service RecHandle: 0x10006
Service Class ID List:
  UUID 128: 00001002-d102-11e1-9b23-00025b00a5a5
Service RecHandle: 0x10007
Service Class ID List:
  "PnP Information" (0x1200)
Service Name: Headset
Service RecHandle: 0x10008
Service Class ID List:
  "Headset" (0x1108)
  "" (0x1131)
  "Generic Audio" (0x1203)
Protocol Descriptor List:
  "L2CAP" (0x0100)
  "RFCOMM" (0x0003)
    Channel: 13
Language Base Attr List:
  code_ISO639: 0x656e
  encoding:    0x6a
  base_offset: 0x100
Profile Descriptor List:
  "Headset" (0x1108)
    Version: 0x0102

It shows that even with one open A2DP SNK, the stack has not disable the A2DP SRC.
Please could you propose a patch which delete the A2DP SRC when stack is configured to be used as SNK ?

Thanks a lot,
Eric

Can you propose a patch to fix this ? Thanks a lot for your help ! Cheers, Eric

HI @Vianney

Thanks for your answer.
I am using BC127 and disabling AAC codec doesn’t solve the issue.

Eric