/* * Copyright (C) 2025 Amlogic Corporation. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ #ifndef _AUDIO_LLP_H_ #define _AUDIO_LLP_H_ #ifdef __cplusplus extern "C" { #endif #define LLP_BUFFER_NAME "llp_input" #define LLP_BUFFER_SIZE (256 * 6 * 2 * 20) typedef struct audio_llp_ctx { char *llp_buf; uint64_t llp_rp; uint64_t llp_underrun_wp; int nChannel; } audio_llp_ctx_t; int llp_init(struct aml_audio_device *adev, int nChannel); void llp_deinit(struct aml_audio_device *adev); void llp_injection_and_mixer(struct aml_audio_device *adev, void *main_buffer, int main_channels); int llp_input_process(audio_llp_ctx_t *llp_ctx, void *outbuffer, int *outsamples, int alsa_level); #ifdef __cplusplus } #endif #endif