/drivers/peripheral/audio/test/systemtest/supportlibs/hardwaredependence/capture/src/ |
D | audio_libcapture_hardwaredependence_test.cpp | 151 volumeThresholdValueMax = hwCapture->captureParam.captureMode.ctlParam.volThreshold.volMax; 152 volumeThresholdValueMin = hwCapture->captureParam.captureMode.ctlParam.volThreshold.volMin; 154 hwCapture->captureParam.captureMode.ctlParam.volume = volumeThresholdValueMax - 1; 159 volumeValue = hwCapture->captureParam.captureMode.ctlParam.volume; 162 hwCapture->captureParam.captureMode.ctlParam.volume = volumeThresholdValueMin + 1; 167 volumeValue = hwCapture->captureParam.captureMode.ctlParam.volume; 193 volumeThresholdValueMax = hwCapture->captureParam.captureMode.ctlParam.volThreshold.volMax; 194 volumeThresholdValueMin = hwCapture->captureParam.captureMode.ctlParam.volThreshold.volMin; 196 hwCapture->captureParam.captureMode.ctlParam.volume = volumeThresholdValueMin; 201 volumeValue = hwCapture->captureParam.captureMode.ctlParam.volume; [all …]
|
/drivers/peripheral/audio/test/fuzztest/common/src/ |
D | audio_adm_fuzzer_common.cpp | 104 int32_t InitHwCaptureMode(struct AudioHwCaptureMode& captureMode) in InitHwCaptureMode() argument 106 captureMode.hwInfo.card = AUDIO_SERVICE_IN; in InitHwCaptureMode() 107 captureMode.hwInfo.portDescript.dir = PORT_IN; in InitHwCaptureMode() 108 captureMode.hwInfo.portDescript.portId = 0; in InitHwCaptureMode() 109 captureMode.hwInfo.portDescript.portName = "AIP"; in InitHwCaptureMode() 110 captureMode.hwInfo.deviceDescript.portId = 0; in InitHwCaptureMode() 111 captureMode.hwInfo.deviceDescript.pins = PIN_IN_MIC; in InitHwCaptureMode() 112 captureMode.hwInfo.deviceDescript.desc = nullptr; in InitHwCaptureMode() 141 if (InitHwCaptureMode(hwCapture->captureParam.captureMode) || in InitHwCapture() 145 ret = strcpy_s(hwCapture->captureParam.captureMode.hwInfo.adapterName, in InitHwCapture()
|
/drivers/peripheral/audio/test/systemtest/common/lib_common/src/ |
D | audio_lib_common.cpp | 94 int32_t InitHwCaptureMode(struct AudioHwCaptureMode& captureMode) in InitHwCaptureMode() argument 97 int32_t ret = strncpy_s(captureMode.hwInfo.cardServiceName, NAME_LEN - 1, in InitHwCaptureMode() 103 captureMode.hwInfo.portDescript.dir = PORT_IN; in InitHwCaptureMode() 104 captureMode.hwInfo.portDescript.portId = 0; in InitHwCaptureMode() 105 captureMode.hwInfo.portDescript.portName = "AIP"; in InitHwCaptureMode() 106 captureMode.hwInfo.deviceDescript.portId = 0; in InitHwCaptureMode() 107 captureMode.hwInfo.deviceDescript.pins = PIN_IN_MIC; in InitHwCaptureMode() 108 captureMode.hwInfo.deviceDescript.desc = nullptr; in InitHwCaptureMode() 137 if (InitHwCaptureMode(hwCapture->captureParam.captureMode) || in InitHwCapture() 141 ret = strcpy_s(hwCapture->captureParam.captureMode.hwInfo.adapterName, in InitHwCapture()
|
/drivers/peripheral/audio/hdi_service/primary_impl/src/ |
D | audio_capture.c | 127 if (hwCapture->captureParam.captureMode.ctlParam.pause) { in AudioCapturePause() 142 bool pauseStatus = hwCapture->captureParam.captureMode.ctlParam.pause; in AudioCapturePause() 143 hwCapture->captureParam.captureMode.ctlParam.pause = true; in AudioCapturePause() 149 hwCapture->captureParam.captureMode.ctlParam.pause = pauseStatus; in AudioCapturePause() 164 if (!hwCapture->captureParam.captureMode.ctlParam.pause) { in AudioCaptureResume() 179 bool resumeStatus = hwCapture->captureParam.captureMode.ctlParam.pause; in AudioCaptureResume() 180 hwCapture->captureParam.captureMode.ctlParam.pause = false; in AudioCaptureResume() 186 hwCapture->captureParam.captureMode.ctlParam.pause = resumeStatus; in AudioCaptureResume() 322 captureParam.captureMode.hwInfo.deviceDescript.pins = scene->desc.pins; in AudioCaptureCheckSceneCapability() 366 enum AudioPortPin pinsTemp = hwCapture->captureParam.captureMode.hwInfo.deviceDescript.pins; in AudioCaptureSelectScene() [all …]
|
D | audio_adapter.c | 762 hwCapture->captureParam.captureMode.hwInfo.deviceDescript = *desc; in InitHwCaptureParam() 764 hwCapture->captureParam.captureMode.ctlParam.audioGain.gainMax = GAIN_MAX; // init gainMax in InitHwCaptureParam() 765 hwCapture->captureParam.captureMode.ctlParam.audioGain.gainMin = 0; in InitHwCaptureParam() 836 int32_t ret = strncpy_s(hwCapture->captureParam.captureMode.hwInfo.adapterName, NAME_LEN - 1, in AudioAdapterCreateCapturePre() 842 uint32_t portId = hwCapture->captureParam.captureMode.hwInfo.deviceDescript.portId; in AudioAdapterCreateCapturePre() 844 …hwCapture->captureParam.captureMode.hwInfo.cardServiceName, &hwAdapter->adapterDescriptor, portId); in AudioAdapterCreateCapturePre()
|
/drivers/peripheral/audio/supportlibs/adm_adapter/src/ |
D | audio_interface_lib_capture.c | 48 g_hwParams.cardServiceName = (char*)handleData->captureMode.hwInfo.cardServiceName; in SetHwParamsCapture() 117 elemCaptureValue.id.cardServiceName = handleData->captureMode.hwInfo.cardServiceName; in AudioCtlCaptureSetPauseBuf() 120 elemCaptureValue.value[0] = (int32_t)handleData->captureMode.ctlParam.pause; in AudioCtlCaptureSetPauseBuf() 139 if (!HdfSbufWriteString(sBuf, handleData->captureMode.hwInfo.cardServiceName)) { in AudioCtlCaptureSetPauseStu() 152 cmdId = handleData->captureMode.ctlParam.pause ? in AudioCtlCaptureSetPauseStu() 173 elemCaptureValue.id.cardServiceName = handleData->captureMode.hwInfo.cardServiceName; in AudioCtlCaptureGetVolumeSBuf() 219 handleData->captureMode.ctlParam.volume = (float)elemValue; in AudioCtlCaptureGetVolume() 232 elemCaptureValue.id.cardServiceName = handleData->captureMode.hwInfo.cardServiceName; in AudioCtlCaptureSetVolumeSBuf() 235 elemCaptureValue.value[0] = (int32_t)handleData->captureMode.ctlParam.volume; in AudioCtlCaptureSetVolumeSBuf() 281 elemCaptureValue.id.cardServiceName = handleData->captureMode.hwInfo.cardServiceName; in AudioCtlCaptureSetMuteSBuf() [all …]
|
/drivers/peripheral/audio/test/systemtest/supportlibs/common/capture/src/ |
D | audio_alsa_libcapture_test.cpp | 550 volumeThresholdValueMax = hwCapture->captureParam.captureMode.ctlParam.volThreshold.volMax; 551 volumeThresholdValueMin = hwCapture->captureParam.captureMode.ctlParam.volThreshold.volMin; 583 volumeThresholdValueMax = hwCapture->captureParam.captureMode.ctlParam.volThreshold.volMax; 584 volumeThresholdValueMin = hwCapture->captureParam.captureMode.ctlParam.volThreshold.volMin; 586 hwCapture->captureParam.captureMode.ctlParam.volume = volumeThresholdValueMax - 1; 591 volumeValue = hwCapture->captureParam.captureMode.ctlParam.volume; 594 hwCapture->captureParam.captureMode.ctlParam.volume = volumeThresholdValueMin + 1; 599 volumeValue = hwCapture->captureParam.captureMode.ctlParam.volume; 601 hwCapture->captureParam.captureMode.ctlParam.volume = volumeBoundaryValue; 606 volumeValue = hwCapture->captureParam.captureMode.ctlParam.volume; [all …]
|
D | audio_libcapture_test.cpp | 224 hwCapture->captureParam.captureMode.ctlParam.mute = 0; 229 muteValue = hwCapture->captureParam.captureMode.ctlParam.mute; 231 hwCapture->captureParam.captureMode.ctlParam.mute = 1; 236 muteValue = hwCapture->captureParam.captureMode.ctlParam.mute; 260 hwCapture->captureParam.captureMode.ctlParam.mute = 2; 265 muteValue = hwCapture->captureParam.captureMode.ctlParam.mute; 267 hwCapture->captureParam.captureMode.ctlParam.mute = 0; 272 muteValue = hwCapture->captureParam.captureMode.ctlParam.mute; 463 hwCapture->captureParam.captureMode.ctlParam.mute = 0; 519 hwCapture->captureParam.captureMode.ctlParam.pause = 1; [all …]
|
/drivers/peripheral/audio/hal/pathselect/src/ |
D | audio_pathselect.c | 192 int32_t devNum = captureParam->captureMode.hwInfo.pathSelect.deviceInfo.deviceNum; in SetCapturePathDefaultValue() 208 …(void)memset_s(captureParam->captureMode.hwInfo.pathSelect.deviceInfo.deviceSwitchs[devNum].device… in SetCapturePathDefaultValue() 211 …strncpy_s(captureParam->captureMode.hwInfo.pathSelect.deviceInfo.deviceSwitchs[devNum].deviceSwitc… in SetCapturePathDefaultValue() 217 …captureParam->captureMode.hwInfo.pathSelect.deviceInfo.deviceSwitchs[devNum].value = captureSwVal-… in SetCapturePathDefaultValue() 221 captureParam->captureMode.hwInfo.pathSelect.deviceInfo.deviceNum = devNum; in SetCapturePathDefaultValue() 474 int32_t devNum = captureParam->captureMode.hwInfo.pathSelect.deviceInfo.deviceNum; in SetCapturePathValue() 490 …(void)memset_s(captureParam->captureMode.hwInfo.pathSelect.deviceInfo.deviceSwitchs[devNum].device… in SetCapturePathValue() 493 …strncpy_s(captureParam->captureMode.hwInfo.pathSelect.deviceInfo.deviceSwitchs[devNum].deviceSwitc… in SetCapturePathValue() 501 …captureParam->captureMode.hwInfo.pathSelect.deviceInfo.deviceSwitchs[devNum].value = swVal->valuei… in SetCapturePathValue() 503 … captureParam->captureMode.hwInfo.pathSelect.deviceInfo.deviceSwitchs[devNum].value = value; in SetCapturePathValue() [all …]
|
/drivers/peripheral/audio/supportlibs/alsa_adapter/src/ |
D | alsa_lib_capture.c | 84 const char *adapterName = handleData->captureMode.hwInfo.adapterName; in AudioCtlCaptureSetPauseStu() 91 …pause = handleData->captureMode.ctlParam.pause ? AUDIO_ALSALIB_IOCTRL_PAUSE : AUDIO_ALSALIB_IOCTRL… in AudioCtlCaptureSetPauseStu() 146 const char *adapterName = handleData->captureMode.hwInfo.adapterName; in AudioCtlCaptureGetVolume() 163 handleData->captureMode.ctlParam.volume = (float)(vol); in AudioCtlCaptureGetVolume() 177 handleData->captureMode.ctlParam.volume = (float)(vol); in AudioCtlCaptureGetVolume() 225 vol = (int32_t)handleData->captureMode.ctlParam.volume; in AudioCtlCaptureSetVolume() 226 const char *adapterName = handleData->captureMode.hwInfo.adapterName; in AudioCtlCaptureSetVolume() 344 const char *adapterName = handleData->captureMode.hwInfo.adapterName; in AudioCtlCaptureSetMuteStu() 358 …ret = AudioCaptureSetMuteState(cardIns, muteState, adapterName, handleData->captureMode.ctlParam.v… in AudioCtlCaptureSetMuteStu() 365 cardIns->captureMuteValue = (int32_t)handleData->captureMode.ctlParam.mute; in AudioCtlCaptureSetMuteStu() [all …]
|
D | alsa_mixer_path.c | 155 const char *adapterName = captureData->captureMode.hwInfo.adapterName; in EnableAudioCaptureRoute() 162 int32_t devCount = captureData->captureMode.hwInfo.pathSelect.deviceInfo.deviceNum; in EnableAudioCaptureRoute() 168 …capturePathName = captureData->captureMode.hwInfo.pathSelect.deviceInfo.deviceSwitchs[i].deviceSwi… in EnableAudioCaptureRoute() 169 itemValue = captureData->captureMode.hwInfo.pathSelect.deviceInfo.deviceSwitchs[i].value; in EnableAudioCaptureRoute()
|
/drivers/peripheral/audio/test/unittest/supportlibs/interface_lib_capture/src/ |
D | audio_alsa_if_lib_capture_test.cpp | 89 …(void)memcpy_s(handleData->captureMode.hwInfo.adapterName, NAME_LEN, "primary", strlen("primary")); in AudioCapInitHwParams() 122 …(void)memcpy_s(handleData->captureMode.hwInfo.adapterName, NAME_LEN, "primary", strlen("primary")); 193 int32_t volumeMin = handleData->captureMode.ctlParam.volThreshold.volMin; 194 int32_t volumeMax = handleData->captureMode.ctlParam.volThreshold.volMax; 219 int32_t vol = (int32_t)handleData->captureMode.ctlParam.volume; 240 handleData->captureMode.ctlParam.volume = setVol; 249 float getVol = handleData->captureMode.ctlParam.volume; 274 mute = handleData->captureMode.ctlParam.mute; 293 handleData->captureMode.ctlParam.mute = true; 302 mute = handleData->captureMode.ctlParam.mute; [all …]
|
D | audio_adm_if_lib_capture_test.cpp | 92 handleData->captureMode.hwInfo.card = AUDIO_SERVICE_IN; 122 handleData->captureMode.hwInfo.card = AUDIO_SERVICE_IN; 153 handleData->captureMode.hwInfo.card = AUDIO_SERVICE_IN; 184 handleData->captureMode.hwInfo.card = AUDIO_SERVICE_IN; 215 handleData->captureMode.hwInfo.card = AUDIO_SERVICE_IN; 246 handleData->captureMode.hwInfo.card = AUDIO_SERVICE_IN; 277 handleData->captureMode.hwInfo.card = AUDIO_SERVICE_IN; 308 handleData->captureMode.hwInfo.card = AUDIO_SERVICE_IN; 341 handleData->captureMode.hwInfo.card = AUDIO_SERVICE_IN; 373 handleData->captureMode.hwInfo.card = AUDIO_SERVICE_IN;
|
/drivers/peripheral/audio/test/systemtest/common/lib_common/include/ |
D | audio_lib_common.h | 60 int32_t InitHwCaptureMode(struct AudioHwCaptureMode& captureMode);
|
/drivers/peripheral/audio/test/fuzztest/common/include/ |
D | audio_adm_fuzzer_common.h | 85 int32_t InitHwCaptureMode(struct AudioHwCaptureMode& captureMode);
|
/drivers/peripheral/audio/hdi_service/primary_impl/include/ |
D | audio_internal.h | 293 struct AudioHwCaptureMode captureMode; member
|
/drivers/peripheral/audio/hal/hdi_passthrough/include/ |
D | audio_internal.h | 297 struct AudioHwCaptureMode captureMode; member
|