1 /* 2 * Copyright (c) 2021 Huawei Device Co., Ltd. 3 * Licensed under the Apache License, Version 2.0 (the "License"); 4 * you may not use this file except in compliance with the License. 5 * You may obtain a copy of the License at 6 * 7 * http://www.apache.org/licenses/LICENSE-2.0 8 * 9 * Unless required by applicable law or agreed to in writing, software 10 * distributed under the License is distributed on an "AS IS" BASIS, 11 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 12 * See the License for the specific language governing permissions and 13 * limitations under the License. 14 */ 15 #ifndef HDF_AUDIO_SERVER_CAPTURE_H 16 #define HDF_AUDIO_SERVER_CAPTURE_H 17 18 #include "hdf_device_desc.h" 19 20 int32_t HdiServiceCreatCapture(const struct HdfDeviceIoClient *client, 21 struct HdfSBuf *data, struct HdfSBuf *reply); 22 int32_t HdiServiceCaptureDestory(const struct HdfDeviceIoClient *client, 23 struct HdfSBuf *data, struct HdfSBuf *reply); 24 int32_t HdiServiceCaptureStart(const struct HdfDeviceIoClient *client, 25 struct HdfSBuf *data, struct HdfSBuf *reply); 26 int32_t HdiServiceCaptureStop(const struct HdfDeviceIoClient *client, 27 struct HdfSBuf *data, struct HdfSBuf *reply); 28 int32_t HdiServiceCapturePause(const struct HdfDeviceIoClient *client, 29 struct HdfSBuf *data, struct HdfSBuf *reply); 30 int32_t HdiServiceCaptureResume(const struct HdfDeviceIoClient *client, 31 struct HdfSBuf *data, struct HdfSBuf *reply); 32 int32_t HdiServiceCaptureFlush(const struct HdfDeviceIoClient *client, 33 struct HdfSBuf *data, struct HdfSBuf *reply); 34 int32_t HdiServiceCaptureGetFrameSize(const struct HdfDeviceIoClient *client, 35 struct HdfSBuf *data, struct HdfSBuf *reply); 36 int32_t HdiServiceCaptureGetFrameCount(const struct HdfDeviceIoClient *client, 37 struct HdfSBuf *data, struct HdfSBuf *reply); 38 int32_t HdiServiceCaptureSetSampleAttr(const struct HdfDeviceIoClient *client, 39 struct HdfSBuf *data, struct HdfSBuf *reply); 40 int32_t HdiServiceCaptureGetSampleAttr(const struct HdfDeviceIoClient *client, 41 struct HdfSBuf *data, struct HdfSBuf *reply); 42 int32_t HdiServiceCaptureGetCurChannelId(const struct HdfDeviceIoClient *client, 43 struct HdfSBuf *data, struct HdfSBuf *reply); 44 int32_t HdiServiceCaptureCheckSceneCapability(const struct HdfDeviceIoClient *client, 45 struct HdfSBuf *data, struct HdfSBuf *reply); 46 int32_t HdiServiceCaptureSelectScene(const struct HdfDeviceIoClient *client, 47 struct HdfSBuf *data, struct HdfSBuf *reply); 48 int32_t HdiServiceCaptureGetMute(const struct HdfDeviceIoClient *client, 49 struct HdfSBuf *data, struct HdfSBuf *reply); 50 int32_t HdiServiceCaptureSetMute(const struct HdfDeviceIoClient *client, 51 struct HdfSBuf *data, struct HdfSBuf *reply); 52 int32_t HdiServiceCaptureSetVolume(const struct HdfDeviceIoClient *client, 53 struct HdfSBuf *data, struct HdfSBuf *reply); 54 int32_t HdiServiceCaptureGetVolume(const struct HdfDeviceIoClient *client, 55 struct HdfSBuf *data, struct HdfSBuf *reply); 56 int32_t HdiServiceCaptureGetGainThreshold(const struct HdfDeviceIoClient *client, 57 struct HdfSBuf *data, struct HdfSBuf *reply); 58 int32_t HdiServiceCaptureGetGain(const struct HdfDeviceIoClient *client, 59 struct HdfSBuf *data, struct HdfSBuf *reply); 60 int32_t HdiServiceCaptureSetGain(const struct HdfDeviceIoClient *client, 61 struct HdfSBuf *data, struct HdfSBuf *reply); 62 int32_t HdiServiceCaptureCaptureFrame(const struct HdfDeviceIoClient *client, 63 struct HdfSBuf *data, struct HdfSBuf *reply); 64 int32_t HdiServiceCaptureGetCapturePosition(const struct HdfDeviceIoClient *client, 65 struct HdfSBuf *data, struct HdfSBuf *reply); 66 int32_t HdiServiceCaptureSetExtraParams(const struct HdfDeviceIoClient *client, 67 struct HdfSBuf *data, struct HdfSBuf *reply); 68 int32_t HdiServiceCaptureGetExtraParams(const struct HdfDeviceIoClient *client, 69 struct HdfSBuf *data, struct HdfSBuf *reply); 70 int32_t HdiServiceCaptureReqMmapBuffer(const struct HdfDeviceIoClient *client, 71 struct HdfSBuf *data, struct HdfSBuf *reply); 72 int32_t HdiServiceCaptureGetMmapPosition(const struct HdfDeviceIoClient *client, 73 struct HdfSBuf *data, struct HdfSBuf *reply); 74 int32_t HdiServiceCaptureAddEffect(const struct HdfDeviceIoClient *client, 75 struct HdfSBuf *data, struct HdfSBuf *reply); 76 int32_t HdiServiceCaptureRemoveEffect(const struct HdfDeviceIoClient *client, 77 struct HdfSBuf *data, struct HdfSBuf *reply); 78 int32_t HdiServiceCaptureTurnStandbyMode(const struct HdfDeviceIoClient *client, 79 struct HdfSBuf *data, struct HdfSBuf *reply); 80 int32_t HdiServiceCaptureDevDump(const struct HdfDeviceIoClient *client, 81 struct HdfSBuf *data, struct HdfSBuf *reply); 82 83 #endif 84