Lines Matching refs:halConfig

144         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()
159 config->ext.fm.rds = static_cast<Rds>(halConfig->fm.rds); in convertBandConfigFromHal()
160 config->ext.fm.ta = halConfig->fm.ta; in convertBandConfigFromHal()
161 config->ext.fm.af = halConfig->fm.af; in convertBandConfigFromHal()
162 config->ext.fm.ea = halConfig->fm.ea; in convertBandConfigFromHal()
164 config->ext.am.stereo = halConfig->am.stereo; in convertBandConfigFromHal()
195 radio_hal_band_config_t *halConfig, in convertBandConfigToHal() argument
199 halConfig->type = static_cast<radio_band_t>(config->type); in convertBandConfigToHal()
200 halConfig->antenna_connected = config->antennaConnected; in convertBandConfigToHal()
201 halConfig->lower_limit = config->lowerLimit; in convertBandConfigToHal()
202 halConfig->upper_limit = config->upperLimit; in convertBandConfigToHal()
203 halConfig->num_spacings = config->spacings.size(); in convertBandConfigToHal()
204 if (halConfig->num_spacings > RADIO_NUM_SPACINGS_MAX) { in convertBandConfigToHal()
205 halConfig->num_spacings = RADIO_NUM_SPACINGS_MAX; in convertBandConfigToHal()
207 memcpy(halConfig->spacings, config->spacings.data(), in convertBandConfigToHal()
208 sizeof(uint32_t) * halConfig->num_spacings); in convertBandConfigToHal()
211 halConfig->fm.deemphasis = static_cast<radio_deemphasis_t>(config->ext.fm.deemphasis); in convertBandConfigToHal()
212 halConfig->fm.stereo = config->ext.fm.stereo; in convertBandConfigToHal()
213 halConfig->fm.rds = static_cast<radio_rds_t>(config->ext.fm.rds); in convertBandConfigToHal()
214 halConfig->fm.ta = config->ext.fm.ta; in convertBandConfigToHal()
215 halConfig->fm.af = config->ext.fm.af; in convertBandConfigToHal()
216 halConfig->fm.ea = config->ext.fm.ea; in convertBandConfigToHal()
218 halConfig->am.stereo = config->ext.am.stereo; in convertBandConfigToHal()