Home
last modified time | relevance | path

Searched refs:pins (Results 1 – 25 of 67) sorted by relevance

123

/drivers/peripheral/audio/test/systemtest/hdi_service/common/render/src/
Daudio_idl_hdirender_scene_test.cpp75 scenes.desc.pins = PIN_OUT_SPEAKER;
95 scenes.desc.pins = PIN_OUT_SPEAKER;
115 scenes.desc.pins = PIN_OUT_SPEAKER;
149 scenes.desc.pins = PIN_OUT_SPEAKER;
168 scenes.desc.pins = PIN_OUT_SPEAKER;
191 scenes.desc.pins = PIN_OUT_SPEAKER;
215 scenes.desc.pins = PIN_IN_MIC;
247 scenes.desc.pins = PIN_OUT_HDMI;
/drivers/peripheral/audio/test/systemtest/hdi_service/common/capture/src/
Daudio_idl_hdicapture_scene_test.cpp77 scenes.desc.pins = PIN_IN_MIC;
97 scenes.desc.pins = PIN_IN_MIC;
117 scenes.desc.pins = PIN_IN_MIC;
155 scenes.desc.pins = PIN_IN_MIC;
173 scenes.desc.pins = PIN_IN_MIC;
194 scenes.desc.pins = PIN_IN_MIC;
215 scenes.desc.pins = PIN_IN_MIC;
248 scenes.desc.pins = PIN_OUT_HDMI;
Daudio_idl_hdicapture_test.cpp226 … .capture = capture, .portType = PORT_IN, .adapterName = ADAPTER_NAME.c_str(), .pins = PIN_IN_MIC,
257 … .capture = capture, .portType = PORT_IN, .adapterName = ADAPTER_NAME.c_str(), .pins = PIN_IN_MIC,
441 … .capture = capture, .portType = PORT_IN, .adapterName = ADAPTER_NAME.c_str(), .pins = PIN_IN_MIC,
460 … .capture = capture, .portType = PORT_IN, .adapterName = ADAPTER_NAME.c_str(), .pins = PIN_IN_MIC,
479 … .capture = capture, .portType = PORT_IN, .adapterName = ADAPTER_NAME.c_str(), .pins = PIN_IN_MIC,
/drivers/hdf_core/framework/test/unittest/platform/virtual/
Dpin_virtual.c250 virtual->cntlr.pins[index].pinName = virtual->desc[index].pinName; in VirtualPinParsePinNode()
251 virtual->cntlr.pins[index].priv = (void *)node; in VirtualPinParsePinNode()
253 …HDF_LOGD("VirtualPinParsePinNode: pin parse pin node %s success!", virtual->cntlr.pins[index].pinN… in VirtualPinParsePinNode()
295 … virtual->cntlr.pins = (struct PinDesc *)OsalMemCalloc(sizeof(struct PinDesc) * virtual->pinCount); in VirtualPinCntlrInit()
296 if (virtual->cntlr.pins == NULL) { in VirtualPinCntlrInit()
336 OsalMemFree(virtual->cntlr.pins); in VirtualPinInit()
348 OsalMemFree(virtual->cntlr.pins); in VirtualPinInit()
389 OsalMemFree(virtual->cntlr.pins); in VirtualPinRelease()
/drivers/peripheral/audio/hal/pathselect/src/
Daudio_pathselect.c348 int32_t pins = renderParam->renderMode.hwInfo.deviceDescript.pins; in AudioRenderParseDevice() local
349 if (pins < 0) { in AudioRenderParseDevice()
354 int32_t tpins = pins & OUTPUT_MASK; in AudioRenderParseDevice()
355 if ((pins >> OUTPUT_OFFSET) != 0) { in AudioRenderParseDevice()
356 AUDIO_FUNC_LOGE("pins: %d, error!\n", pins); in AudioRenderParseDevice()
585 int32_t pins = captureParam->captureMode.hwInfo.deviceDescript.pins; in AudioCaptureParseDevice() local
586 if (pins < 0) { in AudioCaptureParseDevice()
591 if (!((pins >> INPUT_OFFSET) & 0x01)) { in AudioCaptureParseDevice()
592 AUDIO_FUNC_LOGE("pins: %{public}d, error!", pins); in AudioCaptureParseDevice()
601 int32_t tpins = pins & INPUT_MASK; in AudioCaptureParseDevice()
/drivers/peripheral/audio/test/systemtest/hdi_service/hdiperformace/src/
Daudio_idlhdiadapter_performace_test.cpp204 … .adapter = adapter, .delayTime = 0, .totalTime = 0, .averageDelayTime =0, .pins = PIN_OUT_SPEAKER
208 InitDevDesc(audiopara.devDesc, audioPort.portId, audiopara.pins);
238 … .adapter = adapter, .delayTime = 0, .totalTime = 0, .averageDelayTime =0, .pins = PIN_OUT_SPEAKER
242 InitDevDesc(audiopara.devDesc, audioPort.portId, audiopara.pins);
269 .adapter = adapter, .delayTime = 0, .averageDelayTime =0, .totalTime = 0, .pins = PIN_IN_MIC
273 InitDevDesc(audiopara.devDesc, audioPort.portId, audiopara.pins);
301 .adapter = adapter, .delayTime = 0, .totalTime = 0, .averageDelayTime =0, .pins = PIN_IN_MIC
305 InitDevDesc(audiopara.devDesc, audioPort.portId, audiopara.pins);
/drivers/peripheral/bluetooth/audio/hal/hdi_passthrough/src/
Daudio_adapter.cpp80 AudioPortPin pins = desc->pins; in CheckParaDesc() local
82 if (pins == PIN_IN_MIC || pins == PIN_IN_HS_MIC || pins == PIN_IN_LINEIN) { in CheckParaDesc()
88 …if (pins == PIN_OUT_SPEAKER || pins == PIN_OUT_HEADSET || pins == PIN_OUT_LINEOUT || pins == PIN_O… in CheckParaDesc()
/drivers/peripheral/audio/test/systemtest/common/hdi_service_common/include/
Dhdi_service_common.h156 AudioPortPin pins; member
184 int32_t InitDevDesc(struct AudioDeviceDescriptor &devDesc, const uint32_t portId, int pins);
200 int32_t AudioCreateRender(TestAudioManager *manager, int pins, const std::string &adapterName,
203 int32_t AudioCreateCapture(TestAudioManager *manager, int pins, const std::string &adapterName,
/drivers/peripheral/audio/test/systemtest/common/hdi_common/include/
Daudio_hdi_common.h182 enum AudioPortPin pins; member
216 int32_t InitDevDesc(struct AudioDeviceDescriptor &devDesc, const uint32_t portId, int pins);
232 int32_t AudioCreateRender(TestAudioManager *manager, int pins, const std::string &adapterName,
235 int32_t AudioCreateCapture(TestAudioManager *manager, int pins, const std::string &adapterName,
/drivers/hdf_core/framework/model/input/driver/
Dhdf_touch.c106 gpio = chipDev->boardCfg->pins.intGpio; in HandleResetEvent()
110 gpio = chipDev->boardCfg->pins.rstGpio; in HandleResetEvent()
146 gpio = chipDev->boardCfg->pins.rstGpio; in HandlePowerEvent()
150 gpio = chipDev->boardCfg->pins.intGpio; in HandlePowerEvent()
219 ret = SetGpio(chipDev->boardCfg->pins.rstGpio, 1, 0); in Gt1xRequestIo()
224 ret = SetGpio(chipDev->boardCfg->pins.intGpio, 1, 0); in Gt1xRequestIo()
230 ret = SetGpio(chipDev->boardCfg->pins.rstGpio, 1, 1); in Gt1xRequestIo()
255 rstPinAddr = driver->boardCfg->pins.rstPinReg[0]; in SetTiming()
256 rstPinValue = driver->boardCfg->pins.rstPinReg[1]; in SetTiming()
257 intPinAddr = driver->boardCfg->pins.intPinReg[0]; in SetTiming()
[all …]
Dinput_config_parser.c161 BoardPinCfg *pins) in ParsePins() argument
164 ret = parser->GetUint16(pinsNode, "rstGpio", &pins->rstGpio, 0); in ParsePins()
166 ret = parser->GetUint16(pinsNode, "intGpio", &pins->intGpio, 0); in ParsePins()
168 ret = parser->GetUint32Array(pinsNode, "rstRegCfg", pins->rstPinReg, REG_CONFIG_LEN, 0); in ParsePins()
170 ret = parser->GetUint32Array(pinsNode, "intRegCfg", pins->intPinReg, REG_CONFIG_LEN, 0); in ParsePins()
242 ret = ParsePins(parser, pinsNode, &config->pins); in ParseTouchBoardConfig()
Dinput_config.h83 BoardPinCfg pins; member
/drivers/hdf_core/framework/support/platform/src/pin/
Dpin_core.c115 if (cntlr->pins[num].pinName == NULL) { in PinCntlrGetPinDescByName()
118 if (!strcmp(cntlr->pins[num].pinName, pinName)) { in PinCntlrGetPinDescByName()
120 …DF_LOGI("PinCntlrGetPinDescByName: cntlr->pins[%d].pinName is %s!", num, cntlr->pins[num].pinName); in PinCntlrGetPinDescByName()
121 return &cntlr->pins[num]; in PinCntlrGetPinDescByName()
166 if (desc == &cntlr->pins[num]) { in PinCntlrGetByPin()
184 if (cntlr->pins[index].pinName == NULL) { in GetPinIndex()
188 ret = strcmp(cntlr->pins[index].pinName, desc->pinName); in GetPinIndex()
/drivers/peripheral/audio/test/sample/
Didl_render.c183 devDesc->pins = PIN_OUT_SPEAKER; in InitDevDesc()
1019 scene->desc.pins = PIN_OUT_HEADSET; in PrintRenderSelectPinFirst()
1021 scene->desc.pins = PIN_OUT_SPEAKER; in PrintRenderSelectPinFirst()
1046 scene->desc.pins = PIN_OUT_HEADSET; in PrintRenderSelectPinSecond()
1048 scene->desc.pins = PIN_OUT_SPEAKER; in PrintRenderSelectPinSecond()
1050 scene->desc.pins = PIN_OUT_SPEAKER | PIN_OUT_HEADSET; in PrintRenderSelectPinSecond()
1074 scene->desc.pins = PIN_OUT_HEADSET; in PrintRenderSelectPinThird()
1076 scene->desc.pins = PIN_OUT_SPEAKER; in PrintRenderSelectPinThird()
1121 scene.desc.pins = PIN_OUT_SPEAKER | PIN_OUT_HEADSET; in SelectRenderScene()
/drivers/peripheral/audio/test/fuzztest/common/src/
Daudio_adm_fuzzer_common.cpp99 renderMode.hwInfo.deviceDescript.pins = PIN_OUT_SPEAKER; in InitHwRenderMode()
111 captureMode.hwInfo.deviceDescript.pins = PIN_IN_MIC; in InitHwCaptureMode()
/drivers/peripheral/audio/hdi_service/primary_impl/src/
Daudio_capture.c322 captureParam.captureMode.hwInfo.deviceDescript.pins = scene->desc.pins; in AudioCaptureCheckSceneCapability()
366 enum AudioPortPin pinsTemp = hwCapture->captureParam.captureMode.hwInfo.deviceDescript.pins; in AudioCaptureSelectScene()
369 hwCapture->captureParam.captureMode.hwInfo.deviceDescript.pins = scene->desc.pins; in AudioCaptureSelectScene()
373 hwCapture->captureParam.captureMode.hwInfo.deviceDescript.pins = pinsTemp; in AudioCaptureSelectScene()
381 hwCapture->captureParam.captureMode.hwInfo.deviceDescript.pins = pinsTemp; in AudioCaptureSelectScene()
390 hwCapture->captureParam.captureMode.hwInfo.deviceDescript.pins = pinsTemp; in AudioCaptureSelectScene()
939 capture->captureParam.captureMode.hwInfo.deviceDescript.pins = PIN_NONE; in AudioCaptureTurnStandbyMode()
Daudio_adapter.c95 enum AudioPortPin pins = desc->pins; in CheckParaDesc() local
97 if (pins == PIN_IN_MIC || pins == PIN_IN_HS_MIC || pins == PIN_IN_LINEIN) { in CheckParaDesc()
101 …if (pins == PIN_OUT_SPEAKER || pins == PIN_OUT_HEADSET || pins == PIN_OUT_LINEOUT || pins == PIN_O… in CheckParaDesc()
102 || pins == (PIN_OUT_SPEAKER | PIN_OUT_HEADSET)) { in CheckParaDesc()
Daudio_render.c378 renderParam.renderMode.hwInfo.deviceDescript.pins = scene->desc.pins; in AudioRenderCheckSceneCapability()
421 enum AudioPortPin descPins = hwRender->renderParam.renderMode.hwInfo.deviceDescript.pins; in AudioRenderSelectScene()
424 hwRender->renderParam.renderMode.hwInfo.deviceDescript.pins = scene->desc.pins; in AudioRenderSelectScene()
428 hwRender->renderParam.renderMode.hwInfo.deviceDescript.pins = descPins; in AudioRenderSelectScene()
436 hwRender->renderParam.renderMode.hwInfo.deviceDescript.pins = descPins; in AudioRenderSelectScene()
445 hwRender->renderParam.renderMode.hwInfo.deviceDescript.pins = descPins; in AudioRenderSelectScene()
/drivers/hdf_core/framework/support/platform/include/pin/
Dpin_core.h41 struct PinDesc *pins; member
/drivers/peripheral/audio/test/systemtest/common/hdi_common/src/
Daudio_hdi_common.cpp156 int32_t InitDevDesc(struct AudioDeviceDescriptor &devDesc, const uint32_t portId, int pins) in InitDevDesc() argument
159 devDesc.pins = (enum AudioPortPin)pins; in InitDevDesc()
336 int32_t AudioCreateRender(TestAudioManager *manager, int pins, const std::string &adapterName, in AudioCreateRender() argument
358 InitDevDesc(devDesc, renderPort->portId, pins); in AudioCreateRender()
429 int32_t AudioCreateCapture(TestAudioManager *manager, int pins, const std::string &adapterName, in AudioCreateCapture() argument
451 InitDevDesc(devDesc, capturePort->portId, pins); in AudioCreateCapture()
932 …ret = AudioCreateRender(audiopara.manager, audiopara.pins, audiopara.adapterName, &audiopara.adapt… in PlayAudioFile()
962 …ret = AudioCreateCapture(audiopara.manager, audiopara.pins, audiopara.adapterName, &audiopara.adap… in RecordAudio()
/drivers/peripheral/audio/test/systemtest/common/hdi_service_common/src/
Dhdi_service_common.cpp105 int32_t InitDevDesc(struct AudioDeviceDescriptor &devDesc, const uint32_t portId, int pins) in InitDevDesc() argument
108 devDesc.pins = (enum AudioPortPin)pins; in InitDevDesc()
311 int32_t AudioCreateRender(TestAudioManager *manager, int pins, const std::string &adapterName, in AudioCreateRender() argument
333 InitDevDesc(devDesc, audioPort.portId, pins); in AudioCreateRender()
384 int32_t AudioCreateCapture(TestAudioManager *manager, int pins, const std::string &adapterName, in AudioCreateCapture() argument
405 InitDevDesc(devDesc, audioPort.portId, pins); in AudioCreateCapture()
/drivers/peripheral/bluetooth/audio/interfaces/include/
Daudio_types.h98 …enum AudioPortPin pins; /**< Pins of audio ports (input and output). For details, see {@link Audio… member
/drivers/peripheral/audio/test/systemtest/common/lib_common/src/
Daudio_lib_common.cpp89 renderMode.hwInfo.deviceDescript.pins = PIN_OUT_SPEAKER; in InitHwRenderMode()
107 captureMode.hwInfo.deviceDescript.pins = PIN_IN_MIC; in InitHwCaptureMode()
/drivers/peripheral/input/uinput/include/
Duinput_config_parser.h90 BoardPinCfg pins; member
/drivers/peripheral/audio/interfaces/include/
Daudio_types.h106 …enum AudioPortPin pins; /**< Pins of audio ports (input and output). For details, see {@link Audio… member

123