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

Commit ae55cbf7 authored by Ray Essick's avatar Ray Essick
Browse files

force g711 test to match 1-channel sample data

special case the g711 test to know that it is a 1-channel input.
Test case itself can't infer the channel count from the g711 stream
since there is no header/control info within the g711 stream.

Bug: 140773833
Test: vts-tradefed run vts --module VtsHalMediaC2V1_0Host
Change-Id: I9ac1f4d3ee0ccc42ffc8c199fcb88dc5c7122c0e
(cherry picked from commit 72b55c5e)
parent 15437f1e
Loading
Loading
Loading
Loading
+4 −0
Original line number Diff line number Diff line
@@ -547,6 +547,10 @@ TEST_P(Codec2AudioDecDecodeTest, DecodeTest) {
    if (mCompName == raw) {
        bitStreamInfo[0] = 8000;
        bitStreamInfo[1] = 1;
    } else if (mCompName == g711alaw || mCompName == g711mlaw) {
        // g711 test data is all 1-channel and has no embedded config info.
        bitStreamInfo[0] = 8000;
        bitStreamInfo[1] = 1;
    } else {
        ASSERT_NO_FATAL_FAILURE(
            getInputChannelInfo(mComponent, mCompName, bitStreamInfo));