mirror of
https://github.com/Evolution-X/hardware_interfaces
synced 2026-02-01 15:58:43 +00:00
Merge "Add isHighPriority scan message type into Tuner HAL 1.1"
This commit is contained in:
@@ -122,9 +122,12 @@ Return<Result> Frontend::scan(const FrontendSettings& settings, FrontendScanType
|
||||
V1_1::IFrontendCallback::castFrom(mCallback);
|
||||
if (frontendCallback_v1_1 != NULL) {
|
||||
V1_1::FrontendScanMessageExt1_1 msg;
|
||||
msg.dvbc(FrontendDvbcModulation::MOD_16QAM);
|
||||
msg.modulation().dvbc(FrontendDvbcModulation::MOD_16QAM);
|
||||
frontendCallback_v1_1->onScanMessageExt1_1(V1_1::FrontendScanMessageTypeExt1_1::MODULATION,
|
||||
msg);
|
||||
msg.isHighPriority(true);
|
||||
frontendCallback_v1_1->onScanMessageExt1_1(
|
||||
V1_1::FrontendScanMessageTypeExt1_1::HIGH_PRIORITY, msg);
|
||||
} else {
|
||||
ALOGD("[Filter] Couldn't cast to V1_1 IFrontendCallback");
|
||||
}
|
||||
|
||||
@@ -555,6 +555,11 @@ safe_union FrontendStatusExt1_1 {
|
||||
|
||||
enum FrontendScanMessageTypeExt1_1 : uint32_t {
|
||||
MODULATION = @1.0::FrontendScanMessageType:ATSC3_PLP_INFO + 1,
|
||||
HIGH_PRIORITY,
|
||||
};
|
||||
|
||||
typedef FrontendModulation FrontendScanMessageExt1_1;
|
||||
safe_union FrontendScanMessageExt1_1 {
|
||||
FrontendModulation modulation;
|
||||
|
||||
bool isHighPriority;
|
||||
};
|
||||
|
||||
@@ -51,9 +51,12 @@ Return<void> FrontendCallback::onScanMessageExt1_1(FrontendScanMessageTypeExt1_1
|
||||
const FrontendScanMessageExt1_1& message) {
|
||||
android::Mutex::Autolock autoLock(mMsgLock);
|
||||
ALOGD("[vts] frontend ext1_1 scan message. Type: %d", type);
|
||||
switch (type) {
|
||||
case FrontendScanMessageTypeExt1_1::MODULATION:
|
||||
readFrontendScanMessageExt1_1Modulation(message);
|
||||
switch (message.getDiscriminator()) {
|
||||
case FrontendScanMessageExt1_1::hidl_discriminator::modulation:
|
||||
readFrontendScanMessageExt1_1Modulation(message.modulation());
|
||||
break;
|
||||
case FrontendScanMessageExt1_1::hidl_discriminator::isHighPriority:
|
||||
ALOGD("[vts] frontend ext1_1 scan message high priority: %d", message.isHighPriority());
|
||||
break;
|
||||
default:
|
||||
break;
|
||||
|
||||
Reference in New Issue
Block a user