Home
last modified time | relevance | path

Searched refs:audio_config (Results 1 – 25 of 42) sorted by relevance

12

/hardware/interfaces/bluetooth/audio/aidl/default/
DA2dpOffloadAudioProvider.cpp56 const AudioConfiguration& audio_config, in startSession() argument
58 if (audio_config.getTag() == AudioConfiguration::Tag::a2dp) { in startSession()
59 auto a2dp_config = audio_config.get<AudioConfiguration::Tag::a2dp>(); in startSession()
88 << audio_config.toString(); in startSession()
92 } else if (audio_config.getTag() == AudioConfiguration::Tag::a2dpConfig) { in startSession()
95 audio_config.get<AudioConfiguration::a2dpConfig>())) { in startSession()
97 << audio_config.toString(); in startSession()
103 << audio_config.toString(); in startSession()
109 host_if, audio_config, latency_modes, _aidl_return); in startSession()
DHfpOffloadAudioProvider.cpp41 const AudioConfiguration& audio_config, in startSession() argument
43 if (audio_config.getTag() != AudioConfiguration::hfpConfig) { in startSession()
45 << audio_config.toString(); in startSession()
49 return BluetoothAudioProvider::startSession(host_if, audio_config, in startSession()
DHearingAidAudioProvider.cpp59 const AudioConfiguration& audio_config, in startSession() argument
61 if (audio_config.getTag() != AudioConfiguration::pcmConfig) { in startSession()
63 << audio_config.toString(); in startSession()
67 const auto& pcm_config = audio_config.get<AudioConfiguration::pcmConfig>(); in startSession()
76 host_if, audio_config, latency_modes, _aidl_return); in startSession()
DA2dpSoftwareAudioProvider.cpp73 const AudioConfiguration& audio_config, in startSession() argument
75 if (audio_config.getTag() != AudioConfiguration::pcmConfig) { in startSession()
77 << audio_config.toString(); in startSession()
82 audio_config.get<AudioConfiguration::pcmConfig>(); in startSession()
91 host_if, audio_config, latency_modes, _aidl_return); in startSession()
DHfpSoftwareAudioProvider.cpp53 const AudioConfiguration& audio_config, in startSession() argument
55 if (audio_config.getTag() != AudioConfiguration::pcmConfig) { in startSession()
57 << audio_config.toString(); in startSession()
62 audio_config.get<AudioConfiguration::pcmConfig>(); in startSession()
119 return BluetoothAudioProvider::startSession(host_if, audio_config, in startSession()
DLeAudioSoftwareAudioProvider.cpp72 const AudioConfiguration& audio_config, in startSession() argument
74 if (audio_config.getTag() != AudioConfiguration::pcmConfig) { in startSession()
76 << audio_config.toString(); in startSession()
79 const auto& pcm_config = audio_config.get<AudioConfiguration::pcmConfig>(); in startSession()
128 host_if, audio_config, latency_modes, _aidl_return); in startSession()
DBluetoothAudioProvider.cpp61 const AudioConfiguration& audio_config, in startSession() argument
72 audio_config_ = std::make_unique<AudioConfiguration>(audio_config); in startSession()
135 const AudioConfiguration& audio_config) { in updateAudioConfiguration() argument
142 if (audio_config.getTag() != audio_config_->getTag()) { in updateAudioConfiguration()
148 audio_config_ = std::make_unique<AudioConfiguration>(audio_config); in updateAudioConfiguration()
152 << " | audio_config=" << audio_config.toString(); in updateAudioConfiguration()
DHfpOffloadAudioProvider.h35 const AudioConfiguration& audio_config,
DHearingAidAudioProvider.h35 const AudioConfiguration& audio_config,
DHfpSoftwareAudioProvider.h35 const AudioConfiguration& audio_config,
DA2dpSoftwareAudioProvider.h35 const AudioConfiguration& audio_config,
DLeAudioSoftwareAudioProvider.h35 const AudioConfiguration& audio_config,
/hardware/interfaces/bluetooth/audio/utils/session/
DBluetoothAudioSession_2_1.cpp126 audio_config) { in UpdateAudioConfig()
137 auto audio_config_discriminator = audio_config.getDiscriminator(); in UpdateAudioConfig()
151 audio_config_2_1_ = audio_config; in UpdateAudioConfig()
161 audio_config) { in OnSessionStarted()
164 if (audio_config.getDiscriminator() == in OnSessionStarted()
167 config.codecConfig(audio_config.codecConfig()); in OnSessionStarted()
169 auto& tmpPcm = audio_config.pcmConfig(); in OnSessionStarted()
185 } else if (!UpdateAudioConfig(audio_config)) { in OnSessionStarted()
187 << ", AudioConfiguration=" << toString(audio_config) in OnSessionStarted()
199 << ", AudioConfiguration=" << toString(audio_config); in OnSessionStarted()
DBluetoothAudioSessionReport.h32 const AudioConfiguration& audio_config) { in OnSessionStarted() argument
36 session_ptr->OnSessionStarted(host_iface, dataMQ, audio_config); in OnSessionStarted()
DBluetoothAudioSessionReport_2_1.h35 audio_config) { in OnSessionStarted()
39 session_ptr->OnSessionStarted(host_iface, dataMQ, audio_config); in OnSessionStarted()
DBluetoothAudioSession_2_1.h42 audio_config);
63 audio_config);
DBluetoothAudioSession.cpp70 const AudioConfiguration& audio_config) { in OnSessionStarted() argument
75 } else if (!UpdateAudioConfig(audio_config)) { in OnSessionStarted()
77 << ", AudioConfiguration=" << toString(audio_config) in OnSessionStarted()
89 << ", AudioConfiguration=" << toString(audio_config); in OnSessionStarted()
181 const AudioConfiguration& audio_config) { in UpdateAudioConfig() argument
187 auto audio_config_discriminator = audio_config.getDiscriminator(); in UpdateAudioConfig()
199 audio_config_ = audio_config; in UpdateAudioConfig()
DBluetoothAudioSession.h105 bool UpdateAudioConfig(const AudioConfiguration& audio_config);
121 const AudioConfiguration& audio_config);
/hardware/interfaces/bluetooth/audio/utils/aidl_session/
DBluetoothAudioSessionReport.h36 const DataMQDesc* data_mq, const AudioConfiguration& audio_config, in OnSessionStarted() argument
41 session_ptr->OnSessionStarted(host_iface, data_mq, audio_config, in OnSessionStarted()
76 const AudioConfiguration& audio_config) { in ReportAudioConfigChanged() argument
80 session_ptr->ReportAudioConfigChanged(audio_config); in ReportAudioConfigChanged()
DBluetoothAudioSession.cpp59 const DataMQDesc* mq_desc, const AudioConfiguration& audio_config, in OnSessionStarted() argument
65 } else if (!UpdateAudioConfig(audio_config)) { in OnSessionStarted()
67 << ", AudioConfiguration=" << audio_config.toString() in OnSessionStarted()
78 << ", AudioConfiguration=" << audio_config.toString(); in OnSessionStarted()
123 const AudioConfiguration& audio_config) { in ReportAudioConfigChanged() argument
130 if (audio_config.getTag() != AudioConfiguration::leAudioConfig) { in ReportAudioConfigChanged()
137 if (audio_config.getTag() != AudioConfiguration::leAudioBroadcastConfig) { in ReportAudioConfigChanged()
154 if (audio_config.getTag() != AudioConfiguration::leAudioConfig) { in ReportAudioConfigChanged()
161 audio_config_ = std::make_unique<AudioConfiguration>(audio_config); in ReportAudioConfigChanged()
310 const AudioConfiguration& audio_config) { in UpdateAudioConfig() argument
[all …]
DHidlToAidlMiddleware.cpp374 const AudioConfiguration& audio_config) { in to_hidl_audio_config_2_0() argument
376 if (audio_config.getTag() == AudioConfiguration::pcmConfig) { in to_hidl_audio_config_2_0()
378 audio_config.get<AudioConfiguration::pcmConfig>())); in to_hidl_audio_config_2_0()
379 } else if (audio_config.getTag() == AudioConfiguration::a2dpConfig) { in to_hidl_audio_config_2_0()
381 audio_config.get<AudioConfiguration::a2dpConfig>())); in to_hidl_audio_config_2_0()
459 const AudioConfiguration& audio_config) { in to_hidl_audio_config_2_1() argument
461 switch (audio_config.getTag()) { in to_hidl_audio_config_2_1()
464 audio_config.get<AudioConfiguration::pcmConfig>())); in to_hidl_audio_config_2_1()
468 audio_config.get<AudioConfiguration::a2dpConfig>())); in to_hidl_audio_config_2_1()
474 audio_config.get<AudioConfiguration::leAudioConfig>())); in to_hidl_audio_config_2_1()
[all …]
DBluetoothAudioSession.h127 const AudioConfiguration& audio_config,
170 void ReportAudioConfigChanged(const AudioConfiguration& audio_config);
223 bool UpdateAudioConfig(const AudioConfiguration& audio_config);
/hardware/interfaces/bluetooth/audio/2.0/vts/functional/
DVtsHalBluetoothAudioV2_0TargetTest.cpp347 AudioConfiguration audio_config = {}; in TEST_P() local
356 audio_config.pcmConfig(pcm_parameters); in TEST_P()
358 audio_provider_->startSession(audio_port_, audio_config, hidl_cb); in TEST_P()
617 AudioConfiguration audio_config = {}; in TEST_P() local
627 audio_config.codecConfig(codec_config); in TEST_P()
629 audio_provider_->startSession(audio_port_, audio_config, hidl_cb); in TEST_P()
652 AudioConfiguration audio_config = {}; in TEST_P() local
662 audio_config.codecConfig(codec_config); in TEST_P()
664 audio_provider_->startSession(audio_port_, audio_config, hidl_cb); in TEST_P()
687 AudioConfiguration audio_config = {}; in TEST_P() local
[all …]
/hardware/interfaces/bluetooth/audio/2.1/vts/functional/
DVtsHalBluetoothAudioV2_1TargetTest.cpp434 AudioConfiguration audio_config = {}; in TEST_P() local
443 audio_config.pcmConfig(pcm_parameters); in TEST_P()
445 audio_provider_->startSession(audio_port_, audio_config, hidl_cb); in TEST_P()
712 AudioConfiguration audio_config = {}; in TEST_P() local
722 audio_config.codecConfig(codec_config); in TEST_P()
724 audio_provider_->startSession(audio_port_, audio_config, hidl_cb); in TEST_P()
747 AudioConfiguration audio_config = {}; in TEST_P() local
757 audio_config.codecConfig(codec_config); in TEST_P()
759 audio_provider_->startSession(audio_port_, audio_config, hidl_cb); in TEST_P()
782 AudioConfiguration audio_config = {}; in TEST_P() local
[all …]
/hardware/libhardware/modules/soundtrigger/
Dsound_trigger_hw.c276 event->common.audio_config = AUDIO_CONFIG_INITIALIZER; in sound_trigger_keyphrase_event_alloc()
277 event->common.audio_config.sample_rate = 16000; in sound_trigger_keyphrase_event_alloc()
278 event->common.audio_config.channel_mask = AUDIO_CHANNEL_IN_MONO; in sound_trigger_keyphrase_event_alloc()
279 event->common.audio_config.format = AUDIO_FORMAT_PCM_16_BIT; in sound_trigger_keyphrase_event_alloc()
296 event->common.audio_config = AUDIO_CONFIG_INITIALIZER; in sound_trigger_generic_event_alloc()
297 event->common.audio_config.sample_rate = 16000; in sound_trigger_generic_event_alloc()
298 event->common.audio_config.channel_mask = AUDIO_CHANNEL_IN_MONO; in sound_trigger_generic_event_alloc()
299 event->common.audio_config.format = AUDIO_FORMAT_PCM_16_BIT; in sound_trigger_generic_event_alloc()

12