Merge "Update FrontendInfo for CTS" into rvc-dev am: 11c711a434
am: 9d519e45b0
Change-Id: Ie8e05bd68291e09573b61eee3e50ca6afa2a45e7
This commit is contained in:
commit
7cee2f592b
1 changed files with 21 additions and 28 deletions
|
@ -161,34 +161,27 @@ Return<void> Tuner::getFrontendInfo(FrontendId frontendId, getFrontendInfo_cb _h
|
|||
return Void();
|
||||
}
|
||||
|
||||
switch (mFrontends[frontendId]->getFrontendType()) {
|
||||
case FrontendType::DVBT:
|
||||
info.type = FrontendType::DVBT;
|
||||
break;
|
||||
default:
|
||||
vector<FrontendStatusType> statusCaps = {
|
||||
FrontendStatusType::DEMOD_LOCK,
|
||||
FrontendStatusType::SNR,
|
||||
FrontendStatusType::FEC,
|
||||
FrontendStatusType::MODULATION,
|
||||
FrontendStatusType::PLP_ID,
|
||||
FrontendStatusType::LAYER_ERROR,
|
||||
FrontendStatusType::ATSC3_PLP_INFO,
|
||||
};
|
||||
// assign randomly selected values for testing.
|
||||
info = {
|
||||
.type = mFrontends[frontendId]->getFrontendType(),
|
||||
.minFrequency = 139,
|
||||
.maxFrequency = 1139,
|
||||
.minSymbolRate = 45,
|
||||
.maxSymbolRate = 1145,
|
||||
.acquireRange = 30,
|
||||
.exclusiveGroupId = 57,
|
||||
.statusCaps = statusCaps,
|
||||
.frontendCaps = mFrontendCaps[frontendId],
|
||||
};
|
||||
break;
|
||||
}
|
||||
vector<FrontendStatusType> statusCaps = {
|
||||
FrontendStatusType::DEMOD_LOCK,
|
||||
FrontendStatusType::SNR,
|
||||
FrontendStatusType::FEC,
|
||||
FrontendStatusType::MODULATION,
|
||||
FrontendStatusType::PLP_ID,
|
||||
FrontendStatusType::LAYER_ERROR,
|
||||
FrontendStatusType::ATSC3_PLP_INFO,
|
||||
};
|
||||
// assign randomly selected values for testing.
|
||||
info = {
|
||||
.type = mFrontends[frontendId]->getFrontendType(),
|
||||
.minFrequency = 139,
|
||||
.maxFrequency = 1139,
|
||||
.minSymbolRate = 45,
|
||||
.maxSymbolRate = 1145,
|
||||
.acquireRange = 30,
|
||||
.exclusiveGroupId = 57,
|
||||
.statusCaps = statusCaps,
|
||||
.frontendCaps = mFrontendCaps[frontendId],
|
||||
};
|
||||
|
||||
_hidl_cb(Result::SUCCESS, info);
|
||||
return Void();
|
||||
|
|
Loading…
Reference in a new issue