Path: blob/master/sound/soc/mediatek/mt7986/mt7986-afe-common.h
26488 views
/* SPDX-License-Identifier: GPL-2.0 */1/*2* mt7986-afe-common.h -- MediaTek 7986 audio driver definitions3*4* Copyright (c) 2023 MediaTek Inc.5* Authors: Vic Wu <[email protected]>6* Maso Huang <[email protected]>7*/89#ifndef _MT_7986_AFE_COMMON_H_10#define _MT_7986_AFE_COMMON_H_1112#include <sound/soc.h>13#include <linux/clk.h>14#include <linux/list.h>15#include <linux/regmap.h>16#include "../common/mtk-base-afe.h"1718enum {19MT7986_MEMIF_DL1,20MT7986_MEMIF_VUL12,21MT7986_MEMIF_NUM,22MT7986_DAI_ETDM = MT7986_MEMIF_NUM,23MT7986_DAI_NUM,24};2526enum {27MT7986_IRQ_0,28MT7986_IRQ_1,29MT7986_IRQ_2,30MT7986_IRQ_NUM,31};3233struct mt7986_afe_private {34struct clk_bulk_data *clks;35int num_clks;3637int pm_runtime_bypass_reg_ctl;3839/* dai */40void *dai_priv[MT7986_DAI_NUM];41};4243unsigned int mt7986_afe_rate_transform(struct device *dev,44unsigned int rate);4546/* dai register */47int mt7986_dai_etdm_register(struct mtk_base_afe *afe);48#endif495051