From 3fb9c3db41934109473427ecd791e215e175bc2a Mon Sep 17 00:00:00 2001 From: c30051536 Date: Fri, 1 Sep 2023 11:18:23 +0800 Subject: [PATCH 1/3] Modify the SPK opening timeout --- .../audio/v1_0/include/audio_adapter_interface_impl.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 cee31f40..c1fec59f 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; -- Gitee From 4b775590eac12aeaa0a3ee25bf371d1d0fc2a614 Mon Sep 17 00:00:00 2001 From: c30051536 Date: Fri, 1 Sep 2023 16:16:35 +0800 Subject: [PATCH 2/3] Change spk wating time --- services/audiomanager/managersource/include/daudio_source_dev.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/services/audiomanager/managersource/include/daudio_source_dev.h b/services/audiomanager/managersource/include/daudio_source_dev.h index b8a35fab..7e95e466 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; -- Gitee From c7fc0adf580a8a538b0728b1d2c5a3787f33d949 Mon Sep 17 00:00:00 2001 From: c30051536 Date: Fri, 1 Sep 2023 17:34:43 +0800 Subject: [PATCH 3/3] Modify the SPK opening timeout Signed-off-by: c30051536 --- services/audioclient/micclient/src/dmic_client.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/services/audioclient/micclient/src/dmic_client.cpp b/services/audioclient/micclient/src/dmic_client.cpp index 13f7c692..5932838e 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() -- Gitee