mirror of
https://github.com/Evolution-X/hardware_interfaces
synced 2026-02-01 22:04:26 +00:00
Implement getProperties_1_1 for broadcast radio 1.1 default implementation.
Bug: b/36863239 Bug: b/38167547 Test: instrumentation Change-Id: I129ff7c1a1e6a4711b6352dd6f22d16a324066f3
This commit is contained in:
@@ -115,9 +115,17 @@ exit:
|
||||
return Void();
|
||||
}
|
||||
|
||||
Return<void> BroadcastRadio::getProperties_1_1(getProperties_1_1_cb _hidl_cb __unused)
|
||||
{
|
||||
return Status::fromExceptionCode(Status::EX_UNSUPPORTED_OPERATION);
|
||||
Return<void> BroadcastRadio::getProperties_1_1(getProperties_1_1_cb _hidl_cb) {
|
||||
radio_hal_properties_t halProperties;
|
||||
V1_1::Properties properties = {};
|
||||
|
||||
LOG_ALWAYS_FATAL_IF(mHwDevice == nullptr, "HW device is not set");
|
||||
int rc = mHwDevice->get_properties(mHwDevice, &halProperties);
|
||||
LOG_ALWAYS_FATAL_IF(rc != 0, "Couldn't get device properties");
|
||||
Utils::convertPropertiesFromHal(&properties.base, &halProperties);
|
||||
|
||||
_hidl_cb(properties);
|
||||
return Void();
|
||||
}
|
||||
|
||||
Return<void> BroadcastRadio::openTuner(const BandConfig& config, bool audio,
|
||||
|
||||
Reference in New Issue
Block a user