nRF5340 Audio DK headphone output

I've purchased a couple of nRF5340 Audio DKs for testing Auracast broadcast source/sink. Installed VS Code and have the sample apps built & flashed.

SOURCE: Sample app bap_broadast _source. Audio source is either line in from a phone headphone, or USB audio from PC.

SINK:Sample app bap_broadcast_sink using line out jack

Problem is I get no audio output. The sink is definitely connecting & receiving the stream according to the uart output:

Stream 0x20000f88 connected
Stream 0x20000f88 started
Enable: stream with codec 0x200079e8
Enabling LC3 decoder with frame duration 10000us, frequency 16000Hz and with channel allocation 0x00000002, 40 octets per frame and 1 frame blocks per SDU
Waiting for PA disconnected
Stream 0x20000f88: received 1000 total ISO packets: Valid 1000 | Error 0 | Loss 0
Stream 0x20000f88: received 2000 total ISO packets: Valid 2000 | Error 0 | Loss 0
Stream 0x20000f88: received 3000 total ISO packets: Valid 3000 | Error 0 | Loss 0
Stream 0x20000f88: received 4000 total ISO packets: Valid 4000 | Error 0 | Loss 0
Stream 0x20000f88: received 5000 total ISO packets: Valid 5000 | Error 0 | Loss 0
Stream 0x20000f88: received 6000 total ISO packets: Valid 6000 | Error 0 | Loss 0
Stream 0x20000f88: received 7000 total ISO packets: Valid 7000 | Error 0 | Loss 0
Stream 0x20000f88: received 8000 total ISO packets: Valid 8000 | Error 0 | Loss 0
Stream 0x20000f88: received 9000 total ISO packets: Valid 9000 | Error 0 | Loss 0
Stream 0x20000f88: received 10000 total ISO packets: Valid 10000 | Error 0 | Loss 0
Stream 0x20000f88: received 11000 total ISO packets: Valid 11000 | Error 0 | Loss 0
Stream 0x20000f88: received 12000 total ISO packets: Valid 12000 | Error 0 | Loss 0
Stream 0x20000f88: received 13000 total ISO packets: Valid 13000 | Error 0 | Loss 0
Stream 0x20000f88: received 14000 total ISO packets: Valid 14000 | Error 0 | Loss 0
Stream 0x20000f88: received 15000 total ISO packets: Valid 15000 | Error 0 | Loss 0
Stream 0x20000f88: received 16000 total ISO packets: Valid 16000 | Error 0 | Loss 0
Stream 0x20000f88: received 17000 total ISO packets: Valid 17000 | Error 0 | Loss 0
Stream 0x20000f88 disconnected with reason 0x08

(the disconnection is me powering off the source DK)

Is there a config change needed for headphone out?

  • Could you build with NCS v2.9.0 and provide the complete logs from the sink and source devices?

    Also, check the Testing flow. 

  • OK I am already using 2.9.0.

    The user interface mentioned in the testing link doesn't exist, Is that written for a different sample app?

    I'll start tomorrow with a fresh copy of the samples and capture logs.

    Which of the board configs is best? From memory there is a choice of nRF5340 Audio Dk Application CPU, Network CPU and Non-Secure.

    Thanks

    Nick

  • Does your Audio DK look like this?

    It should use nrf5340_audio_dk/nrf5340/cpuapp. 

  • OK that's the config I'm using. And yes, that's the DK board I'm using.

    An update: I have now set the source & stream up on 2 separate DKs on separate PCs. Both present themselves as USB audio devices, and I can stream from the source and receive on the sink, using Audacity as a way of monitoring the input source.

    Stream 0x20000f88: received 256000 total ISO packets: Valid 255998 | Error 2 | Loss 0
    Sending USB audio (count = 2101000)
    Sending USB audio (count = 2102000)
    Sending USB audio (count = 2103000)
    Sending USB audio (count = 2104000)
    Sending USB audio (count = 2105000)
    Sending USB audio (count = 2106000)
    Sending USB audio (count = 2107000)
    Sending USB audio (count = 2108000)
    Sending USB audio (count = 2109000)
    Sending USB audio (count = 2110000)
    Stream 0x20000f88: received 257000 total ISO packets: Valid 256998 | Error 2 | Loss 0
    Sending USB audio (count = 2111000)
    Sending USB audio (count = 2112000)
    Sending USB audio (count = 2113000)
    Sending USB audio (count = 2114000)
    Sending USB audio (count = 2115000)
    Sending USB audio (count = 2116000)
    Sending USB audio (count = 2117000)
    Sending USB audio (count = 2118000)
    Sending USB audio (count = 2119000)
    Sending USB audio (count = 2120000)
    Stream 0x20000f88: received 258000 total ISO packets: Valid 257998 | Error 2 | Loss 0
    Sending USB audio (count = 2121000)
    

    So, back to the original question: How can I configure both the source and sink to use I2S Line In / Headphone Out?

    According to this documentation  I set CONFIG_AUDIO_SOURCE_I2S (source app), but I see no option with this name, nor is there anything mentioned for the sink app. Also, the LED/Button UI mentioned in the docs doesn't apply so it looks like the docs are inaccurate?

  • Nick_RA said:
    How can I configure both the source and sink to use I2S Line In / Headphone Out?

    See nRF5340 Audio configuration: Selecting the analog jack input using I2S and this post

    Nick_RA said:
    According to this documentation  I set CONFIG_AUDIO_SOURCE_I2S (source app), but I see no option with this name, nor is there anything mentioned for the sink app.

    Did you add CONFIG_AUDIO_SOURCE_I2S=y to prj.conf file for the debug version /prj_release.conf file for the release version as the instruction? Also, check the .config file under build/Audio to see if it takes effect.  

    Nick_RA said:
    Also, the LED/Button UI mentioned in the docs doesn't apply so it looks like the docs are inaccurate?

    Could you elaborate more on the issue? 

    Are you able to see the LED1 - Blinking Blue? Which Button doesn't work as the doc? Do you check the device log?

    Could you provide the terminal log from both Audio DKs?

Related