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

Commit 67b2b0cf authored by Harsh Bansal's avatar Harsh Bansal
Browse files

HAL: QAP-Test: support for QAP associated decoding

-Adding support for qap associated decoding
this is needed when associated stream is separately
decoded in BD use case

Change-Id: Ib6ab9ed7846d32c05c615995ceb816b149303157
parent 5e431d0a
Loading
Loading
Loading
Loading
+8 −2
Original line number Diff line number Diff line
@@ -1718,11 +1718,17 @@ qap_module_handle_t qap_wrapper_stream_open(void* stream_data)
            ALOGV("%s::%d Set Secondary System Sound Flag", __func__, __LINE__);
            input_config.flags = QAP_MODULE_FLAG_SYSTEM_SOUND;
            stream_info->system_input = true;
        } else {
            if (stream_info->flags & AUDIO_OUTPUT_FLAG_ASSOCIATED) {
                ALOGV("%s::%d Set Secondary Assoc Input Flag", __func__, __LINE__);
                input_config.flags = QAP_MODULE_FLAG_SECONDARY;
                stream_info->sec_input = true;
            } else {
                ALOGV("%s::%d Set Primary Main Input Flag", __func__, __LINE__);
                input_config.flags = QAP_MODULE_FLAG_PRIMARY;
            }
        }
    }

    if (!encode)
        input_config.module_type = QAP_MODULE_DECODER;