blob: f4dec4cccc14b551a8bd3bcaca51c1f973e8a4d7 [file] [log] [blame]
/* SPDX-License-Identifier: (GPL-2.0+ OR MIT) */
/*
* Copyright (c) 2019 Amlogic, Inc. All rights reserved.
*/
#ifndef __AML_TDM_H__
#define __AML_TDM_H__
struct aml_tdm;
int aml_tdm_set_fmt(struct aml_tdm *p_tdm, unsigned int fmt);
void aml_tdmin_set_src(struct aml_tdm *p_tdm);
int aml_tdm_hw_setting
(struct aml_tdm *p_tdm,
unsigned int rate,
unsigned int channels,
int stream);
void aml_tdm_hw_setting_free(struct aml_tdm *p_tdm, int stream);
void aml_tdm_trigger(struct aml_tdm *p_tdm, int stream, bool enable);
#endif