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,

    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

  • 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

Reply Children
  • 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