Home
last modified time | relevance | path

Searched refs:halConfig (Results 1 – 16 of 16) sorted by relevance

/hardware/interfaces/audio/common/all-versions/default/
DHidlUtils.cpp31 void HidlUtils::audioConfigFromHal(const audio_config_t& halConfig, AudioConfig* config) { in audioConfigFromHal() argument
32 config->sampleRateHz = halConfig.sample_rate; in audioConfigFromHal()
33 config->channelMask = EnumBitfield<AudioChannelMask>(halConfig.channel_mask); in audioConfigFromHal()
34 config->format = AudioFormat(halConfig.format); in audioConfigFromHal()
35 audioOffloadInfoFromHal(halConfig.offload_info, &config->offloadInfo); in audioConfigFromHal()
36 config->frameCount = halConfig.frame_count; in audioConfigFromHal()
39 void HidlUtils::audioConfigToHal(const AudioConfig& config, audio_config_t* halConfig) { in audioConfigToHal() argument
40 memset(halConfig, 0, sizeof(audio_config_t)); in audioConfigToHal()
41 halConfig->sample_rate = config.sampleRateHz; in audioConfigToHal()
42 halConfig->channel_mask = static_cast<audio_channel_mask_t>(config.channelMask); in audioConfigToHal()
[all …]
DHidlUtils.h39 static void audioConfigFromHal(const audio_config_t& halConfig, AudioConfig* config);
40 static void audioConfigToHal(const AudioConfig& config, audio_config_t* halConfig);
41 static void audioGainConfigFromHal(const struct audio_gain_config& halConfig,
44 struct audio_gain_config* halConfig);
53 static void audioPortConfigFromHal(const struct audio_port_config& halConfig,
56 struct audio_port_config* halConfig);
/hardware/interfaces/broadcastradio/1.0/default/
DUtils.cpp144 const radio_hal_band_config_t *halConfig) in convertBandConfigFromHal() argument
147 config->type = static_cast<Band>(halConfig->type); in convertBandConfigFromHal()
148 config->antennaConnected = halConfig->antenna_connected; in convertBandConfigFromHal()
149 config->lowerLimit = halConfig->lower_limit; in convertBandConfigFromHal()
150 config->upperLimit = halConfig->upper_limit; in convertBandConfigFromHal()
151 config->spacings.setToExternal(const_cast<unsigned int *>(&halConfig->spacings[0]), in convertBandConfigFromHal()
152 halConfig->num_spacings * sizeof(uint32_t)); in convertBandConfigFromHal()
154 config->spacings.resize(halConfig->num_spacings); in convertBandConfigFromHal()
157 config->ext.fm.deemphasis = static_cast<Deemphasis>(halConfig->fm.deemphasis); in convertBandConfigFromHal()
158 config->ext.fm.stereo = halConfig->fm.stereo; in convertBandConfigFromHal()
[all …]
DTuner.cpp109 radio_hal_band_config_t halConfig; in setConfiguration() local
110 Utils::convertBandConfigToHal(&halConfig, &config); in setConfiguration()
111 int rc = mHalTuner->set_configuration(mHalTuner, &halConfig); in setConfiguration()
117 radio_hal_band_config_t halConfig; in getConfiguration() local
125 rc = mHalTuner->get_configuration(mHalTuner, &halConfig); in getConfiguration()
127 Utils::convertBandConfigFromHal(&config, &halConfig); in getConfiguration()
DUtils.h33 const radio_hal_band_config_t *halConfig);
36 static void convertBandConfigToHal(radio_hal_band_config_t *halConfig,
DBroadcastRadio.cpp124 radio_hal_band_config_t halConfig; in openTuner() local
126 Utils::convertBandConfigToHal(&halConfig, &config); in openTuner()
127 int rc = mHwDevice->open_tuner(mHwDevice, &halConfig, audio, in openTuner()
DBroadcastRadio.h54 const radio_hal_band_config_t *halConfig);
57 void convertBandConfigToHal(radio_hal_band_config_t *halConfig,
/hardware/interfaces/audio/effect/all-versions/default/
DEffect.cpp182 void Effect::effectAuxChannelsConfigFromHal(const channel_config_t& halConfig, in effectAuxChannelsConfigFromHal() argument
184 config->mainChannels = AudioChannelBitfield(halConfig.main_channels); in effectAuxChannelsConfigFromHal()
185 config->auxChannels = AudioChannelBitfield(halConfig.aux_channels); in effectAuxChannelsConfigFromHal()
190 channel_config_t* halConfig) { in effectAuxChannelsConfigToHal() argument
191 halConfig->main_channels = static_cast<audio_channel_mask_t>(config.mainChannels); in effectAuxChannelsConfigToHal()
192 halConfig->aux_channels = static_cast<audio_channel_mask_t>(config.auxChannels); in effectAuxChannelsConfigToHal()
196 void Effect::effectBufferConfigFromHal(const buffer_config_t& halConfig, in effectBufferConfigFromHal() argument
200 config->samplingRateHz = halConfig.samplingRate; in effectBufferConfigFromHal()
201 config->channels = AudioChannelBitfield(halConfig.channels); in effectBufferConfigFromHal()
202 config->format = AudioFormat(halConfig.format); in effectBufferConfigFromHal()
[all …]
DEffect.h190 static void effectAuxChannelsConfigFromHal(const channel_config_t& halConfig,
193 channel_config_t* halConfig);
194 static void effectBufferConfigFromHal(const buffer_config_t& halConfig,
197 buffer_config_t* halConfig);
198 static void effectConfigFromHal(const effect_config_t& halConfig, EffectConfig* config);
199 static void effectConfigToHal(const EffectConfig& config, effect_config_t* halConfig);
/hardware/interfaces/audio/core/all-versions/default/
DDevice.cpp127 audio_config_t halConfig; in getInputBufferSize() local
128 HidlUtils::audioConfigToHal(config, &halConfig); in getInputBufferSize()
129 size_t halBufferSize = mDevice->get_input_buffer_size(mDevice, &halConfig); in getInputBufferSize()
145 audio_config_t halConfig; in openOutputStreamImpl() local
146 HidlUtils::audioConfigToHal(config, &halConfig); in openOutputStreamImpl()
152 static_cast<audio_output_flags_t>(flags), halConfig.sample_rate, halConfig.format, in openOutputStreamImpl()
153 halConfig.channel_mask, deviceAddressToHal(device).c_str()); in openOutputStreamImpl()
156 static_cast<audio_output_flags_t>(flags), &halConfig, in openOutputStreamImpl()
163 HidlUtils::audioConfigFromHal(halConfig, suggestedConfig); in openOutputStreamImpl()
170 audio_config_t halConfig; in openInputStreamImpl() local
[all …]
/hardware/interfaces/soundtrigger/2.0/default/
DSoundTriggerHalImpl.cpp178 struct sound_trigger_recognition_config* halConfig; in startRecognition() local
194 halConfig = convertRecognitionConfigToHal(&config); in startRecognition()
196 if (halConfig == NULL) { in startRecognition()
200 ret = mHwDevice->start_recognition(mHwDevice, client->getHalHandle(), halConfig, in startRecognition()
203 free(halConfig); in startRecognition()
408 struct sound_trigger_recognition_config* halConfig = in convertRecognitionConfigToHal() local
411 LOG_ALWAYS_FATAL_IF(halConfig == NULL, in convertRecognitionConfigToHal()
414 halConfig->capture_handle = (audio_io_handle_t)config->captureHandle; in convertRecognitionConfigToHal()
415 halConfig->capture_device = (audio_devices_t)config->captureDevice; in convertRecognitionConfigToHal()
416 halConfig->capture_requested = config->captureRequested; in convertRecognitionConfigToHal()
[all …]
/hardware/interfaces/soundtrigger/2.2/default/
DSoundTriggerHw.cpp200 struct sound_trigger_recognition_config* halConfig; in startRecognition() local
216 halConfig = in startRecognition()
219 if (halConfig == NULL) { in startRecognition()
223 ret = mHwDevice->start_recognition(mHwDevice, client->getHalHandle(), halConfig, in startRecognition()
226 free(halConfig); in startRecognition()
431 struct sound_trigger_recognition_config* halConfig = in convertRecognitionConfigToHal() local
434 LOG_ALWAYS_FATAL_IF(halConfig == NULL, in convertRecognitionConfigToHal()
437 halConfig->capture_handle = (audio_io_handle_t)config->captureHandle; in convertRecognitionConfigToHal()
438 halConfig->capture_device = (audio_devices_t)config->captureDevice; in convertRecognitionConfigToHal()
439 halConfig->capture_requested = config->captureRequested; in convertRecognitionConfigToHal()
[all …]
/hardware/interfaces/broadcastradio/1.0/vts/functional/
DVtsHalBroadcastradioV1_0TargetTest.cpp351 BandConfig halConfig; in checkAntenna() local
357 halConfig = config; in checkAntenna()
361 return ((halResult == Result::OK) && (halConfig.antennaConnected == true)); in checkAntenna()
469 BandConfig halConfig; in TEST_P() local
475 halConfig = config; in TEST_P()
480 EXPECT_EQ(getBand(1), halConfig); in TEST_P()
659 BandConfig halConfig; in TEST_P() local
663 halConfig = config; in TEST_P()
669 auto badChannel = halConfig.upperLimit + halConfig.spacings[0]; in TEST_P()
676 auto goodChannel = halConfig.upperLimit; in TEST_P()
/hardware/interfaces/camera/provider/2.4/vts/functional/
DVtsHalCameraProviderV2_4TargetTest.cpp2915 [streamId](Status s, device::V3_4::HalStreamConfiguration halConfig) { in TEST_F() argument
2917 ASSERT_EQ(1u, halConfig.streams.size()); in TEST_F()
2918 ASSERT_EQ(halConfig.streams[0].v3_3.v3_2.id, streamId); in TEST_F()
2922 [streamId](Status s, device::V3_4::HalStreamConfiguration halConfig) { in TEST_F() argument
2924 ASSERT_EQ(1u, halConfig.streams.size()); in TEST_F()
2925 ASSERT_EQ(halConfig.streams[0].v3_3.v3_2.id, streamId); in TEST_F()
2929 [streamId](Status s, device::V3_3::HalStreamConfiguration halConfig) { in TEST_F() argument
2931 ASSERT_EQ(1u, halConfig.streams.size()); in TEST_F()
2932 ASSERT_EQ(halConfig.streams[0].v3_2.id, streamId); in TEST_F()
2936 [streamId](Status s, HalStreamConfiguration halConfig) { in TEST_F() argument
[all …]
/hardware/interfaces/automotive/vehicle/2.0/default/common/src/
DVehicleHalManager.cpp50 auto& halConfig = mConfigIndex->getAllConfigs(); in getAllPropConfigs() local
53 const_cast<VehiclePropConfig *>(halConfig.data()), in getAllPropConfigs()
54 halConfig.size()); in getAllPropConfigs()
/hardware/interfaces/broadcastradio/1.1/vts/functional/
DVtsHalBroadcastradioV1_1TargetTest.cpp193 BandConfig halConfig; in openTuner() local
197 halConfig = config; in openTuner()
200 EXPECT_TRUE(halConfig.antennaConnected); in openTuner()