Loading system/audio_hal_interface/aidl/le_audio_software_aidl.cc +1 −0 Original line number Diff line number Diff line Loading @@ -359,6 +359,7 @@ std::unordered_map<int32_t, uint8_t> frame_duration_map{ std::unordered_map<int32_t, uint16_t> octets_per_frame_map{ {30, ::le_audio::codec_spec_conf::kLeAudioCodecLC3FrameLen30}, {40, ::le_audio::codec_spec_conf::kLeAudioCodecLC3FrameLen40}, {60, ::le_audio::codec_spec_conf::kLeAudioCodecLC3FrameLen60}, {120, ::le_audio::codec_spec_conf::kLeAudioCodecLC3FrameLen120}}; std::unordered_map<AudioLocation, uint32_t> audio_location_map{ Loading system/bta/le_audio/audio_set_configurations.json +313 −0 Original line number Diff line number Diff line Loading @@ -372,6 +372,46 @@ "codec_config_name": "SingleDev_OneChanMonoSnk_OneChanMonoSrc_16_2", "qos_config_name": ["QoS_Config_16_2_2"] }, { "name": "DualDev_OneChanStereoSnk_24_2_Server_Preferred", "codec_config_name": "DualDev_OneChanStereoSnk_24_2", "qos_config_name": ["QoS_Config_Server_Preferred"] }, { "name": "DualDev_OneChanStereoSnk_24_2_2", "codec_config_name": "DualDev_OneChanStereoSnk_24_2", "qos_config_name": ["QoS_Config_24_2_2"] }, { "name": "SingleDev_OneChanStereoSnk_24_2_Server_Preferred", "codec_config_name": "SingleDev_OneChanStereoSnk_24_2", "qos_config_name": ["QoS_Config_Server_Preferred"] }, { "name": "SingleDev_OneChanStereoSnk_24_2_2", "codec_config_name": "SingleDev_OneChanStereoSnk_24_2", "qos_config_name": ["QoS_Config_24_2_2"] }, { "name": "SingleDev_TwoChanStereoSnk_24_2_Server_Preferred", "codec_config_name": "SingleDev_TwoChanStereoSnk_24_2", "qos_config_name": ["QoS_Config_Server_Preferred"] }, { "name": "SingleDev_TwoChanStereoSnk_24_2_2", "codec_config_name": "SingleDev_TwoChanStereoSnk_24_2", "qos_config_name": ["QoS_Config_24_2_2"] }, { "name": "SingleDev_OneChanMonoSnk_24_2_Server_Preferred", "codec_config_name": "SingleDev_OneChanMonoSnk_24_2", "qos_config_name": ["QoS_Config_Server_Preferred"] }, { "name": "SingleDev_OneChanMonoSnk_24_2_2", "codec_config_name": "SingleDev_OneChanMonoSnk_24_2", "qos_config_name": ["QoS_Config_24_2_2"] }, { "name": "DualDev_OneChanStereoSnk_48_4_Server_Preferred", "codec_config_name": "DualDev_OneChanStereoSnk_48_4", Loading Loading @@ -3687,6 +3727,274 @@ ] } ] }, { "name": "DualDev_OneChanStereoSnk_24_2", "subconfigurations": [ { "device_cnt": 2, "ase_cnt": 2, "direction": "SINK", "configuration_strategy": "MONO_ONE_CIS_PER_DEVICE", "codec_id": { "coding_format": 6, "vendor_company_id": 0, "vendor_codec_id": 0 }, "codec_configuration": [ { "name": "sampling_frequency", "type": 1, "compound_value": { "value": [ 5 ] } }, { "name": "frame_duration", "type": 2, "compound_value": { "value": [ 1 ] } }, { "name": "audio_channel_allocation", "type": 3, "compound_value": { "value": [ 1, 0, 0, 0 ] } }, { "name": "octets_per_codec_frame", "type": 4, "compound_value": { "value": [ 60, 0 ] } }, { "name": "codec_frame_blocks_per_sdu", "type": 5, "compound_value": { "value": [ 1 ] } } ] } ] }, { "name": "SingleDev_OneChanStereoSnk_24_2", "subconfigurations": [ { "device_cnt": 1, "ase_cnt": 2, "direction": "SINK", "configuration_strategy": "STEREO_TWO_CISES_PER_DEVICE", "codec_id": { "coding_format": 6, "vendor_company_id": 0, "vendor_codec_id": 0 }, "codec_configuration": [ { "name": "sampling_frequency", "type": 1, "compound_value": { "value": [ 5 ] } }, { "name": "frame_duration", "type": 2, "compound_value": { "value": [ 1 ] } }, { "name": "audio_channel_allocation", "type": 3, "compound_value": { "value": [ 1, 0, 0, 0 ] } }, { "name": "octets_per_codec_frame", "type": 4, "compound_value": { "value": [ 60, 0 ] } }, { "name": "codec_frame_blocks_per_sdu", "type": 5, "compound_value": { "value": [ 1 ] } } ] } ] }, { "name": "SingleDev_TwoChanStereoSnk_24_2", "subconfigurations": [ { "device_cnt": 1, "ase_cnt": 1, "direction": "SINK", "configuration_strategy": "STEREO_ONE_CIS_PER_DEVICE", "codec_id": { "coding_format": 6, "vendor_company_id": 0, "vendor_codec_id": 0 }, "codec_configuration": [ { "name": "sampling_frequency", "type": 1, "compound_value": { "value": [ 5 ] } }, { "name": "frame_duration", "type": 2, "compound_value": { "value": [ 1 ] } }, { "name": "audio_channel_allocation", "type": 3, "compound_value": { "value": [ 3, 0, 0, 0 ] } }, { "name": "octets_per_codec_frame", "type": 4, "compound_value": { "value": [ 60, 0 ] } }, { "name": "codec_frame_blocks_per_sdu", "type": 5, "compound_value": { "value": [ 1 ] } } ] } ] }, { "name": "SingleDev_OneChanMonoSnk_24_2", "subconfigurations": [ { "device_cnt": 1, "ase_cnt": 1, "direction": "SINK", "configuration_strategy": "MONO_ONE_CIS_PER_DEVICE", "codec_id": { "coding_format": 6, "vendor_company_id": 0, "vendor_codec_id": 0 }, "codec_configuration": [ { "name": "sampling_frequency", "type": 1, "compound_value": { "value": [ 5 ] } }, { "name": "frame_duration", "type": 2, "compound_value": { "value": [ 1 ] } }, { "name": "audio_channel_allocation", "type": 3, "compound_value": { "value": [ 1, 0, 0, 0 ] } }, { "name": "octets_per_codec_frame", "type": 4, "compound_value": { "value": [ 60, 0 ] } }, { "name": "codec_frame_blocks_per_sdu", "type": 5, "compound_value": { "value": [ 1 ] } } ] } ] } ], "qos_configurations": [ Loading @@ -3710,6 +4018,11 @@ "retransmission_number": 13, "max_transport_latency": 95 }, { "name": "QoS_Config_24_2_2", "retransmission_number": 13, "max_transport_latency": 95 }, { "name": "QoS_Config_48_4_1", "retransmission_number": 5, Loading system/bta/le_audio/audio_set_scenarios.json +8 −0 Original line number Diff line number Diff line Loading @@ -70,24 +70,32 @@ "configurations": [ "DualDev_OneChanStereoSnk_48_4_Server_Preferred", "DualDev_OneChanStereoSnk_48_4_2", "DualDev_OneChanStereoSnk_24_2_Server_Preferred", "DualDev_OneChanStereoSnk_24_2_2", "DualDev_OneChanStereoSnk_16_2_Server_Preferred", "DualDev_OneChanStereoSnk_16_2_2", "DualDev_OneChanStereoSnk_16_1_Server_Preferred", "DualDev_OneChanStereoSnk_16_1_2", "SingleDev_OneChanStereoSnk_48_4_Server_Preferred", "SingleDev_OneChanStereoSnk_48_4_2", "SingleDev_OneChanStereoSnk_24_2_Server_Preferred", "SingleDev_OneChanStereoSnk_24_2_2", "SingleDev_OneChanStereoSnk_16_2_Server_Preferred", "SingleDev_OneChanStereoSnk_16_2_2", "SingleDev_OneChanStereoSnk_16_1_Server_Preferred", "SingleDev_OneChanStereoSnk_16_1_2", "SingleDev_TwoChanStereoSnk_48_4_Server_Preferred", "SingleDev_TwoChanStereoSnk_48_4_2", "SingleDev_TwoChanStereoSnk_24_2_Server_Preferred", "SingleDev_TwoChanStereoSnk_24_2_2", "SingleDev_TwoChanStereoSnk_16_2_Server_Preferred", "SingleDev_TwoChanStereoSnk_16_2_2", "SingleDev_TwoChanStereoSnk_16_1_Server_Preferred", "SingleDev_TwoChanStereoSnk_16_1_2", "SingleDev_OneChanMonoSnk_48_4_Server_Preferred", "SingleDev_OneChanMonoSnk_48_4_2", "SingleDev_OneChanMonoSnk_24_2_Server_Preferred", "SingleDev_OneChanMonoSnk_24_2_2", "SingleDev_OneChanMonoSnk_16_2_Server_Preferred", "SingleDev_OneChanMonoSnk_16_2_2", "SingleDev_OneChanMonoSnk_16_1_Server_Preferred", Loading system/bta/le_audio/devices_test.cc +1 −1 Original line number Diff line number Diff line Loading @@ -208,7 +208,7 @@ bool IsLc3SettingSupported(LeAudioContextType context_type, Lc3SettingId id) { case LeAudioContextType::MEDIA: if (id == Lc3SettingId::LC3_16_1 || id == Lc3SettingId::LC3_16_2 || id == Lc3SettingId::LC3_48_4 || id == Lc3SettingId::LC3_48_2 || id == Lc3SettingId::LC3_VND_1) id == Lc3SettingId::LC3_VND_1 || id == Lc3SettingId::LC3_24_2) return true; break; Loading system/bta/le_audio/le_audio_types.h +1 −0 Original line number Diff line number Diff line Loading @@ -172,6 +172,7 @@ constexpr uint32_t kLeAudioLocationStereo = /* Octets Per Frame */ constexpr uint16_t kLeAudioCodecLC3FrameLen30 = 30; constexpr uint16_t kLeAudioCodecLC3FrameLen40 = 40; constexpr uint16_t kLeAudioCodecLC3FrameLen60 = 60; constexpr uint16_t kLeAudioCodecLC3FrameLen120 = 120; } // namespace codec_spec_conf Loading Loading
system/audio_hal_interface/aidl/le_audio_software_aidl.cc +1 −0 Original line number Diff line number Diff line Loading @@ -359,6 +359,7 @@ std::unordered_map<int32_t, uint8_t> frame_duration_map{ std::unordered_map<int32_t, uint16_t> octets_per_frame_map{ {30, ::le_audio::codec_spec_conf::kLeAudioCodecLC3FrameLen30}, {40, ::le_audio::codec_spec_conf::kLeAudioCodecLC3FrameLen40}, {60, ::le_audio::codec_spec_conf::kLeAudioCodecLC3FrameLen60}, {120, ::le_audio::codec_spec_conf::kLeAudioCodecLC3FrameLen120}}; std::unordered_map<AudioLocation, uint32_t> audio_location_map{ Loading
system/bta/le_audio/audio_set_configurations.json +313 −0 Original line number Diff line number Diff line Loading @@ -372,6 +372,46 @@ "codec_config_name": "SingleDev_OneChanMonoSnk_OneChanMonoSrc_16_2", "qos_config_name": ["QoS_Config_16_2_2"] }, { "name": "DualDev_OneChanStereoSnk_24_2_Server_Preferred", "codec_config_name": "DualDev_OneChanStereoSnk_24_2", "qos_config_name": ["QoS_Config_Server_Preferred"] }, { "name": "DualDev_OneChanStereoSnk_24_2_2", "codec_config_name": "DualDev_OneChanStereoSnk_24_2", "qos_config_name": ["QoS_Config_24_2_2"] }, { "name": "SingleDev_OneChanStereoSnk_24_2_Server_Preferred", "codec_config_name": "SingleDev_OneChanStereoSnk_24_2", "qos_config_name": ["QoS_Config_Server_Preferred"] }, { "name": "SingleDev_OneChanStereoSnk_24_2_2", "codec_config_name": "SingleDev_OneChanStereoSnk_24_2", "qos_config_name": ["QoS_Config_24_2_2"] }, { "name": "SingleDev_TwoChanStereoSnk_24_2_Server_Preferred", "codec_config_name": "SingleDev_TwoChanStereoSnk_24_2", "qos_config_name": ["QoS_Config_Server_Preferred"] }, { "name": "SingleDev_TwoChanStereoSnk_24_2_2", "codec_config_name": "SingleDev_TwoChanStereoSnk_24_2", "qos_config_name": ["QoS_Config_24_2_2"] }, { "name": "SingleDev_OneChanMonoSnk_24_2_Server_Preferred", "codec_config_name": "SingleDev_OneChanMonoSnk_24_2", "qos_config_name": ["QoS_Config_Server_Preferred"] }, { "name": "SingleDev_OneChanMonoSnk_24_2_2", "codec_config_name": "SingleDev_OneChanMonoSnk_24_2", "qos_config_name": ["QoS_Config_24_2_2"] }, { "name": "DualDev_OneChanStereoSnk_48_4_Server_Preferred", "codec_config_name": "DualDev_OneChanStereoSnk_48_4", Loading Loading @@ -3687,6 +3727,274 @@ ] } ] }, { "name": "DualDev_OneChanStereoSnk_24_2", "subconfigurations": [ { "device_cnt": 2, "ase_cnt": 2, "direction": "SINK", "configuration_strategy": "MONO_ONE_CIS_PER_DEVICE", "codec_id": { "coding_format": 6, "vendor_company_id": 0, "vendor_codec_id": 0 }, "codec_configuration": [ { "name": "sampling_frequency", "type": 1, "compound_value": { "value": [ 5 ] } }, { "name": "frame_duration", "type": 2, "compound_value": { "value": [ 1 ] } }, { "name": "audio_channel_allocation", "type": 3, "compound_value": { "value": [ 1, 0, 0, 0 ] } }, { "name": "octets_per_codec_frame", "type": 4, "compound_value": { "value": [ 60, 0 ] } }, { "name": "codec_frame_blocks_per_sdu", "type": 5, "compound_value": { "value": [ 1 ] } } ] } ] }, { "name": "SingleDev_OneChanStereoSnk_24_2", "subconfigurations": [ { "device_cnt": 1, "ase_cnt": 2, "direction": "SINK", "configuration_strategy": "STEREO_TWO_CISES_PER_DEVICE", "codec_id": { "coding_format": 6, "vendor_company_id": 0, "vendor_codec_id": 0 }, "codec_configuration": [ { "name": "sampling_frequency", "type": 1, "compound_value": { "value": [ 5 ] } }, { "name": "frame_duration", "type": 2, "compound_value": { "value": [ 1 ] } }, { "name": "audio_channel_allocation", "type": 3, "compound_value": { "value": [ 1, 0, 0, 0 ] } }, { "name": "octets_per_codec_frame", "type": 4, "compound_value": { "value": [ 60, 0 ] } }, { "name": "codec_frame_blocks_per_sdu", "type": 5, "compound_value": { "value": [ 1 ] } } ] } ] }, { "name": "SingleDev_TwoChanStereoSnk_24_2", "subconfigurations": [ { "device_cnt": 1, "ase_cnt": 1, "direction": "SINK", "configuration_strategy": "STEREO_ONE_CIS_PER_DEVICE", "codec_id": { "coding_format": 6, "vendor_company_id": 0, "vendor_codec_id": 0 }, "codec_configuration": [ { "name": "sampling_frequency", "type": 1, "compound_value": { "value": [ 5 ] } }, { "name": "frame_duration", "type": 2, "compound_value": { "value": [ 1 ] } }, { "name": "audio_channel_allocation", "type": 3, "compound_value": { "value": [ 3, 0, 0, 0 ] } }, { "name": "octets_per_codec_frame", "type": 4, "compound_value": { "value": [ 60, 0 ] } }, { "name": "codec_frame_blocks_per_sdu", "type": 5, "compound_value": { "value": [ 1 ] } } ] } ] }, { "name": "SingleDev_OneChanMonoSnk_24_2", "subconfigurations": [ { "device_cnt": 1, "ase_cnt": 1, "direction": "SINK", "configuration_strategy": "MONO_ONE_CIS_PER_DEVICE", "codec_id": { "coding_format": 6, "vendor_company_id": 0, "vendor_codec_id": 0 }, "codec_configuration": [ { "name": "sampling_frequency", "type": 1, "compound_value": { "value": [ 5 ] } }, { "name": "frame_duration", "type": 2, "compound_value": { "value": [ 1 ] } }, { "name": "audio_channel_allocation", "type": 3, "compound_value": { "value": [ 1, 0, 0, 0 ] } }, { "name": "octets_per_codec_frame", "type": 4, "compound_value": { "value": [ 60, 0 ] } }, { "name": "codec_frame_blocks_per_sdu", "type": 5, "compound_value": { "value": [ 1 ] } } ] } ] } ], "qos_configurations": [ Loading @@ -3710,6 +4018,11 @@ "retransmission_number": 13, "max_transport_latency": 95 }, { "name": "QoS_Config_24_2_2", "retransmission_number": 13, "max_transport_latency": 95 }, { "name": "QoS_Config_48_4_1", "retransmission_number": 5, Loading
system/bta/le_audio/audio_set_scenarios.json +8 −0 Original line number Diff line number Diff line Loading @@ -70,24 +70,32 @@ "configurations": [ "DualDev_OneChanStereoSnk_48_4_Server_Preferred", "DualDev_OneChanStereoSnk_48_4_2", "DualDev_OneChanStereoSnk_24_2_Server_Preferred", "DualDev_OneChanStereoSnk_24_2_2", "DualDev_OneChanStereoSnk_16_2_Server_Preferred", "DualDev_OneChanStereoSnk_16_2_2", "DualDev_OneChanStereoSnk_16_1_Server_Preferred", "DualDev_OneChanStereoSnk_16_1_2", "SingleDev_OneChanStereoSnk_48_4_Server_Preferred", "SingleDev_OneChanStereoSnk_48_4_2", "SingleDev_OneChanStereoSnk_24_2_Server_Preferred", "SingleDev_OneChanStereoSnk_24_2_2", "SingleDev_OneChanStereoSnk_16_2_Server_Preferred", "SingleDev_OneChanStereoSnk_16_2_2", "SingleDev_OneChanStereoSnk_16_1_Server_Preferred", "SingleDev_OneChanStereoSnk_16_1_2", "SingleDev_TwoChanStereoSnk_48_4_Server_Preferred", "SingleDev_TwoChanStereoSnk_48_4_2", "SingleDev_TwoChanStereoSnk_24_2_Server_Preferred", "SingleDev_TwoChanStereoSnk_24_2_2", "SingleDev_TwoChanStereoSnk_16_2_Server_Preferred", "SingleDev_TwoChanStereoSnk_16_2_2", "SingleDev_TwoChanStereoSnk_16_1_Server_Preferred", "SingleDev_TwoChanStereoSnk_16_1_2", "SingleDev_OneChanMonoSnk_48_4_Server_Preferred", "SingleDev_OneChanMonoSnk_48_4_2", "SingleDev_OneChanMonoSnk_24_2_Server_Preferred", "SingleDev_OneChanMonoSnk_24_2_2", "SingleDev_OneChanMonoSnk_16_2_Server_Preferred", "SingleDev_OneChanMonoSnk_16_2_2", "SingleDev_OneChanMonoSnk_16_1_Server_Preferred", Loading
system/bta/le_audio/devices_test.cc +1 −1 Original line number Diff line number Diff line Loading @@ -208,7 +208,7 @@ bool IsLc3SettingSupported(LeAudioContextType context_type, Lc3SettingId id) { case LeAudioContextType::MEDIA: if (id == Lc3SettingId::LC3_16_1 || id == Lc3SettingId::LC3_16_2 || id == Lc3SettingId::LC3_48_4 || id == Lc3SettingId::LC3_48_2 || id == Lc3SettingId::LC3_VND_1) id == Lc3SettingId::LC3_VND_1 || id == Lc3SettingId::LC3_24_2) return true; break; Loading
system/bta/le_audio/le_audio_types.h +1 −0 Original line number Diff line number Diff line Loading @@ -172,6 +172,7 @@ constexpr uint32_t kLeAudioLocationStereo = /* Octets Per Frame */ constexpr uint16_t kLeAudioCodecLC3FrameLen30 = 30; constexpr uint16_t kLeAudioCodecLC3FrameLen40 = 40; constexpr uint16_t kLeAudioCodecLC3FrameLen60 = 60; constexpr uint16_t kLeAudioCodecLC3FrameLen120 = 120; } // namespace codec_spec_conf Loading