blob: ad3600aef0167b2aa59b1e1072f1223e443319cd [file] [log] [blame]
/*
* mtk-afe-util.h -- Mediatek audio utility
*
* Copyright (c) 2016 MediaTek Inc.
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License version 2 and
* only version 2 as published by the Free Software Foundation.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*/
#ifndef _MT8167_AFE_UTILITY_H_
#define _MT8167_AFE_UTILITY_H_
struct mtk_afe;
int mt8167_afe_enable_top_cg(struct mtk_afe *afe, unsigned int cg_type);
int mt8167_afe_disable_top_cg(struct mtk_afe *afe, unsigned int cg_type);
int mt8167_afe_enable_main_clk(struct mtk_afe *afe);
int mt8167_afe_disable_main_clk(struct mtk_afe *afe);
int mt8167_afe_emi_clk_on(struct mtk_afe *afe);
int mt8167_afe_emi_clk_off(struct mtk_afe *afe);
int mt8167_afe_enable_afe_on(struct mtk_afe *afe);
int mt8167_afe_disable_afe_on(struct mtk_afe *afe);
int mt8167_afe_enable_apll_tuner_cfg(struct mtk_afe *afe, unsigned int apll);
int mt8167_afe_disable_apll_tuner_cfg(struct mtk_afe *afe, unsigned int apll);
int mt8167_afe_enable_apll_associated_cfg(struct mtk_afe *afe, unsigned int apll);
int mt8167_afe_disable_apll_associated_cfg(struct mtk_afe *afe, unsigned int apll);
void turn_on_spdif_dir_ck(struct mtk_afe *afe);
void turn_off_spdif_dir_ck(struct mtk_afe *afe);
void mt_afe_spdif_dir_clk_on(struct mtk_afe *afe);
void mt_afe_spdif_dir_clk_off(struct mtk_afe *afe);
#endif