Hello,
I am using nrf5340 module with external hardware audio codec to test stereo audio output.
I use nrf5340 module as the headset to connect with Pixel 7 mobile phone,and refer to this post,I modify the code to below:
static void audio_headset_configure(void) { if (IS_ENABLED(CONFIG_SW_CODEC_LC3)) { sw_codec_cfg.sw_codec = SW_CODEC_LC3; } else { ERR_CHK_MSG(-EINVAL, "No codec selected"); } #if (CONFIG_STREAM_BIDIRECTIONAL) sw_codec_cfg.encoder.enabled = true; sw_codec_cfg.encoder.channel_mode = SW_CODEC_STEREO; if (IS_ENABLED(CONFIG_SW_CODEC_LC3)) { sw_codec_cfg.encoder.bitrate = CONFIG_LC3_BITRATE; } else { ERR_CHK_MSG(-EINVAL, "No codec selected"); } #endif /* (CONFIG_STREAM_BIDIRECTIONAL) */ sw_codec_cfg.decoder.channel_mode = SW_CODEC_STEREO; sw_codec_cfg.decoder.enabled = true; }
When playing audio,the noise is very serious.
Is there anything else that needs to be modified?
The nRF Connect SDK version I used is v2.2.0-rc1.