Skip to content

Commit

Permalink
applications: nrf5340_audio: Channel not set for decoder/encoder
Browse files Browse the repository at this point in the history
	In the sw_config struct there is an enum in the
	decoder and encoder struct. These are not set
	during audio_headset_configure, thus defaulting
	to 0 being left. This should be done explicitly
	for both headsets.

Signed-off-by: Graham Wacey <[email protected]>
  • Loading branch information
gWacey authored and koffes committed Dec 10, 2024
1 parent 9b0cd12 commit 5f57e88
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions applications/nrf5340_audio/src/audio/audio_system.c
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,7 @@ static void audio_gateway_configure(void)
}

#if (CONFIG_STREAM_BIDIRECTIONAL)
sw_codec_cfg.decoder.audio_ch = AUDIO_CHANNEL_DEFAULT;
sw_codec_cfg.decoder.num_ch = 1;
sw_codec_cfg.decoder.channel_mode = SW_CODEC_MONO;
#endif /* (CONFIG_STREAM_BIDIRECTIONAL) */
Expand All @@ -91,10 +92,13 @@ static void audio_headset_configure(void)
}

#if (CONFIG_STREAM_BIDIRECTIONAL)
sw_codec_cfg.decoder.audio_ch = AUDIO_CHANNEL_DEFAULT;
sw_codec_cfg.encoder.num_ch = 1;
sw_codec_cfg.encoder.channel_mode = SW_CODEC_MONO;
#endif /* (CONFIG_STREAM_BIDIRECTIONAL) */

channel_assignment_get(&sw_codec_cfg.decoder.audio_ch);

sw_codec_cfg.decoder.num_ch = 1;
sw_codec_cfg.decoder.channel_mode = SW_CODEC_MONO;

Expand Down

0 comments on commit 5f57e88

Please sign in to comment.