Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 663ca1ab authored by junchao yuan's avatar junchao yuan Committed by Hongguang Chen
Browse files

VTS: fix some logic errors for tuner HAL vts [1/1]



PD#SWPL-64015
bug#208191849

Problem:
tuner HAL vts test fail

Solution:
fix  text frequency:
fix  test start dvr playback logic error;

Verify:
Verify ohm
Bug: 208191849
Change-Id: I6376b7c1a6a6ea41fc73337e572e489999b6593f
Signed-off-by: default avatarjunchao yuan <junchao.yuan@amlogic.com>
parent 6c1a0a6b
Loading
Loading
Loading
Loading
+2 −0
Original line number Diff line number Diff line
@@ -377,6 +377,7 @@ AssertionResult FrontendTests::tuneFrontend(FrontendConfig config, bool testWith
        result &= mDvrTests.getDvrPlaybackMQDescriptor() == success();
        mDvrTests.startPlaybackInputThread(dvrConfig.playbackInputFile,
                                           dvrConfig.settings.playback());
        mDvrTests.startDvrPlayback();
        if (!result) {
            ALOGW("[vts] Software frontend dvr configure failed.");
            return failure();
@@ -400,6 +401,7 @@ AssertionResult FrontendTests::stopTuneFrontend(bool testWithDemux) {
    status = mFrontend->stopTune();
    if (mIsSoftwareFe && testWithDemux) {
        mDvrTests.stopPlaybackThread();
        mDvrTests.stopDvrPlayback();
        mDvrTests.closeDvrPlayback();
    }
    return AssertionResult(status == Result::SUCCESS);
+1 −1
Original line number Diff line number Diff line
@@ -198,7 +198,7 @@ static int defaultScanFrontend = SCAN_DVBT;
/** Configuration array for the frontend tune test */
inline void initFrontendConfig() {
    FrontendDvbtSettings dvbtSettings{
            .frequency = 578000,
            .frequency = 578000000,
            .transmissionMode = FrontendDvbtTransmissionMode::AUTO,
            .bandwidth = FrontendDvbtBandwidth::BANDWIDTH_8MHZ,
            .constellation = FrontendDvbtConstellation::AUTO,