huangcm
2025-04-26 bff3d3009b0d3a2be3ed92e4817fcabee9e76955
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
/*
 * sound\soc\sunxi\sunxi-i2s.h
 * (C) Copyright 2010-2017
 * Reuuimlla Technology Co., Ltd. <www.reuuimllatech.com>
 * huangxin <huangxin@Reuuimllatech.com>
 *
 * some simple description for this code
 *
 * This program is free software; you can redistribute it and/or
 * modify it under the terms of the GNU General Public License as
 * published by the Free Software Foundation; either version 2 of
 * the License, or (at your option) any later version.
 *
 */
 
#ifndef __SUNXI_I2S_H__
#define __SUNXI_I2S_H__
 
#include "sunxi-pcm.h"
 
struct sunxi_i2s {
   struct clk *pllclk;
   struct clk *moduleclk;
   struct clk *ac_rst;
   void __iomem  *membase;
   struct sunxi_dma_params play_dma_param;
   struct sunxi_dma_params capture_dma_param;
   struct snd_soc_dai_driver dai;
#ifdef CONFIG_SND_SUNXI_MAD
   struct resource res;
   unsigned int mad_bind;
   unsigned int lpsd_chan_sel;
   unsigned int mad_standby_chan_sel;
   unsigned int audio_src_chan_num;
   unsigned int capture_en;
#endif
};
#endif