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 72b55c5e31)
gugelfrei
Ray Essick 5 years ago
parent 15437f1e00
commit ae55cbf717

@ -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));

Loading…
Cancel
Save