diff --git a/src/le-audio/le_audio_util.c b/src/le-audio/le_audio_util.c index 38302e574..7f1e9ffed 100644 --- a/src/le-audio/le_audio_util.c +++ b/src/le-audio/le_audio_util.c @@ -62,39 +62,39 @@ static const le_audio_codec_configuration_t codec_specific_config_settings[] = { }; static const le_audio_qos_configuration_t qos_config_settings[] = { - ("8_1_1", 7500, 0, 26, 2, 8), - ("8_2_1", 10000, 0, 30, 2, 10), - ("16_1_1", 7500, 0, 30, 2, 8), - ("16_2_1", 10000, 0, 40, 2, 10), - ("24_1_1", 7500, 0, 45, 2, 8), - ("24_2_1", 10000, 0, 60, 2, 10), - ("32_1_1", 7500, 0, 60, 2, 8), - ("32_2_1", 10000, 0, 80, 2, 10), - ("441_1_1", 8163, 1, 97, 5, 24), - ("441_2_1", 10884, 1, 130, 5, 31), - ("48_1_1", 7500, 0, 75, 5, 15), - ("48_2_1", 10000, 0, 100, 5, 20), - ("48_3_1", 7500, 0, 90, 5, 15), - ("48_4_1", 10000, 0, 120, 5, 20), - ("48_5_1", 7500, 0, 117, 5, 15), - ("48_6_1", 10000, 0, 115, 5, 20), + {"8_1_1", 7500, 0, 26, 2, 8}, + {"8_2_1", 10000, 0, 30, 2, 10}, + {"16_1_1", 7500, 0, 30, 2, 8}, + {"16_2_1", 10000, 0, 40, 2, 10}, + {"24_1_1", 7500, 0, 45, 2, 8}, + {"24_2_1", 10000, 0, 60, 2, 10}, + {"32_1_1", 7500, 0, 60, 2, 8}, + {"32_2_1", 10000, 0, 80, 2, 10}, + {"441_1_1", 8163, 1, 97, 5, 24}, + {"441_2_1", 10884, 1, 130, 5, 31}, + {"48_1_1", 7500, 0, 75, 5, 15}, + {"48_2_1", 10000, 0, 100, 5, 20}, + {"48_3_1", 7500, 0, 90, 5, 15}, + {"48_4_1", 10000, 0, 120, 5, 20}, + {"48_5_1", 7500, 0, 117, 5, 15}, + {"48_6_1", 10000, 0, 115, 5, 20}, - ("8_1_2", 7500, 0, 26, 13, 75), - ("8_2_2", 10000, 0, 30, 13, 95), - ("16_1_2", 7500, 0, 30, 13, 75), - ("16_2_2", 10000, 0, 40, 13, 95), - ("24_1_2", 7500, 0, 45, 13, 75), - ("24_2_2", 10000, 0, 60, 13, 95), - ("32_1_2", 7500, 0, 60, 13, 75), - ("32_2_2", 10000, 0, 80, 13, 95), - ("441_1_2", 8163, 1, 97, 13, 80), - ("441_2_2", 10884, 1, 130, 13, 85), - ("48_1_2", 7500, 0, 75, 13, 75), - ("48_2_2", 10000, 0, 100, 13, 95), - ("48_3_2", 7500, 0, 90, 13, 75), - ("48_4_2", 10000, 0, 120, 13, 100), - ("48_5_2", 7500, 0, 117, 13, 75), - ("48_6_2", 10000, 0, 115, 13, 100) + {"8_1_2", 7500, 0, 26, 13, 75}, + {"8_2_2", 10000, 0, 30, 13, 95}, + {"16_1_2", 7500, 0, 30, 13, 75}, + {"16_2_2", 10000, 0, 40, 13, 95}, + {"24_1_2", 7500, 0, 45, 13, 75}, + {"24_2_2", 10000, 0, 60, 13, 95}, + {"32_1_2", 7500, 0, 60, 13, 75}, + {"32_2_2", 10000, 0, 80, 13, 95}, + {"441_1_2", 8163, 1, 97, 13, 80}, + {"441_2_2", 10884, 1, 130, 13, 85}, + {"48_1_2", 7500, 0, 75, 13, 75}, + {"48_2_2", 10000, 0, 100, 13, 95}, + {"48_3_2", 7500, 0, 90, 13, 75}, + {"48_4_2", 10000, 0, 120, 13, 100}, + {"48_5_2", 7500, 0, 117, 13, 75}, + {"48_6_2", 10000, 0, 115, 13, 100} }; static uint8_t codec_offset(le_audio_codec_sampling_frequency_index_t sampling_frequency_index, @@ -124,7 +124,7 @@ const le_audio_qos_configuration_t * le_audio_util_get_qos_setting( btstack_assert((num_channels >= 1) && (num_channels <= 2)); - return &codec_specific_config_settings[(num_channels - 1) * 16 + codec_offset(sampling_frequency_index, frame_duration_index, audio_quality)]; + return &qos_config_settings[(num_channels - 1) * 16 + codec_offset(sampling_frequency_index, frame_duration_index, audio_quality)]; }