diff --git a/hdf_service/distributed_audio/hdi_service/audio/v1_0/include/audio_adapter_interface_impl.h b/hdf_service/distributed_audio/hdi_service/audio/v1_0/include/audio_adapter_interface_impl.h index cee31f40caa666312a3b1f7d05a3bc906aa18865..c1fec59f8026f93a1e9f9c88bea6725a21a875b1 100644 --- a/hdf_service/distributed_audio/hdi_service/audio/v1_0/include/audio_adapter_interface_impl.h +++ b/hdf_service/distributed_audio/hdi_service/audio/v1_0/include/audio_adapter_interface_impl.h @@ -121,7 +121,7 @@ private: int32_t getEventTypeFromCondition(const std::string& condition); private: - static constexpr uint8_t WAIT_SECONDS = 10; + static constexpr uint8_t WAIT_SECONDS = 20; static constexpr int32_t TYPE_CONDITION = 11; AudioAdapterDescriptor adpDescriptor_; AudioAdapterStatus status_ = STATUS_OFFLINE; diff --git a/services/audioclient/micclient/src/dmic_client.cpp b/services/audioclient/micclient/src/dmic_client.cpp index 13f7c692c216c042444d24fc939d8b4d9a4dd313..5932838ed976f75a6150f40c5ffc805c687c2f1a 100644 --- a/services/audioclient/micclient/src/dmic_client.cpp +++ b/services/audioclient/micclient/src/dmic_client.cpp @@ -260,6 +260,7 @@ void DMicClient::GenerateAttr(const AudioParam ¶m) captureAttr_.silenceThreshold = AUDIO_BUFFER_SIZE; captureAttr_.channelCount = param.comParam.channelMask; captureAttr_.sampleRate = param.comParam.sampleRate; + captureAttr_.sourceType = 1; } int32_t DMicClient::AudioFwkClientSetUp() diff --git a/services/audiomanager/managersource/include/daudio_source_dev.h b/services/audiomanager/managersource/include/daudio_source_dev.h index b8a35fabf1e1d8970543df5c93b9a0bf86451d92..7e95e46668e6855002191dbef6094134083bd753 100644 --- a/services/audiomanager/managersource/include/daudio_source_dev.h +++ b/services/audiomanager/managersource/include/daudio_source_dev.h @@ -113,7 +113,7 @@ private: int32_t CloseMicNew(const std::string &args); private: - static constexpr uint8_t RPC_WAIT_SECONDS = 2; + static constexpr uint8_t RPC_WAIT_SECONDS = 10; static constexpr uint8_t TASK_QUEUE_CAPACITY = 20; static constexpr uint8_t EVENT_NOTIFY_OPEN_SPK = 0x01; static constexpr uint8_t EVENT_NOTIFY_CLOSE_SPK = 0x02;