~ [ source navigation ] ~ [ diff markup ] ~ [ identifier search ] ~

TOMOYO Linux Cross Reference
Linux/sound/soc/mediatek/mt6797/mt6797-afe-common.h

Version: ~ [ linux-6.11-rc3 ] ~ [ linux-6.10.4 ] ~ [ linux-6.9.12 ] ~ [ linux-6.8.12 ] ~ [ linux-6.7.12 ] ~ [ linux-6.6.45 ] ~ [ linux-6.5.13 ] ~ [ linux-6.4.16 ] ~ [ linux-6.3.13 ] ~ [ linux-6.2.16 ] ~ [ linux-6.1.104 ] ~ [ linux-6.0.19 ] ~ [ linux-5.19.17 ] ~ [ linux-5.18.19 ] ~ [ linux-5.17.15 ] ~ [ linux-5.16.20 ] ~ [ linux-5.15.164 ] ~ [ linux-5.14.21 ] ~ [ linux-5.13.19 ] ~ [ linux-5.12.19 ] ~ [ linux-5.11.22 ] ~ [ linux-5.10.223 ] ~ [ linux-5.9.16 ] ~ [ linux-5.8.18 ] ~ [ linux-5.7.19 ] ~ [ linux-5.6.19 ] ~ [ linux-5.5.19 ] ~ [ linux-5.4.281 ] ~ [ linux-5.3.18 ] ~ [ linux-5.2.21 ] ~ [ linux-5.1.21 ] ~ [ linux-5.0.21 ] ~ [ linux-4.20.17 ] ~ [ linux-4.19.319 ] ~ [ linux-4.18.20 ] ~ [ linux-4.17.19 ] ~ [ linux-4.16.18 ] ~ [ linux-4.15.18 ] ~ [ linux-4.14.336 ] ~ [ linux-4.13.16 ] ~ [ linux-4.12.14 ] ~ [ linux-4.11.12 ] ~ [ linux-4.10.17 ] ~ [ linux-4.9.337 ] ~ [ linux-4.4.302 ] ~ [ linux-3.10.108 ] ~ [ linux-2.6.32.71 ] ~ [ linux-2.6.0 ] ~ [ linux-2.4.37.11 ] ~ [ unix-v6-master ] ~ [ ccs-tools-1.8.9 ] ~ [ policy-sample ] ~
Architecture: ~ [ i386 ] ~ [ alpha ] ~ [ m68k ] ~ [ mips ] ~ [ ppc ] ~ [ sparc ] ~ [ sparc64 ] ~

  1 /* SPDX-License-Identifier: GPL-2.0 */
  2 /*
  3  * mt6797-afe-common.h  --  Mediatek 6797 audio driver definitions
  4  *
  5  * Copyright (c) 2018 MediaTek Inc.
  6  * Author: KaiChieh Chuang <kaichieh.chuang@mediatek.com>
  7  */
  8 
  9 #ifndef _MT_6797_AFE_COMMON_H_
 10 #define _MT_6797_AFE_COMMON_H_
 11 
 12 #include <sound/soc.h>
 13 #include <linux/list.h>
 14 #include <linux/regmap.h>
 15 #include "../common/mtk-base-afe.h"
 16 
 17 enum {
 18         MT6797_MEMIF_DL1,
 19         MT6797_MEMIF_DL2,
 20         MT6797_MEMIF_DL3,
 21         MT6797_MEMIF_VUL,
 22         MT6797_MEMIF_AWB,
 23         MT6797_MEMIF_VUL12,
 24         MT6797_MEMIF_DAI,
 25         MT6797_MEMIF_MOD_DAI,
 26         MT6797_MEMIF_NUM,
 27         MT6797_DAI_ADDA = MT6797_MEMIF_NUM,
 28         MT6797_DAI_PCM_1,
 29         MT6797_DAI_PCM_2,
 30         MT6797_DAI_HOSTLESS_LPBK,
 31         MT6797_DAI_HOSTLESS_SPEECH,
 32         MT6797_DAI_NUM,
 33 };
 34 
 35 enum {
 36         MT6797_IRQ_1,
 37         MT6797_IRQ_2,
 38         MT6797_IRQ_3,
 39         MT6797_IRQ_4,
 40         MT6797_IRQ_7,
 41         MT6797_IRQ_NUM,
 42 };
 43 
 44 struct clk;
 45 
 46 struct mt6797_afe_private {
 47         struct clk **clk;
 48 };
 49 
 50 unsigned int mt6797_general_rate_transform(struct device *dev,
 51                                            unsigned int rate);
 52 unsigned int mt6797_rate_transform(struct device *dev,
 53                                    unsigned int rate, int aud_blk);
 54 
 55 /* dai register */
 56 int mt6797_dai_adda_register(struct mtk_base_afe *afe);
 57 int mt6797_dai_pcm_register(struct mtk_base_afe *afe);
 58 int mt6797_dai_hostless_register(struct mtk_base_afe *afe);
 59 #endif
 60 

~ [ source navigation ] ~ [ diff markup ] ~ [ identifier search ] ~

kernel.org | git.kernel.org | LWN.net | Project Home | SVN repository | Mail admin

Linux® is a registered trademark of Linus Torvalds in the United States and other countries.
TOMOYO® is a registered trademark of NTT DATA CORPORATION.

sflogo.php