Skip to content

Commit 5f57e88

Browse files
gWaceykoffes
authored andcommitted
applications: nrf5340_audio: Channel not set for decoder/encoder
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]>
1 parent 9b0cd12 commit 5f57e88

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

applications/nrf5340_audio/src/audio/audio_system.c

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -68,6 +68,7 @@ static void audio_gateway_configure(void)
6868
}
6969

7070
#if (CONFIG_STREAM_BIDIRECTIONAL)
71+
sw_codec_cfg.decoder.audio_ch = AUDIO_CHANNEL_DEFAULT;
7172
sw_codec_cfg.decoder.num_ch = 1;
7273
sw_codec_cfg.decoder.channel_mode = SW_CODEC_MONO;
7374
#endif /* (CONFIG_STREAM_BIDIRECTIONAL) */
@@ -91,10 +92,13 @@ static void audio_headset_configure(void)
9192
}
9293

9394
#if (CONFIG_STREAM_BIDIRECTIONAL)
95+
sw_codec_cfg.decoder.audio_ch = AUDIO_CHANNEL_DEFAULT;
9496
sw_codec_cfg.encoder.num_ch = 1;
9597
sw_codec_cfg.encoder.channel_mode = SW_CODEC_MONO;
9698
#endif /* (CONFIG_STREAM_BIDIRECTIONAL) */
9799

100+
channel_assignment_get(&sw_codec_cfg.decoder.audio_ch);
101+
98102
sw_codec_cfg.decoder.num_ch = 1;
99103
sw_codec_cfg.decoder.channel_mode = SW_CODEC_MONO;
100104

0 commit comments

Comments
 (0)