From 1dc54746c5d517230ec4a3a9b534d888d4078d9c Mon Sep 17 00:00:00 2001 From: janiervan Date: Tue, 17 Jan 2023 09:11:07 +0000 Subject: [PATCH] fix: audio st Signed-off-by: janiervan --- .../systemtest/common/hdi_common/src/audio_hdi_common.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/audio/test/systemtest/common/hdi_common/src/audio_hdi_common.cpp b/audio/test/systemtest/common/hdi_common/src/audio_hdi_common.cpp index 53b663f019..01ab4826c5 100644 --- a/audio/test/systemtest/common/hdi_common/src/audio_hdi_common.cpp +++ b/audio/test/systemtest/common/hdi_common/src/audio_hdi_common.cpp @@ -320,7 +320,11 @@ int32_t AudioCreateRender(TestAudioManager *manager, int pins, const std::string if (*adapter == nullptr || (*adapter)->CreateRender == nullptr) { return HDF_FAILURE; } +#ifdef FEATURE_SMALL_DEVICE InitAttrs(attrs); +#else + InitAttrsRender(attrs); +#endif InitDevDesc(devDesc, renderPort->portId, pins); ret = (*adapter)->CreateRender(*adapter, &devDesc, &attrs, render); if (ret < 0) { -- Gitee