Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
davinci-mcasp.h
Go to the documentation of this file.
1 /*
2  * ALSA SoC McASP Audio Layer for TI DAVINCI processor
3  *
4  * MCASP related definitions
5  *
6  * Author: Nirmal Pandey <[email protected]>,
7  * Suresh Rajashekara <[email protected]>
8  * Steve Chen <[email protected]>
9  *
10  * Copyright: (C) 2009 MontaVista Software, Inc., <[email protected]>
11  * Copyright: (C) 2009 Texas Instruments, India
12  *
13  * This program is free software; you can redistribute it and/or modify
14  * it under the terms of the GNU General Public License version 2 as
15  * published by the Free Software Foundation.
16  */
17 
18 #ifndef DAVINCI_MCASP_H
19 #define DAVINCI_MCASP_H
20 
21 #include <linux/io.h>
23 
24 #include "davinci-pcm.h"
25 
26 #define DAVINCI_MCASP_RATES SNDRV_PCM_RATE_8000_96000
27 #define DAVINCI_MCASP_I2S_DAI 0
28 #define DAVINCI_MCASP_DIT_DAI 1
29 
30 enum {
37  DAVINCI_AUDIO_WORD_28, /* This is only valid for McASP */
38 };
39 
42  void __iomem *base;
44  struct device *dev;
45  unsigned int codec_fmt;
46 
47  /* McASP specific data */
48  int tdm_slots;
53 
54  /* McASP FIFO related */
57 };
58 
59 #endif /* DAVINCI_MCASP_H */