Merge "Add ATSC support in the vts" into android12-tests-dev am: 333df15518
am: 368ca264f2
am: fee45b6dbb
Original change: https://android-review.googlesource.com/c/platform/hardware/interfaces/+/2471289 Change-Id: If81bfd72c984aed3ff5bdd281995413b4825c747 Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
This commit is contained in:
commit
ebd7b7afb8
1 changed files with 9 additions and 0 deletions
|
@ -65,6 +65,7 @@ using android::hardware::tv::tuner::V1_0::LnbTone;
|
|||
using android::hardware::tv::tuner::V1_0::LnbVoltage;
|
||||
using android::hardware::tv::tuner::V1_0::PlaybackSettings;
|
||||
using android::hardware::tv::tuner::V1_0::RecordSettings;
|
||||
using android::hardware::tv::tuner::V1_0::FrontendAtscSettings;
|
||||
|
||||
const string emptyHardwareId = "";
|
||||
|
||||
|
@ -241,6 +242,7 @@ struct TunerTestingConfigReader1_0 {
|
|||
break;
|
||||
case FrontendTypeEnum::ATSC:
|
||||
type = FrontendType::ATSC;
|
||||
frontendMap[id].settings.atsc(readAtscFrontendSettings(feConfig));
|
||||
break;
|
||||
case FrontendTypeEnum::ATSC3:
|
||||
type = FrontendType::ATSC3;
|
||||
|
@ -627,6 +629,13 @@ struct TunerTestingConfigReader1_0 {
|
|||
return dvbsSettings;
|
||||
}
|
||||
|
||||
static FrontendAtscSettings readAtscFrontendSettings(Frontend feConfig) {
|
||||
FrontendAtscSettings atscSettings{
|
||||
.frequency = (uint32_t)feConfig.getFrequency(),
|
||||
};
|
||||
return atscSettings;
|
||||
}
|
||||
|
||||
static bool readFilterTypeAndSettings(Filter filterConfig, DemuxFilterType& type,
|
||||
DemuxFilterSettings& settings) {
|
||||
auto mainType = filterConfig.getMainType();
|
||||
|
|
Loading…
Reference in a new issue