diff options
author | TreeHugger Robot <treehugger-gerrit@google.com> | 2020-05-02 00:39:16 +0000 |
---|---|---|
committer | Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com> | 2020-05-02 00:39:16 +0000 |
commit | 3bfea3e57f21ddcf2e16a092142994cb3ed8b56f (patch) | |
tree | 2be51ce7cbcf1a3293329f4e71cc8cb9e3984752 /tv | |
parent | e24e2f387ba678d54652b3febd4ccde111c0f442 (diff) | |
parent | 11c711a4346fac392118980927d6c672bee94d6b (diff) | |
download | platform_hardware_interfaces-3bfea3e57f21ddcf2e16a092142994cb3ed8b56f.tar.gz platform_hardware_interfaces-3bfea3e57f21ddcf2e16a092142994cb3ed8b56f.tar.bz2 platform_hardware_interfaces-3bfea3e57f21ddcf2e16a092142994cb3ed8b56f.zip |
Merge "Update FrontendInfo for CTS" into rvc-dev am: 11c711a434
Change-Id: I76374239809a56c08383e2d9b6ca4c9dafc0db16
Diffstat (limited to 'tv')
-rw-r--r-- | tv/tuner/1.0/default/Tuner.cpp | 49 |
1 files changed, 21 insertions, 28 deletions
diff --git a/tv/tuner/1.0/default/Tuner.cpp b/tv/tuner/1.0/default/Tuner.cpp index b1f2490bb6..821d83f87b 100644 --- a/tv/tuner/1.0/default/Tuner.cpp +++ b/tv/tuner/1.0/default/Tuner.cpp @@ -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(); |