Issue with Stereo Sound from External Codec on nRF5340 DK (SDK v2.6.2)

Hello Team,

I am experiencing an issue with the sound output from an external codec connected to the nRF5340 DK. Currently, the sound is in mono, but my goal is to achieve stereo sound for both the left and right channels.

I read in an article that the configuration may need to be edited to enable stereo output from the external codec. I am using SDK v2.6.2 and would appreciate any guidance or suggestions on how to adjust the configuration to resolve this issue.

Thank you for your support!

Regards,

Abdulmohaimen Algamoudi

Parents
  • Hi,

    Could you please provide more information about your setup?

    Which external codec do you use?

    Best regards,
    Dejan

  • Hi, 

    Thank you for your swift reply.

    I am using the DA7212 evaluation board, and I can hear sound from the jacks on the DA7212 board. I followed the instructions from Nordic to enable the external codec.

    However, I am still working on achieving stereo sound, as the current output is mono. Any further guidance would be greatly appreciated.

    Best regards,

    Abdulmohaimen Algamoudi

  • Hey Dejans, 

    Thank you for your support, and I apologize for the delay. I have been working hard to resolve the issue.

    I have tried the provided code, but unfortunately, it does not work.

    I also tested the  code mentioned in this tickt, and I was able to achieve stereo sound with CIS. However, there are some limitations, such as only one data channel (left) being transmitted

     

    the log outputs of the gateway:

    *** Booting Zephyr OS build v3.3.99-ncs1-2 ***
    GW [00:00:00.258,178] <inf> fw_info: 
             nRF5340 Audio nRF5340 Audio DK cpuapp                      
             NCS base version: 2.4.2                            
             Cmake run : Sun Nov 24 16:33:29 2024
    GW [00:00:00.258,209] <inf> fw_info: ------- DEBUG BUILD -------
    GW [00:00:00.258,209] <inf> fw_info: Compiled for GATEWAY device
    GW [00:00:00.268,829] <inf> board_version: Compatible board/HW version found: 1.0.0
    GW [00:00:00.306,579] <wrn> bt_hci_core: Controller to host flow control not supported
    GW [00:00:00.309,722] <inf> bt_hci_core: No ID address. App must call settings_load()
    GW [00:00:00.309,783] <inf> ble: MAC: 00:00:00:00:00:00 (public)
    GW [00:00:00.310,363] <inf> ble: Controller version: 3349
    GW [00:00:00.312,103] <inf> bt_hci_core: Identity: FF:0B:F2:D9:88:E8 (random)
    GW [00:00:00.312,133] <inf> bt_hci_core: HCI: version 5.2 (0x0b) revision 0x0d15, manufacturer 0x07e8
    GW [00:00:00.312,133] <inf> bt_hci_core: LMP: version 5.2 (0x0b) subver 0x0d15
    GW [00:00:00.402,526] <inf> cis_gateway: All bonded slots filled, will not accept new devices
    GW [00:00:00.404,632] <inf> cis_gateway: Scanning successfully started
    GW [00:00:00.725,189] <inf> cis_gateway: Connected: D7:4A:8E:D1:8F:D7 (random)
    GW [00:00:01.416,992] <inf> cis_gateway: All headsets connected
    GW [00:00:02.537,963] <inf> cis_gateway: LEFT sink stream configured
    GW [00:00:02.937,042] <inf> ble_audio_services: VCS discover finished
    GW [00:00:04.217,895] <inf> cis_gateway: LEFT source stream configured
    GW [00:00:04.297,241] <inf> cis_gateway: Enable stream 0x20002b9c
    GW [00:00:04.297,912] <inf> cis_gateway: Enable stream 0x2000297c
    GW [00:00:04.657,867] <inf> cis_gateway: Stream 0x2000297c started
    GW [00:00:04.681,427] <wrn> bt_hci_core: opcode 0x2061 status 0x0c
    GW [00:00:04.690,856] <wrn> bt_hci_core: opcode 0x2061 status 0x0c
    GW [00:00:04.897,399] <inf> cis_gateway: Stream 0x20002b9c started
    

    The log outputs of the Headset:

    *** Booting Zephyr OS build v3.3.99-ncs1-2 ***
    HL [00:00:00.259,368] <inf> fw_info: 
             nRF5340 Audio nRF5340 Audio DK cpuapp                      
             NCS base version: 2.4.2                            
             Cmake run : Sun Nov 24 16:31:16 2024
    HL [00:00:00.259,368] <inf> fw_info: ------- DEBUG BUILD -------
    HL [00:00:00.259,368] <inf> fw_info: HEADSET left device
    HL [00:00:00.270,019] <inf> board_version: Compatible board/HW version found: 1.0.0
    HL [00:00:00.307,800] <wrn> bt_hci_core: Controller to host flow control not supported
    HL [00:00:00.310,882] <inf> bt_hci_core: No ID address. App must call settings_load()
    HL [00:00:00.310,974] <inf> ble: MAC: 00:00:00:00:00:00 (public)
    HL [00:00:00.311,523] <inf> ble: Controller version: 3349
    HL [00:00:00.313,079] <inf> bt_hci_core: Identity: D7:4A:8E:D1:8F:D7 (random)
    HL [00:00:00.313,110] <inf> bt_hci_core: HCI: version 5.2 (0x0b) revision 0x0d15, manufacturer 0x07e8
    HL [00:00:00.313,110] <inf> bt_hci_core: LMP: version 5.2 (0x0b) subver 0x0d15
    HL [00:00:00.406,707] <inf> cis_headset: Set direct advertising to FF:0B:F2:D9:88:E8 (random)
    HL [00:00:00.407,409] <inf> cis_headset: Advertising successfully started
    HL [00:00:03.134,887] <inf> cis_headset: Connected: FF:0B:F2:D9:88:E8 (random)
    HL [00:00:04.907,409] <inf> cis_headset: LC3 codec config for sink:
    HL [00:00:04.907,440] <inf> cis_headset:        Frequency: 48000 Hz
    HL [00:00:04.907,440] <inf> cis_headset:        Frame Duration: 10000 us
    HL [00:00:04.907,470] <inf> cis_headset:        Channel allocation: 0x1
    HL [00:00:04.907,470] <inf> cis_headset:        Octets per frame: 80 (64000 bps)
    HL [00:00:04.907,470] <inf> cis_headset:        Frames per SDU: 1
    HL [00:00:06.586,669] <inf> cis_headset: LC3 codec config for source:
    HL [00:00:06.586,700] <inf> cis_headset:        Frequency: 48000 Hz
    HL [00:00:06.586,700] <inf> cis_headset:        Frame Duration: 10000 us
    HL [00:00:06.586,700] <inf> cis_headset:        Channel allocation: 0x1
    HL [00:00:06.586,700] <inf> cis_headset:        Octets per frame: 80 (64000 bps)
    HL [00:00:06.586,730] <inf> cis_headset:        Frames per SDU: 1
    HL [00:00:06.667,053] <inf> streamctrl: Presentation delay 10000 us is set by initiator
    HL [00:00:06.667,083] <inf> streamctrl: Presentation delay 10000 us is set by initiator
    HL [00:00:07.032,989] <inf> cis_headset: Stream 0x2000ce40 started
    DAC L gain 112   
    DAC R gain 112   
    HL [00:00:07.102,600] <inf> audio_datapath: Drft comp state: CALIB
    HL [00:00:07.105,560] <wrn> audio_datapath: Data received, total underruns: 54
    HL [00:00:07.146,575] <wrn> audio_datapath: Data received, total underruns: 55
    HL [00:00:07.187,561] <wrn> audio_datapath: Data received, total underruns: 56
    HL [00:00:07.202,575] <inf> audio_datapath: Drft comp state: INIT
    HL [00:00:07.203,582] <inf> audio_datapath: Drft comp state: CALIB
    HL [00:00:07.266,540] <inf> cis_headset: Stream 0x2000ce64 started
    HL [00:00:07.303,588] <inf> audio_datapath: Drft comp state: OFFSET
    HL [00:00:07.685,821] <inf> audio_datapath: Drft comp state: LOCKED
    HL [00:00:07.692,657] <inf> audio_datapath: Pres comp state: MEAS
    HL [00:00:07.802,917] <inf> audio_datapath: Pres comp state: WAIT
    HL [00:00:07.942,718] <inf> audio_datapath: Pres comp state: INIT
    HL [00:00:07.952,697] <inf> audio_datapath: Pres comp state: MEAS
    HL [00:00:08.062,927] <inf> audio_datapath: Pres comp state: LOCKED
    HL [00:00:08.666,046] <inf> ble_audio_services: Discovery of MCS finished
    

    One of the problems I am currently facing is that the gateway cannot reconnect to the headset after it has been turned off. To re-establish the connection, I have to press the reset button.

    *** Booting Zephyr OS build v3.3.99-ncs1-2 ***
    GW [00:00:00.256,622] <inf> fw_info: 
             nRF5340 Audio nRF5340 Audio DK cpuapp                      
             NCS base version: 2.4.2                            
             Cmake run : Sun Nov 24 16:33:29 2024
    GW [00:00:00.256,652] <inf> fw_info: ------- DEBUG BUILD -------
    GW [00:00:00.256,652] <inf> fw_info: Compiled for GATEWAY device
    GW [00:00:00.267,272] <inf> board_version: Compatible board/HW version found: 1.0.0
    GW [00:00:00.305,145] <wrn> bt_hci_core: Controller to host flow control not supported
    GW [00:00:00.308,258] <inf> bt_hci_core: No ID address. App must call settings_load()
    GW [00:00:00.308,319] <inf> ble: MAC: 00:00:00:00:00:00 (public)
    GW [00:00:00.308,898] <inf> ble: Controller version: 3349
    GW [00:00:00.310,424] <inf> bt_hci_core: Identity: FF:0B:F2:D9:88:E8 (random)
    GW [00:00:00.310,455] <inf> bt_hci_core: HCI: version 5.2 (0x0b) revision 0x0d15, manufacturer 0x07e8
    GW [00:00:00.310,485] <inf> bt_hci_core: LMP: version 5.2 (0x0b) subver 0x0d15
    GW [00:00:00.403,228] <inf> cis_gateway: Scanning successfully started
    GW [00:00:00.604,553] <inf> cis_gateway: Connected: 49:EF:87:0B:C2:BA (random)
    GW [00:00:01.575,439] <inf> cis_gateway: All bonded slots filled, will not accept new devices
    GW [00:00:01.576,202] <inf> cis_gateway: Scanning successfully started
    GW [00:00:02.135,437] <wrn> cis_gateway: Connection not found
    GW [00:00:02.135,437] <err> cis_gateway: Unknown connection, should not reach here
    GW [00:00:02.149,871] <wrn> cis_gateway: Create ACL connection failed: -12
    GW [00:00:02.150,024] <inf> cis_gateway: All bonded slots filled, will not accept new devices
    GW [00:00:02.150,604] <inf> cis_gateway: Scanning successfully started
    GW [00:00:02.372,070] <wrn> cis_gateway: Create ACL connection failed: -12
    GW [00:00:02.372,192] <inf> cis_gateway: All bonded slots filled, will not accept new devices
    GW [00:00:02.372,863] <inf> cis_gateway: Scanning successfully started
    GW [00:00:02.474,884] <wrn> cis_gateway: Create ACL connection failed: -12
    GW [00:00:02.475,036] <inf> cis_gateway: All bonded slots filled, will not accept new devices
    GW [00:00:02.475,616] <inf> cis_gateway: Scanning successfully started
    GW [00:00:02.572,875] <wrn> cis_gateway: Create ACL connection failed: -12
    GW [00:00:02.573,028] <inf> cis_gateway: All bonded slots filled, will not accept new devices
    GW [00:00:02.573,577] <inf> cis_gateway: Scanning successfully started
    GW [00:00:02.615,356] <wrn> cis_gateway: Connection not found
    GW [00:00:02.615,386] <err> cis_gateway: Unknown connection, should not reach here
    GW [00:00:02.673,645] <wrn> cis_gateway: Create ACL connection failed: -12
    GW [00:00:02.673,797] <inf> cis_gateway: All bonded slots filled, will not accept new devices
    GW [00:00:02.674,560] <inf> cis_gateway: Scanning successfully started
    GW [00:00:02.793,609] <wrn> cis_gateway: Create ACL connection failed: -12
    GW [00:00:02.793,792] <inf> cis_gateway: All bonded slots filled, will not accept new devices
    GW [00:00:02.794,555] <inf> cis_gateway: Scanning successfully started
    GW [00:00:02.891,998] <wrn> cis_gateway: Create ACL connection failed: -12
    GW [00:00:02.892,150] <inf> cis_gateway: All bonded slots filled, will not accept new devices
    GW [00:00:02.892,883] <inf> cis_gateway: Scanning successfully started
    GW [00:00:03.007,904] <wrn> cis_gateway: Create ACL connection failed: -12
    GW [00:00:03.008,056] <inf> cis_gateway: All bonded slots filled, will not accept new devices
    GW [00:00:03.008,636] <inf> cis_gateway: Scanning successfully started
    GW [00:00:03.109,130] <wrn> cis_gateway: Create ACL connection failed: -12
    GW [00:00:03.109,283] <inf> cis_gateway: All bonded slots filled, will not accept new devices
    GW [00:00:03.109,893] <inf> cis_gateway: Scanning successfully started
    GW [00:00:03.209,899] <wrn> cis_gateway: Create ACL connection failed: -12
    GW [00:00:03.210,052] <inf> cis_gateway: All bonded slots filled, will not accept new devices
    GW [00:00:03.210,632] <inf> cis_gateway: Scanning successfully started
    GW [00:00:03.419,921] <wrn> cis_gateway: Create ACL connection failed: -12
    GW [00:00:03.420,074] <inf> cis_gateway: All bonded slots filled, will not accept new devices
    GW [00:00:03.420,623] <inf> cis_gateway: Scanning successfully started
    GW [00:00:03.629,272] <wrn> cis_gateway: Create ACL connection failed: -12
    GW [00:00:03.629,425] <inf> cis_gateway: All bonded slots filled, will not accept new devices
    GW [00:00:03.630,187] <inf> cis_gateway: Scanning successfully started
    GW [00:00:03.732,025] <wrn> cis_gateway: Create ACL connection failed: -12
    GW [00:00:03.732,177] <inf> cis_gateway: All bonded slots filled, will not accept new devices
    GW [00:00:03.732,910] <inf> cis_gateway: Scanning successfully started
    GW [00:00:03.837,585] <wrn> cis_gateway: Create ACL connection failed: -12
    GW [00:00:03.837,738] <inf> cis_gateway: All bonded slots filled, will not accept new devices
    GW [00:00:03.838,500] <inf> cis_gateway: Scanning successfully started
    GW [00:00:03.946,136] <wrn> cis_gateway: Create ACL connection failed: -12
    GW [00:00:03.946,258] <inf> cis_gateway: All bonded slots filled, will not accept new devices
    GW [00:00:03.946,929] <inf> cis_gateway: Scanning successfully started
    GW [00:00:04.052,032] <wrn> cis_gateway: Create ACL connection failed: -12
    GW [00:00:04.052,185] <inf> cis_gateway: All bonded slots filled, will not accept new devices
    GW [00:00:04.052,917] <inf> cis_gateway: Scanning successfully started
    GW [00:00:04.161,071] <wrn> cis_gateway: Create ACL connection failed: -12
    GW [00:00:04.161,224] <inf> cis_gateway: All bonded slots filled, will not accept new devices
    GW [00:00:04.161,926] <inf> cis_gateway: Scanning successfully started
    GW [00:00:04.372,070] <wrn> cis_gateway: Create ACL connection failed: -12
    GW [00:00:04.372,192] <inf> cis_gateway: All bonded slots filled, will not accept new devices
    GW [00:00:04.372,955] <inf> cis_gateway: Scanning successfully started
    GW [00:00:04.487,640] <wrn> cis_gateway: Create ACL connection failed: -12
    GW [00:00:04.487,792] <inf> cis_gateway: All bonded slots filled, will not accept new devices
    GW [00:00:04.488,555] <inf> cis_gateway: Scanning successfully started
    GW [00:00:04.588,012] <wrn> cis_gateway: Create ACL connection failed: -12
    GW [00:00:04.588,165] <inf> cis_gateway: All bonded slots filled, will not accept new devices
    GW [00:00:04.588,928] <inf> cis_gateway: Scanning successfully started
    GW [00:00:04.692,962] <wrn> cis_gateway: Create ACL connection failed: -12
    GW [00:00:04.693,084] <inf> cis_gateway: All bonded slots filled, will not accept new devices
    GW [00:00:04.693,664] <inf> cis_gateway: Scanning successfully started
    GW [00:00:04.804,138] <wrn> cis_gateway: Create ACL connection failed: -12
    GW [00:00:04.804,290] <inf> cis_gateway: All bonded slots filled, will not accept new devices
    GW [00:00:04.804,962] <inf> cis_gateway: Scanning successfully started
    GW [00:00:04.913,696] <wrn> cis_gateway: Create ACL connection failed: -12
    GW [00:00:04.913,879] <inf> cis_gateway: All bonded slots filled, will not accept new devices
    GW [00:00:04.914,611] <inf> cis_gateway: Scanning successfully started
    GW [00:00:05.131,286] <wrn> cis_gateway: Create ACL connection failed: -12
    GW [00:00:05.131,439] <inf> cis_gateway: All bonded slots filled, will not accept new devices
    GW [00:00:05.132,049] <inf> cis_gateway: Scanning successfully started
    GW [00:00:05.233,703] <wrn> cis_gateway: Create ACL connection failed: -12
    GW [00:00:05.233,886] <inf> cis_gateway: All bonded slots filled, will not accept new devices
    GW [00:00:05.234,619] <inf> cis_gateway: Scanning successfully started
    GW [00:00:05.346,527] <wrn> cis_gateway: Create ACL connection failed: -12
    GW [00:00:05.346,679] <inf> cis_gateway: All bonded slots filled, will not accept new devices
    GW [00:00:05.347,351] <inf> cis_gateway: Scanning successfully started
    GW [00:00:05.550,994] <wrn> cis_gateway: Create ACL connection failed: -12
    GW [00:00:05.551,116] <inf> cis_gateway: All bonded slots filled, will not accept new devices
    GW [00:00:05.551,727] <inf> cis_gateway: Scanning successfully started
    GW [00:00:05.652,008] <wrn> cis_gateway: Create ACL connection failed: -12
    GW [00:00:05.652,130] <inf> cis_gateway: All bonded slots filled, will not accept new devices
    GW [00:00:05.652,709] <inf> cis_gateway: Scanning successfully started
    GW [00:00:05.772,125] <wrn> cis_gateway: Create ACL connection failed: -12
    GW [00:00:05.772,247] <inf> cis_gateway: All bonded slots filled, will not accept new devices
    GW [00:00:05.772,979] <inf> cis_gateway: Scanning successfully started
    GW [00:00:05.873,413] <wrn> cis_gateway: Create ACL connection failed: -12
    GW [00:00:05.873,565] <inf> cis_gateway: All bonded slots filled, will not accept new devices
    GW [00:00:05.874,298] <inf> cis_gateway: Scanning successfully started
    GW [00:00:05.972,106] <wrn> cis_gateway: Create ACL connection failed: -12
    GW [00:00:05.972,259] <inf> cis_gateway: All bonded slots filled, will not accept new devices
    GW [00:00:05.972,991] <inf> cis_gateway: Scanning successfully started
    GW [00:00:06.080,535] <wrn> cis_gateway: Create ACL connection failed: -12
    GW [00:00:06.080,657] <inf> cis_gateway: All bonded slots filled, will not accept new devices
    GW [00:00:06.081,329] <inf> cis_gateway: Scanning successfully started
    GW [00:00:06.178,802] <wrn> cis_gateway: Create ACL connection failed: -12
    GW [00:00:06.178,924] <inf> cis_gateway: All bonded slots filled, will not accept new devices
    GW [00:00:06.179,687] <inf> cis_gateway: Scanning successfully started
    GW [00:00:06.281,127] <wrn> cis_gateway: Create ACL connection failed: -12
    GW [00:00:06.281,280] <inf> cis_gateway: All bonded slots filled, will not accept new devices
    GW [00:00:06.282,012] <inf> cis_gateway: Scanning successfully started
    GW [00:00:06.394,012] <wrn> cis_gateway: Create ACL connection failed: -12
    GW [00:00:06.394,165] <inf> cis_gateway: All bonded slots filled, will not accept new devices
    GW [00:00:06.394,744] <inf> cis_gateway: Scanning successfully started
    GW [00:00:06.603,546] <wrn> cis_gateway: Create ACL connection failed: -12
    GW [00:00:06.603,698] <inf> cis_gateway: All bonded slots filled, will not accept new devices
    GW [00:00:06.604,370] <inf> cis_gateway: Scanning successfully started
    GW [00:00:06.708,038] <wrn> cis_gateway: Create ACL connection failed: -12
    GW [00:00:06.708,190] <inf> cis_gateway: All bonded slots filled, will not accept new devices
    GW [00:00:06.708,770] <inf> cis_gateway: Scanning successfully started
    GW [00:00:06.811,676] <wrn> cis_gateway: Create ACL connection failed: -12
    GW [00:00:06.811,859] <inf> cis_gateway: All bonded slots filled, will not accept new devices
    GW [00:00:06.812,591] <inf> cis_gateway: Scanning successfully started
    GW [00:00:06.913,757] <wrn> cis_gateway: Create ACL connection failed: -12
    GW [00:00:06.913,909] <inf> cis_gateway: All bonded slots filled, will not accept new devices
    GW [00:00:06.914,642] <inf> cis_gateway: Scanning successfully started
    GW [00:00:07.033,142] <wrn> cis_gateway: Create ACL connection failed: -12
    GW [00:00:07.033,264] <inf> cis_gateway: All bonded slots filled, will not accept new devices
    GW [00:00:07.034,027] <inf> cis_gateway: Scanning successfully started
    GW [00:00:07.124,237] <wrn> cis_gateway: Create ACL connection failed: -12
    GW [00:00:07.124,359] <inf> cis_gateway: All bonded slots filled, will not accept new devices
    GW [00:00:07.125,030] <inf> cis_gateway: Scanning successfully started
    GW [00:00:07.233,795] <wrn> cis_gateway: Create ACL connection failed: -12
    GW [00:00:07.233,947] <inf> cis_gateway: All bonded slots filled, will not accept new devices
    GW [00:00:07.234,680] <inf> cis_gateway: Scanning successfully started
    GW [00:00:07.452,056] <wrn> cis_gateway: Create ACL connection failed: -12
    GW [00:00:07.452,209] <inf> cis_gateway: All bonded slots filled, will not accept new devices
    GW [00:00:07.452,758] <inf> cis_gateway: Scanning successfully started
    GW [00:00:07.548,614] <wrn> cis_gateway: Create ACL connection failed: -12
    GW [00:00:07.548,736] <inf> cis_gateway: All bonded slots filled, will not accept new devices
    GW [00:00:07.549,407] <inf> cis_gateway: Scanning successfully started
    GW [00:00:07.652,160] <wrn> cis_gateway: Create ACL connection failed: -12
    GW [00:00:07.652,313] <inf> cis_gateway: All bonded slots filled, will not accept new devices
    GW [00:00:07.653,045] <inf> cis_gateway: Scanning successfully started
    GW [00:00:07.753,814] <wrn> cis_gateway: Create ACL connection failed: -12
    GW [00:00:07.753,967] <inf> cis_gateway: All bonded slots filled, will not accept new devices
    GW [00:00:07.754,699] <inf> cis_gateway: Scanning successfully started
    GW [00:00:07.972,198] <wrn> cis_gateway: Create ACL connection failed: -12
    GW [00:00:07.972,320] <inf> cis_gateway: All bonded slots filled, will not accept new devices
    GW [00:00:07.973,052] <inf> cis_gateway: Scanning successfully started
    GW [00:00:08.073,822] <wrn> cis_gateway: Create ACL connection failed: -12
    GW [00:00:08.073,974] <inf> cis_gateway: All bonded slots filled, will not accept new devices
    GW [00:00:08.074,707] <inf> cis_gateway: Scanning successfully started
    GW [00:00:08.168,762] <wrn> cis_gateway: Create ACL connection failed: -12
    GW [00:00:08.168,945] <inf> cis_gateway: All bonded slots filled, will not accept new devices
    GW [00:00:08.169,677] <inf> cis_gateway: Scanning successfully started
    GW [00:00:08.273,803] <wrn> cis_gateway: Create ACL connection failed: -12
    GW [00:00:08.273,986] <inf> cis_gateway: All bonded slots filled, will not accept new devices
    GW [00:00:08.274,719] <inf> cis_gateway: Scanning successfully started
    GW [00:00:08.492,218] <wrn> cis_gateway: Create ACL connection failed: -12
    GW [00:00:08.492,340] <inf> cis_gateway: All bonded slots filled, will not accept new devices
    GW [00:00:08.493,072] <inf> cis_gateway: Scanning successfully started
    GW [00:00:08.593,841] <wrn> cis_gateway: Create ACL connection failed: -12
    GW [00:00:08.593,994] <inf> cis_gateway: All bonded slots filled, will not accept new devices
    GW [00:00:08.594,726] <inf> cis_gateway: Scanning successfully started
    GW [00:00:08.692,199] <wrn> cis_gateway: Create ACL connection failed: -12
    GW [00:00:08.692,352] <inf> cis_gateway: All bonded slots filled, will not accept new devices
    GW [00:00:08.693,084] <inf> cis_gateway: Scanning successfully started
    GW [00:00:08.800,903] <wrn> cis_gateway: Create ACL connection failed: -12
    GW [00:00:08.801,025] <inf> cis_gateway: All bonded slots filled, will not accept new devices
    GW [00:00:08.801,757] <inf> cis_gateway: Scanning successfully started
    GW [00:00:08.913,116] <wrn> cis_gateway: Create ACL connection failed: -12
    GW [00:00:08.913,238] <inf> cis_gateway: All bonded slots filled, will not accept new devices
    GW [00:00:08.913,848] <inf> cis_gateway: Scanning successfully started
    GW [00:00:09.445,343] <wrn> cis_gateway: Create ACL connection failed: -12
    GW [00:00:09.445,465] <inf> cis_gateway: All bonded slots filled, will not accept new devices
    GW [00:00:09.446,105] <inf> cis_gateway: Scanning successfully started
    GW [00:00:09.652,252] <wrn> cis_gateway: Create ACL connection failed: -12
    GW [00:00:09.652,374] <inf> cis_gateway: All bonded slots filled, will not accept new devices
    GW [00:00:09.653,137] <inf> cis_gateway: Scanning successfully started
    GW [00:00:09.751,220] <wrn> cis_gateway: Create ACL connection failed: -12
    GW [00:00:09.751,373] <inf> cis_gateway: All bonded slots filled, will not accept new devices
    GW [00:00:09.752,105] <inf> cis_gateway: Scanning successfully started
    GW [00:00:10.161,163] <wrn> cis_gateway: Create ACL connection failed: -12
    GW [00:00:10.161,315] <inf> cis_gateway: All bonded slots filled, will not accept new devices
    GW [00:00:10.161,895] <inf> cis_gateway: Scanning successfully started
    GW [00:00:10.271,789] <wrn> cis_gateway: Create ACL connection failed: -12
    GW [00:00:10.271,942] <inf> cis_gateway: All bonded slots filled, will not accept new devices
    GW [00:00:10.272,705] <inf> cis_gateway: Scanning successfully started
    GW [00:00:10.369,934] <wrn> cis_gateway: Create ACL connection failed: -12
    GW [00:00:10.370,086] <inf> cis_gateway: All bonded slots filled, will not accept new devices
    GW [00:00:10.370,819] <inf> cis_gateway: Scanning successfully started
    GW [00:00:10.472,229] <wrn> cis_gateway: Create ACL connection failed: -12
    GW [00:00:10.472,381] <inf> cis_gateway: All bonded slots filled, will not accept new devices
    GW [00:00:10.473,144] <inf> cis_gateway: Scanning successfully started
    GW [00:00:10.683,166] <wrn> cis_gateway: Create ACL connection failed: -12
    GW [00:00:10.683,319] <inf> cis_gateway: All bonded slots filled, will not accept new devices
    GW [00:00:10.683,898] <inf> cis_gateway: Scanning successfully started
    GW [00:00:10.792,846] <wrn> cis_gateway: Create ACL connection failed: -12
    GW [00:00:10.792,999] <inf> cis_gateway: All bonded slots filled, will not accept new devices
    GW [00:00:10.793,731] <inf> cis_gateway: Scanning successfully started
    GW [00:00:10.900,573] <wrn> cis_gateway: Create ACL connection failed: -12
    GW [00:00:10.900,726] <inf> cis_gateway: All bonded slots filled, will not accept new devices
    GW [00:00:10.901,489] <inf> cis_gateway: Scanning successfully started
    GW [00:00:11.000,579] <wrn> cis_gateway: Create ACL connection failed: -12
    GW [00:00:11.000,732] <inf> cis_gateway: All bonded slots filled, will not accept new devices
    GW [00:00:11.001,464] <inf> cis_gateway: Scanning successfully started
    GW [00:00:11.111,267] <wrn> cis_gateway: Create ACL connection failed: -12
    GW [00:00:11.111,419] <inf> cis_gateway: All bonded slots filled, will not accept new devices
    GW [00:00:11.112,182] <inf> cis_gateway: Scanning successfully started
    GW [00:00:11.203,430] <wrn> cis_gateway: Create ACL connection failed: -12
    GW [00:00:11.203,552] <inf> cis_gateway: All bonded slots filled, will not accept new devices
    GW [00:00:11.204,162] <inf> cis_gateway: Scanning successfully started
    GW [00:00:11.313,934] <wrn> cis_gateway: Create ACL connection failed: -12
    GW [00:00:11.314,086] <inf> cis_gateway: All bonded slots filled, will not accept new devices
    GW [00:00:11.314,819] <inf> cis_gateway: Scanning successfully started
    GW [00:00:11.528,259] <wrn> cis_gateway: Create ACL connection failed: -12
    GW [00:00:11.528,411] <inf> cis_gateway: All bonded slots filled, will not accept new devices
    GW [00:00:11.529,174] <inf> cis_gateway: Scanning successfully started
    GW [00:00:11.633,911] <wrn> cis_gateway: Create ACL connection failed: -12
    GW [00:00:11.634,094] <inf> cis_gateway: All bonded slots filled, will not accept new devices
    GW [00:00:11.634,796] <inf> cis_gateway: Scanning successfully started
    GW [00:00:11.733,215] <wrn> cis_gateway: Create ACL connection failed: -12
    GW [00:00:11.733,337] <inf> cis_gateway: All bonded slots filled, will not accept new devices
    GW [00:00:11.733,947] <inf> cis_gateway: Scanning successfully started
    GW [00:00:11.849,884] <wrn> cis_gateway: Create ACL connection failed: -12
    GW [00:00:11.850,036] <inf> cis_gateway: All bonded slots filled, will not accept new devices
    GW [00:00:11.850,769] <inf> cis_gateway: Scanning successfully started
    GW [00:00:12.046,508] <wrn> cis_gateway: Create ACL connection failed: -12
    GW [00:00:12.046,661] <inf> cis_gateway: All bonded slots filled, will not accept new devices
    GW [00:00:12.047,241] <inf> cis_gateway: Scanning successfully started
    GW [00:00:12.153,961] <wrn> cis_gateway: Create ACL connection failed: -12
    GW [00:00:12.154,113] <inf> cis_gateway: All bonded slots filled, will not accept new devices
    GW [00:00:12.154,846] <inf> cis_gateway: Scanning successfully started
    GW [00:00:12.371,215] <wrn> cis_gateway: Create ACL connection failed: -12
    GW [00:00:12.371,368] <inf> cis_gateway: All bonded slots filled, will not accept new devices
    GW [00:00:12.371,948] <inf> cis_gateway: Scanning successfully started
    GW [00:00:12.473,968] <wrn> cis_gateway: Create ACL connection failed: -12
    GW [00:00:12.474,121] <inf> cis_gateway: All bonded slots filled, will not accept new devices
    GW [00:00:12.474,884] <inf> cis_gateway: Scanning successfully started
    GW [00:00:12.572,326] <wrn> cis_gateway: Create ACL connection failed: -12
    GW [00:00:12.572,479] <inf> cis_gateway: All bonded slots filled, will not accept new devices
    GW [00:00:12.573,242] <inf> cis_gateway: Scanning successfully started
    GW [00:00:12.673,980] <wrn> cis_gateway: Create ACL connection failed: -12
    GW [00:00:12.674,133] <inf> cis_gateway: All bonded slots filled, will not accept new devices
    GW [00:00:12.674,865] <inf> cis_gateway: Scanning successfully started
    GW [00:00:12.773,223] <wrn> cis_gateway: Create ACL connection failed: -12
    GW [00:00:12.773,376] <inf> cis_gateway: All bonded slots filled, will not accept new devices
    GW [00:00:12.773,956] <inf> cis_gateway: Scanning successfully started
    GW [00:00:12.879,486] <wrn> cis_gateway: Create ACL connection failed: -12
    GW [00:00:12.879,608] <inf> cis_gateway: All bonded slots filled, will not accept new devices
    GW [00:00:12.880,218] <inf> cis_gateway: Scanning successfully started
    GW [00:00:12.985,260] <wrn> cis_gateway: Create ACL connection failed: -12
    GW [00:00:12.985,382] <inf> cis_gateway: All bonded slots filled, will not accept new devices
    GW [00:00:12.985,992] <inf> cis_gateway: Scanning successfully started
    GW [00:00:13.092,346] <wrn> cis_gateway: Create ACL connection failed: -12
    GW [00:00:13.092,498] <inf> cis_gateway: All bonded slots filled, will not accept new devices
    GW [00:00:13.093,231] <inf> cis_gateway: Scanning successfully started
    GW [00:00:13.190,551] <wrn> cis_gateway: Create ACL connection failed: -12
    GW [00:00:13.190,673] <inf> cis_gateway: All bonded slots filled, will not accept new devices
    GW [00:00:13.191,253] <inf> cis_gateway: Scanning successfully started
    GW [00:00:13.401,947] <wrn> cis_gateway: Create ACL connection failed: -12
    GW [00:00:13.402,130] <inf> cis_gateway: All bonded slots filled, will not accept new devices
    GW [00:00:13.402,862] <inf> cis_gateway: Scanning successfully started
    GW [00:00:13.510,955] <wrn> cis_gateway: Create ACL connection failed: -12
    GW [00:00:13.511,108] <inf> cis_gateway: All bonded slots filled, will not accept new devices
    GW [00:00:13.511,871] <inf> cis_gateway: Scanning successfully started
    GW [00:00:13.611,938] <wrn> cis_gateway: Create ACL connection failed: -12
    GW [00:00:13.612,091] <inf> cis_gateway: All bonded slots filled, will not accept new devices
    GW [00:00:13.612,854] <inf> cis_gateway: Scanning successfully started
    GW [00:00:13.713,989] <wrn> cis_gateway: Create ACL connection failed: -12
    GW [00:00:13.714,172] <inf> cis_gateway: All bonded slots filled, will not accept new devices
    GW [00:00:13.714,935] <inf> cis_gateway: Scanning successfully started
    GW [00:00:13.932,373] <wrn> cis_gateway: Create ACL connection failed: -12
    GW [00:00:13.932,525] <inf> cis_gateway: All bonded slots filled, will not accept new devices
    GW [00:00:13.933,258] <inf> cis_gateway: Scanning successfully started
    GW [00:00:14.026,306] <wrn> cis_gateway: Create ACL connection failed: -12
    GW [00:00:14.026,428] <inf> cis_gateway: All bonded slots filled, will not accept new devices
    GW [00:00:14.027,038] <inf> cis_gateway: Scanning successfully started
    GW [00:00:14.133,270] <wrn> cis_gateway: Create ACL connection failed: -12
    GW [00:00:14.133,422] <inf> cis_gateway: All bonded slots filled, will not accept new devices
    GW [00:00:14.134,002] <inf> cis_gateway: Scanning successfully started
    GW [00:00:14.350,280] <wrn> cis_gateway: Create ACL connection failed: -12

    I would now like to achieve a stable CIS connection with both channels (left and right) being transmitted. After that, I aim to implement it using a newer SDK version (I am currently using v2.4.2).

    I have tried the approach mentioned in this tickt, but when I add CONFIG_BT_MAX_CONN=2_ to the prj.conf file, I encounter the following error from the gateway:

    *** Booting Zephyr OS build v3.3.99-ncs1-2 ***
    GW [00:00:00.256,500] <inf> fw_info: 
             nRF5340 Audio nRF5340 Audio DK cpuapp                      
             NCS base version: 2.4.2                            
             Cmake run : Sun Nov 24 16:46:32 2024
    GW [00:00:00.256,530] <inf> fw_info: ------- DEBUG BUILD -------
    GW [00:00:00.256,530] <inf> fw_info: Compiled for GATEWAY device
    GW [00:00:00.267,150] <inf> board_version: Compatible board/HW version found: 1.0.0
    GW [00:00:00.305,236] <wrn> bt_hci_core: Controller to host flow control not supported
    GW [00:00:00.308,349] <inf> bt_hci_core: No ID address. App must call settings_load()
    GW [00:00:00.308,441] <inf> ble: MAC: 00:00:00:00:00:00 (public)
    GW [00:00:00.308,990] <inf> ble: Controller version: 3349
    GW [00:00:00.312,133] <inf> bt_hci_core: Identity: E4:C0:9C:97:EF:97 (random)
    GW [00:00:00.312,133] <inf> bt_hci_core: HCI: version 5.GW [00:00:00.312,164] <inf> bt_hci_core: LMP: version 5.2 (0x0b) subver 0x0d15
    GW [00:00:00.313,842] <inf> bt_settings: Saving ID
    GW [00:00:00.400,390] <err> cis_gateway: Failed to create unicast group: -22
    GW [00:00:00.400,390] <err> streamctrl: Failed to enable LE Audio
    GW [00:00:00.400,421] <err> streamctrl: ERR_CHK Err_code: [-22] @ line: 467
    GW [00:00:00.400,421] <err> os: r0/a1:  0x00000003  r1/a2:  0x00000005  r2/a3:  0x00000004
    GW [00:00:00.400,421] <err> os: r3/a4:  0x0006a3ff r12/ip:  0x20019140 r14/lr:  0x0006a489
    GW [00:00:00.400,451] <err> os:  xpsr:  0x49100000
    GW [00:00:00.400,451] <err> os: s[ 0]:  0x00000000  s[ 1]:  0x00000000  s[ 2]:  0x00000000  s[ 3]:  0x00000000
    GW [00:00:00.400,451] <err> os: s[ 4]:  0x00000000  s[ 5]:  0x00000000  s[ 6]:  0x00000000  s[ 7]:  0x00000000
    GW [00:00:00.400,451] <err> os: s[ 8]:  0x00000000  s[ 9]:  0x00000000  s[10]:  0x00000000  s[11]:  0x00000000
    GW [00:00:00.400,482] <err> os: s[12]:  0x00000000  s[13]:  0x00000000  s[14]:  0x00000000  s[15]:  0x00000000
    GW [00:00:00.400,482] <err> os: fpscr:  0x00000000
    GW [00:00:00.400,482] <err> os: Faulting instruction address (r15/pc): 0x00006736
    GW [00:00:00.400,512] <err> os: >>> ZEPHYR FATAL ERROR 3: Kernel oops on CPU 0
    GW [00:00:00.400,543] <err> os: Current thread: 0x200051b0 (main)
    GW [00:00:00.400,543] <err> error_handler: Caught system error -- reason 3. Entering infinite loop
    

    Should you require further details, I am happy to assist.

    Many thanks in advance; I truly appreciate your assistance.

    Best regards,

    Abdulmohaimen Algamoudi

  • I forgot to mention that I am not using the configuration CONFIG_AUDIO_SOURCE_I2S=y, as my source is via USB. However, I am experiencing some issues with the microphone—when I use it, I only hear a noisy signal.

  • Hi Abdulmohaimen,

    Would it be possible that you switch to newer NCS version sooner rather than later? The controller that was used in audio application before NCS v2.6.0 is deprecated and it is highly recommended that you update your NCS version. The most recent NCS version in 2.8.0.

    Best regards,
    Dejan

  • Hey Dejans,

    I have been using the older SDK because it is the only version with which I have made progress so far. I currently have no issue with transitioning to a newer SDK. However, as I mentioned before, I was unable to make further progress with version 2.6.2.

    I would be grateful if you could provide me with any steps or guidance to move forward with the new SDK and address potential issues, such as pairing and data rate problems.

    Thanks in advance.

    best regards 

    Abdulmohaimen 

  • Hi Abdulmohaimen,

    In your initial post you mentioned NCS v2.6.2 but you showed the log when using NCS v2.4.2. Can you provide clarification on the NCS version you currently use?

    Best regards,
    Dejan

Reply Children
  • Hey Dejans,

    While working with v2.6.2, I encountered some recurring errors.
    I found the mentioned code of v2.4.2 from a previous ticket , implemented it, and it worked, allowing me to achieve CIS audio, albeit with limitations, as previously mentioned.

    My approach was to continue working with the functional setup on v2.4.2 to find a concrete solution and resolve all potential problems. After that, I plan to update and attempt to achieve the same results with the newer SDK.

    Best regards 

    Abdulmohaimen

  • BTW, these are the log files from using v2.6.2 in a proper implementation:

    1-Gateway:

       nRF5340 Audio nRF5340 Audio DK cpuapp                      
             NCS base version: 2.6.2                            
             Cmake run : Wed Nov 27 13:37:31 2024
    GW [00:00:00.292,602] <inf> fw_info: ------- DEBUG BUILD -------
    GW [00:00:00.292,602] <inf> fw_info: Compiled for GATEWAY device
    GW [00:00:00.311,035] <inf> bt_mgmt_ctlr_cfg: Controller: SoftDevice: Version 5.4 (0x0d), Revision 8591
    GW [00:00:00.311,248] <inf> bt_mgmt: Local identity addr: D3:C8:9D:D1:BE:66 (random)
    GW [00:00:00.315,093] <inf> bt_mgmt_scan: Local addr: 74:00:D2:00:21:08 (random). May time out. Updates not printed
    GW [00:00:00.315,093] <inf> bt_mgmt_scan: Scanning successfully started
    GW [00:00:00.771,606] <inf> bt_mgmt_scan: Creating connection to device: 79:25:96:B0:FA:D0 (random)
    GW [00:00:00.881,622] <inf> bt_mgmt: Connected: 79:25:96:B0:FA:D0 (random)
    GW [00:00:00.882,629] <inf> bt_mgmt_scan: Local addr: 74:00:D2:00:21:08 (random). May time out. Updates not printed
    GW [00:00:00.882,629] <inf> bt_mgmt_scan: Scanning successfully started
    GW [00:00:00.882,659] <inf> main: Device connected
    GW [00:00:01.604,217] <inf> main: Security changed
    GW [00:00:02.204,162] <inf> bt_rend_vol: VCS discover finished
    GW [00:00:05.804,992] <inf> unicast_client: LEFT sink stream configured
    GW [00:00:05.806,732] <inf> unicast_client: LEFT source stream configured
    GW [00:00:05.884,521] <inf> unicast_client: Enable stream 0x20002da0
    GW [00:00:05.885,406] <inf> unicast_client: Enable stream 0x20002ca8
    GW [00:00:06.204,193] <inf> unicast_client: Stream 0x20002ca8 started
    GW [00:00:06.244,567] <inf> unicast_client: Stream 0x20002da0 started
    GW [00:00:07.531,341] <inf> audio_usb: USB TX first data sent.
    GW [00:00:07.593,475] <inf> audio_usb: USB RX first data received.
    GW [00:01:07.684,082] <wrn> bt_att: Not connected
    GW [00:01:07.684,082] <wrn> bt_att: Not connected
    GW [00:01:07.684,112] <inf> unicast_client: Stream 0x20002ca8 stopped. Reason 8
    GW [00:01:07.684,173] <inf> unicast_client: Stream 0x20002da0 stopped. Reason 8
    GW [00:01:07.684,173] <wrn> unicast_client: Unknown stream
    GW [00:01:07.684,265] <inf> bt_mgmt: Disconnected: F0:D2:8E:F5:33:C2 (random) (reason 0x08)
    GW [00:01:07.684,326] <inf> main: Device disconnected
    GW [00:01:07.685,699] <inf> bt_mgmt_scan: Local addr: 74:00:D2:00:21:08 (random). May time out. Updates not printed
    GW [00:01:07.685,699] <inf> bt_mgmt_scan: Scanning successfully started
    GW [00:01:07.695,617] <inf> bt_mgmt_scan: Creating connection to bonded device: F0:D2:8E:F5:33:C2 (random)
    GW [00:01:07.705,566] <inf> bt_mgmt: Connected: F0:D2:8E:F5:33:C2 (random)
    GW [00:01:07.706,665] <inf> bt_mgmt_scan: Local addr: 74:00:D2:00:21:08 (random). May time out. Updates not printed
    GW [00:01:07.706,665] <inf> bt_mgmt_scan: Scanning successfully started
    GW [00:01:07.706,695] <inf> main: Device connected
    GW [00:01:07.986,053] <inf> main: Security changed
    GW [00:01:08.786,163] <inf> bt_rend_vol: VCS discover finished
    GW [00:01:11.866,729] <inf> unicast_client: LEFT sink stream configured
    GW [00:01:11.868,804] <inf> unicast_client: LEFT source stream configured
    GW [00:01:11.946,716] <inf> unicast_client: Enable stream 0x20002da0
    GW [00:01:11.947,662] <inf> unicast_client: Enable stream 0x20002ca8
    GW [00:01:12.226,226] <inf> unicast_client: Stream 0x20002ca8 started
    GW [00:01:12.227,630] <inf> audio_usb: USB RX first data received.
    GW [00:01:12.266,723] <inf> unicast_client: Stream 0x20002da0 started
    GW [00:01:19.066,162] <wrn> bt_att: Not connected
    GW [00:01:19.066,162] <wrn> bt_att: Not connected
    GW [00:01:19.066,192] <inf> unicast_client: Stream 0x20002ca8 stopped. Reason 8
    GW [00:01:19.066,253] <inf> unicast_client: Stream 0x20002da0 stopped. Reason 8
    GW [00:01:19.066,284] <wrn> unicast_client: Unknown stream
    GW [00:01:19.066,375] <inf> bt_mgmt: Disconnected: F0:D2:8E:F5:33:C2 (random) (reason 0x08)
    GW [00:01:19.066,375] <inf> main: Device disconnected
    GW [00:01:19.067,962] <inf> bt_mgmt_scan: Local addr: 74:00:D2:00:21:08 (random). May time out. Updates not printed
    GW [00:01:19.067,962] <inf> bt_mgmt_scan: Scanning successfully started
    GW [00:01:19.067,993] <wrn> unicast_client: Not in streaming state
    

    2-Headset: 

      nRF5340 Audio nRF5340 Audio DK cpuapp                      
             NCS base version: 2.6.2                            
             Cmake run : Wed Nov 27 13:46:46 2024
    HL [00:00:00.296,600] <inf> fw_info: ------- DEBUG BUILD -------
    HL [00:00:00.296,600] <inf> fw_info: HEADSET left device
    HL [00:00:00.316,436] <inf> bt_mgmt_ctlr_cfg: Controller: SoftDevice: Version 5.4 (0x0d), Revision 8591
    HL [00:00:00.316,650] <inf> bt_mgmt: Local identity addr: F0:D2:8E:F5:33:C2 (random)
    HL [00:00:00.322,021] <inf> bt_mgmt_adv: Local addr: 4B:AF:01:05:9B:F9 (random)
    HL [00:00:00.322,082] <inf> bt_mgmt_adv: Adv directed to: D3:C8:9D:D1:BE:66 (random).
    HL [00:00:00.322,692] <inf> bt_mgmt_adv: Advertising successfully started
    HL [00:00:00.797,271] <inf> bt_mgmt: Connected: D3:C8:9D:D1:BE:66 (random)
    HL [00:00:00.797,302] <inf> main: Connected
    HL [00:00:00.797,912] <inf> bt_mgmt_adv: RPA (Resolvable Private Address) expired.
    HL [00:00:00.797,973] <inf> bt_mgmt_adv: Local addr: 4B:AF:01:05:9B:F9 (random)
    HL [00:00:01.078,125] <inf> main: Security changed
    HL [00:00:01.078,369] <wrn> bt_gatt: Device is not subscribed to characteristic
    HL [00:00:01.078,399] <wrn> bt_pacs: PACS notify failed: -22
    HL [00:00:02.998,748] <inf> bt_content_ctrl_media: Discovery of MCS finished
    HL [00:00:04.918,640] <inf> unicast_server: LC3 codec config for sink:
    HL [00:00:04.918,640] <inf> unicast_server:     Frequency: 24000 Hz
    HL [00:00:04.918,640] <inf> unicast_server:     Duration: 10000 us
    HL [00:00:04.918,640] <inf> unicast_server:     Channel allocation: 0x1
    HL [00:00:04.918,670] <inf> unicast_server:     Octets per frame: 60 (48000 bps)
    HL [00:00:04.918,670] <inf> unicast_server:     Frames per SDU: 1
    HL [00:00:04.920,227] <inf> unicast_server: LC3 codec config for source:
    HL [00:00:04.920,227] <inf> unicast_server:     Frequency: 24000 Hz
    HL [00:00:04.920,227] <inf> unicast_server:     Duration: 10000 us
    HL [00:00:04.920,257] <inf> unicast_server:     Channel allocation: 0x1
    HL [00:00:04.920,257] <inf> unicast_server:     Octets per frame: 60 (48000 bps)
    HL [00:00:04.920,257] <inf> unicast_server:     Frames per SDU: 1
    HL [00:00:04.999,359] <inf> main: Presentation delay 10000 us is set by initiator
    HL [00:00:04.999,389] <inf> main: Presentation delay 10000 us is set by initiator
    HL [00:00:05.284,881] <inf> unicast_server: Stream 0x2000fbf8 started
    DAC L gain 112   
    DAC R gain 112   
    HL [00:00:05.295,776] <wrn> le_audio_rx: Not in streaming state, throwing data: 1
    HL [00:00:05.306,030] <err> sw_codec_select: Unsupported channel mode for decoder: 0
    HL [00:00:05.306,060] <wrn> audio_datapath: SW codec decode error: -19
    HL [00:00:05.306,060] <wrn> audio_datapath: Decoded audio has wrong size: 0. Expected: 1920
    HL [00:00:05.310,302] <wrn> audio_datapath: I2S RX overrun. Single msg
    HL [00:00:05.316,040] <err> sw_codec_select: Unsupported channel mode for decoder: 0
    --- 6 messages dropped ---
    HL [00:00:05.326,049] <wrn> audio_datapath: Decoded audio has wrong size: 0. Expected: 1920
    --- 6 messages dropped ---
    HL [00:00:05.336,517] <wrn> audio_datapath: Decoded audio has wrong size: 0. Expected: 1920
    --- 7 messages dropped ---
    HL [00:00:05.364,746] <wrn> audio_datapath: SW codec decode error: -19
    --- 3 messages dropped ---
    HL [00:00:05.384,735] <wrn> audio_datapath: Decoded audio has wrong size: 0. Expected: 1920
    --- 5 messages dropped ---
    HL [00:00:05.404,754] <wrn> audio_datapath: Decoded audio has wrong size: 0. Expected: 1920
    --- 5 messages dropped ---
    HL [00:00:05.424,743] <wrn> audio_datapath: Decoded audio has wrong size: 0. Expected: 1920
    --- 5 messages dropped ---
    HL [00:00:05.444,763] <wrn> audio_datapath: SW codec decode error: -19
    --- 5 messages dropped ---
    HL [00:00:05.464,752] <wrn> audio_datapath: SW codec decode error: -19
    --- 5 messages dropped ---
    HL [00:00:05.474,761] <wrn> audio_datapath: SW codec decode error: -19
    --- 5 messages dropped ---
    HL [00:00:05.494,750] <wrn> audio_datapath: SW codec decode error: -19
    --- 3 messages dropped ---
    HL [00:00:05.514,739] <wrn> audio_datapath: SW codec decode error: -19
    --- 5 messages dropped ---
    HL [00:00:05.534,759] <wrn> audio_datapath: SW codec decode error: -19
    --- 5 messages dropped ---
    HL [00:00:05.544,769] <wrn> audio_datapath: Decoded audio has wrong size: 0. Expected: 1920
    --- 4 messages dropped ---
    HL [00:00:05.564,758] <wrn> audio_datapath: SW codec decode error: -19
    --- 3 messages dropped ---
    HL [00:00:05.584,808] <wrn> audio_datapath: SW codec decode error: -19
    --- 5 messages dropped ---
    HL [00:00:05.604,797] <wrn> audio_datapath: SW codec decode error: -19
    --- 5 messages dropped ---
    HL [00:00:05.614,807] <wrn> audio_datapath: Decoded audio has wrong size: 0. Expected: 1920
    --- 4 messages dropped ---
    HL [00:00:05.634,796] <wrn> audio_datapath: SW codec decode error: -19
    --- 3 messages dropped ---
    HL [00:00:05.654,815] <wrn> audio_datapath: SW codec decode error: -19
    --- 5 messages dropped ---
    HL [00:00:05.674,804] <wrn> audio_datapath: SW codec decode error: -19
    --- 5 messages dropped ---
    HL [00:00:05.684,814] <wrn> audio_datapath: Decoded audio has wrong size: 0. Expected: 1920
    --- 3 messages dropped ---
    HL [00:00:05.704,803] <err> sw_codec_select: Unsupported channel mode for decoder: 0
    --- 5 messages dropped ---
    HL [00:00:05.724,792] <err> sw_codec_select: Unsupported channel mode for decoder: 0
    --- 5 messages dropped ---
    HL [00:00:05.746,307] <err> sw_codec_select: Unsupported channel mode for decoder: 0
    --- 5 messages dropped ---
    HL [00:00:05.764,801] <err> sw_codec_select: Unsupported channel mode for decoder: 0
    --- 2 messages dropped ---
    HL [00:00:05.784,790] <err> sw_codec_select: Unsupported channel mode for decoder: 0
    --- 5 messages dropped ---
    HL [00:00:05.804,809] <err> sw_codec_select: Unsupported channel mode for decoder: 0
    --- 5 messages dropped ---
    HL [00:00:05.824,798] <err> sw_codec_select: Unsupported channel mode for decoder: 0
    --- 5 messages dropped ---
    HL [00:00:05.844,787] <err> sw_codec_select: Unsupported channel mode for decoder: 0
    --- 6 messages dropped ---
    HL [00:00:05.864,807] <wrn> audio_datapath: Decoded audio has wrong size: 0. Expected: 1920
    --- 6 messages dropped ---
    HL [00:00:05.884,826] <wrn> audio_datapath: Decoded audio has wrong size: 0. Expected: 1920
    --- 5 messages dropped ---
    HL [00:00:05.904,815] <wrn> audio_datapath: Decoded audio has wrong size: 0. Expected: 1920
    --- 5 messages dropped ---
    HL [00:00:05.924,804] <wrn> audio_datapath: Decoded audio has wrong size: 0. Expected: 1920
    --- 5 messages dropped ---
    HL [00:00:05.944,824] <err> sw_codec_select: Unsupported channel mode for decoder: 0
    --- 5 messages dropped ---
    HL [00:00:05.964,813] <err> sw_codec_select: Unsupported channel mode for decoder: 0
    --- 7 messages dropped ---
    HL [00:00:05.974,822] <wrn> audio_datapath: Decoded audio has wrong size: 0. Expected: 1920
    --- 5 messages dropped ---
    HL [00:00:05.994,812] <wrn> audio_datapath: Decoded audio has wrong size: 0. Expected: 1920
    --- 5 messages dropped ---
    HL [00:00:06.014,801] <wrn> audio_datapath: Decoded audio has wrong size: 0. Expected: 1920
    --- 5 messages dropped ---
    HL [00:00:06.034,820] <wrn> audio_datapath: Decoded audio has wrong size: 0. Expected: 1920
    --- 5 messages dropped ---
    HL [00:00:06.054,656] <wrn> audio_datapath: Data received, total under-runs: 751
    --- 5 messages dropped ---
    HL [00:00:06.064,819] <wrn> audio_datapath: Decoded audio has wrong size: 0. Expected: 1920
    --- 5 messages dropped ---
    HL [00:00:06.084,808] <wrn> audio_datapath: Decoded audio has wrong size: 0. Expected: 1920
    --- 6 messages dropped ---
    HL [00:00:06.114,807] <err> sw_codec_select: Unsupported channel mode for decoder: 0
    --- 6 messages dropped ---
    HL [00:00:06.134,796] <wrn> audio_datapath: SW codec decode error: -19
    --- 2 messages dropped ---
    HL [00:00:06.154,815] <wrn> audio_datapath: SW codec decode error: -19
    --- 5 messages dropped ---
    HL [00:00:06.174,804] <wrn> audio_datapath: SW codec decode error: -19
    --- 5 messages dropped ---
    HL [00:00:06.184,814] <wrn> audio_datapath: SW codec decode error: -19
    --- 3 messages dropped ---
    HL [00:00:06.204,559] <inf> audio_datapath: Pres comp state: MEAS
    --- 5 messages dropped ---
    HL [00:00:06.224,792] <err> sw_codec_select: Unsupported channel mode for decoder: 0
    --- 8 messages dropped ---
    HL [00:00:06.244,812] <wrn> audio_datapath: Decoded audio has wrong size: 0. Expected: 1920
    --- 5 messages dropped ---
    HL [00:00:06.264,801] <wrn> audio_datapath: Decoded audio has wrong size: 0. Expected: 1920
    --- 4 messages dropped ---
    HL [00:00:06.274,810] <wrn> audio_datapath: Decoded audio has wrong size: 0. Expected: 1920
    --- 5 messages dropped ---
    HL [00:00:06.294,830] <wrn> audio_datapath: Decoded audio has wrong size: 0. Expected: 1920
    --- 5 messages dropped ---
    HL [00:00:06.314,666] <wrn> audio_datapath: Data received, total under-runs: 951
    --- 6 messages dropped ---
    HL [00:00:06.334,777] <err> sw_codec_select: Unsupported channel mode for decoder: 0
    --- 5 messages dropped ---
    HL [00:00:06.354,797] <err> sw_codec_select: Unsupported channel mode for decoder: 0
    --- 5 messages dropped ---
    HL [00:00:06.374,786] <err> sw_codec_select: Unsupported channel mode for decoder: 0
    --- 3 messages dropped ---
    HL [00:00:06.394,805] <wrn> audio_datapath: SW codec decode error: -19
    --- 5 messages dropped ---
    HL [00:00:06.414,794] <wrn> audio_datapath: SW codec decode error: -19
    --- 5 messages dropped ---
    HL [00:00:06.424,804] <wrn> audio_datapath: SW codec decode error: -19
    --- 5 messages dropped ---
    HL [00:00:06.444,793] <wrn> audio_datapath: SW codec decode error: -19
    --- 3 messages dropped ---
    HL [00:00:06.464,538] <inf> audio_datapath: Pres comp state: MEAS
    --- 5 messages dropped ---
    HL [00:00:06.474,792] <err> sw_codec_select: Unsupported channel mode for decoder: 0
    --- 8 messages dropped ---
    HL [00:00:06.504,791] <err> sw_codec_select: Unsupported channel mode for decoder: 0
    --- 4 messages dropped ---
    HL [00:00:06.514,831] <wrn> audio_datapath: Decoded audio has wrong size: 0. Expected: 1920
    --- 5 messages dropped ---
    HL [00:00:06.534,820] <wrn> audio_datapath: Decoded audio has wrong size: 0. Expected: 1920
    --- 5 messages dropped ---
    HL [00:00:06.554,809] <wrn> audio_datapath: Decoded audio has wrong size: 0. Expected: 1920
    --- 5 messages dropped ---
    HL [00:00:06.574,676] <wrn> audio_datapath: Data received, total under-runs: 1151
    --- 5 messages dropped ---
    HL [00:00:06.584,808] <wrn> audio_datapath: Decoded audio has wrong size: 0. Expected: 1920
    --- 3 messages dropped ---
    HL [00:00:06.604,797] <wrn> audio_datapath: Decoded audio has wrong size: 0. Expected: 1920
    --- 8 messages dropped ---
    HL [00:00:06.634,796] <err> sw_codec_select: Unsupported channel mode for decoder: 0
    --- 3 messages dropped ---
    HL [00:00:06.654,815] <wrn> audio_datapath: SW codec decode error: -19
    --- 5 messages dropped ---
    HL [00:00:06.674,804] <wrn> audio_datapath: SW codec decode error: -19
    --- 5 messages dropped ---
    HL [00:00:06.684,814] <wrn> audio_datapath: SW codec decode error: -19
    --- 5 messages dropped ---
    HL [00:00:06.704,803] <wrn> audio_datapath: SW codec decode error: -19
    --- 3 messages dropped ---
    HL [00:00:06.724,548] <inf> audio_datapath: Pres comp state: MEAS
    --- 5 messages dropped ---
    HL [00:00:06.734,802] <err> sw_codec_select: Unsupported channel mode for decoder: 0
    --- 8 messages dropped ---
    HL [00:00:06.764,801] <err> sw_codec_select: Unsupported channel mode for decoder: 0
    --- 4 messages dropped ---
    HL [00:00:06.774,810] <wrn> audio_datapath: Decoded audio has wrong size: 0. Expected: 1920
    --- 5 messages dropped ---
    HL [00:00:06.794,830] <wrn> audio_datapath: Decoded audio has wrong size: 0. Expected: 1920
    --- 5 messages dropped ---
    HL [00:00:06.814,819] <wrn> audio_datapath: Decoded audio has wrong size: 0. Expected: 1920
    --- 5 messages dropped ---
    HL [00:00:06.834,686] <wrn> audio_datapath: Data received, total under-runs: 1351
    --- 3 messages dropped ---
    HL [00:00:06.844,787] <wrn> audio_datapath: Decoded audio has wrong size: 0. Expected: 1920
    --- 5 messages dropped ---
    HL [00:00:06.864,807] <wrn> audio_datapath: Decoded audio has wrong size: 0. Expected: 1920
    --- 5 messages dropped ---
    HL [00:00:06.894,805] <err> sw_codec_select: Unsupported channel mode for decoder: 0
    --- 6 messages dropped ---
    HL [00:00:06.914,794] <wrn> audio_datapath: SW codec decode error: -19
    --- 5 messages dropped ---
    HL [00:00:06.934,814] <wrn> audio_datapath: SW codec decode error: -19
    --- 5 messages dropped ---
    HL [00:00:06.944,793] <wrn> audio_datapath: SW codec decode error: -19
    --- 5 messages dropped ---
    HL [00:00:06.964,813] <wrn> audio_datapath: SW codec decode error: -19
    --- 3 messages dropped ---
    HL [00:00:06.984,558] <inf> audio_datapath: Pres comp state: MEAS
    --- 5 messages dropped ---
    HL [00:00:06.994,812] <err> sw_codec_select: Unsupported channel mode for decoder: 0
    --- 8 messages dropped ---
    HL [00:00:07.024,810] <err> sw_codec_select: Unsupported channel mode for decoder: 0
    --- 4 messages dropped ---
    HL [00:00:07.034,820] <wrn> audio_datapath: Decoded audio has wrong size: 0. Expected: 1920
    --- 5 messages dropped ---
    HL [00:00:07.054,809] <wrn> audio_datapath: Decoded audio has wrong size: 0. Expected: 1920
    --- 5 messages dropped ---
    HL [00:00:07.074,798] <wrn> audio_datapath: Decoded audio has wrong size: 0. Expected: 1920
    --- 5 messages dropped ---
    HL [00:00:07.094,696] <wrn> audio_datapath: Data received, total under-runs: 1551
    --- 3 messages dropped ---
    HL [00:00:07.104,797] <wrn> audio_datapath: Decoded audio has wrong size: 0. Expected: 1920
    --- 5 messages dropped ---
    HL [00:00:07.124,816] <wrn> audio_datapath: Decoded audio has wrong size: 0. Expected: 1920
    --- 5 messages dropped ---
    HL [00:00:07.154,785] <err> sw_codec_select: Unsupported channel mode for decoder: 0
    --- 6 messages dropped ---
    HL [00:00:07.174,804] <wrn> audio_datapath: SW codec decode error: -19
    --- 5 messages dropped ---
    HL [00:00:07.194,793] <wrn> audio_datapath: SW codec decode error: -19
    --- 5 messages dropped ---
    HL [00:00:07.204,803] <wrn> audio_datapath: SW codec decode error: -19
    --- 3 messages dropped ---
    HL [00:00:07.224,822] <wrn> audio_datapath: SW codec decode error: -19
    --- 5 messages dropped ---
    HL [00:00:07.244,567] <inf> audio_datapath: Pres comp state: MEAS
    --- 5 messages dropped ---
    HL [00:00:07.254,791] <err> sw_codec_select: Unsupported channel mode for decoder: 0
    --- 8 messages dropped ---
    HL [00:00:07.284,790] <err> sw_codec_select: Unsupported channel mode for decoder: 0
    --- 4 messages dropped ---
    HL [00:00:07.294,830] <wrn> audio_datapath: Decoded audio has wrong size: 0. Expected: 1920
    --- 5 messages dropped ---
    HL [00:00:07.314,819] <wrn> audio_datapath: Decoded audio has wrong size: 0. Expected: 1920
    --- 3 messages dropped ---
    HL [00:00:07.334,808] <wrn> audio_datapath: Decoded audio has wrong size: 0. Expected: 1920
    --- 7 messages dropped ---
    HL [00:00:07.354,675] <wrn> audio_datapath: Data received, total under-runs: 1751
    --- 3 messages dropped ---
    HL [00:00:07.364,807] <wrn> audio_datapath: Decoded audio has wrong size: 0. Expected: 1920
    --- 5 messages dropped ---
    HL [00:00:07.384,796] <wrn> audio_datapath: Decoded audio has wrong size: 0. Expected: 1920
    --- 5 messages dropped ---
    HL [00:00:07.414,794] <err> sw_codec_select: Unsupported channel mode for decoder: 0
    --- 6 messages dropped ---
    HL [00:00:07.434,814] <wrn> audio_datapath: SW codec decode error: -19
    --- 5 messages dropped ---
    HL [00:00:07.444,793] <wrn> audio_datapath: SW codec decode error: -19
    --- 5 messages dropped ---
    HL [00:00:07.464,813] <wrn> audio_datapath: SW codec decode error: -19
    --- 3 messages dropped ---
    HL [00:00:07.484,802] <wrn> audio_datapath: SW codec decode error: -19
    --- 5 messages dropped ---
    HL [00:00:07.504,547] <inf> audio_datapath: Pres comp state: MEAS
    --- 5 messages dropped ---
    HL [00:00:07.514,801] <err> sw_codec_select: Unsupported channel mode for decoder: 0
    --- 7 messages dropped ---
    HL [00:00:07.534,820] <wrn> audio_datapath: Decoded audio has wrong size: 0. Expected: 1920
    --- 5 messages dropped ---
    HL [00:00:07.554,809] <wrn> audio_datapath: Decoded audio has wrong size: 0. Expected: 1920
    --- 5 messages dropped ---
    HL [00:00:07.574,829] <wrn> audio_datapath: Decoded audio has wrong size: 0. Expected: 1920
    --- 3 messages dropped ---
    HL [00:00:07.594,818] <wrn> audio_datapath: Decoded audio has wrong size: 0. Expected: 1920
    --- 4 messages dropped ---
    HL [00:00:07.614,685] <wrn> audio_datapath: Data received, total under-runs: 1951
    --- 6 messages dropped ---
    HL [00:00:07.624,816] <wrn> audio_datapath: Decoded audio has wrong size: 0. Expected: 1920
    --- 5 messages dropped ---
    HL [00:00:07.644,805] <wrn> audio_datapath: Decoded audio has wrong size: 0. Expected: 1920

  • Hi Abdulmohaimen,

    Are these logs in NCS v2.6.2 obtained after you implemented the same code changes as when you used NCS v2.4.2?

    Best regards,
    Dejan

  • Hi Abdulmohaimen,

    The error "<err> sw_codec_select: Unsupported channel mode for decoder: 0" in your NCS v2.6.2 log indicates that channel mode for decoder is not properly selected.

    You can look at m_config.decoder.channel_mode, struct sw_codec_decoder and enum sw_codec_channel_mode for the place where channel_mode is set. This is how sw_codec_channel_mode looks like in sw_codec_select.h

    enum sw_codec_channel_mode {
    	SW_CODEC_MONO = 1,
    	SW_CODEC_STEREO,
    };

    You could try to check how m_config.decoder.channel_mode is set.

    Best regards,
    Dejan

Related