usb: r8a66597-hcd: fix removed from an attached hub
[linux-2.6/mini2440.git] / sound / soc / davinci / davinci-mcasp.h
blob9d179cc88f7b84a9614753c0af34aef28a16c74d
1 /*
2 * ALSA SoC McASP Audio Layer for TI DAVINCI processor
4 * MCASP related definitions
6 * Author: Nirmal Pandey <n-pandey@ti.com>,
7 * Suresh Rajashekara <suresh.r@ti.com>
8 * Steve Chen <schen@.mvista.com>
10 * Copyright: (C) 2009 MontaVista Software, Inc., <source@mvista.com>
11 * Copyright: (C) 2009 Texas Instruments, India
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.
18 #ifndef DAVINCI_MCASP_H
19 #define DAVINCI_MCASP_H
21 #include <linux/io.h>
22 #include <mach/asp.h>
23 #include "davinci-pcm.h"
25 extern struct snd_soc_dai davinci_mcasp_dai[];
27 #define DAVINCI_MCASP_RATES SNDRV_PCM_RATE_8000_96000
28 #define DAVINCI_MCASP_I2S_DAI 0
29 #define DAVINCI_MCASP_DIT_DAI 1
31 enum {
32 DAVINCI_AUDIO_WORD_8 = 0,
33 DAVINCI_AUDIO_WORD_12,
34 DAVINCI_AUDIO_WORD_16,
35 DAVINCI_AUDIO_WORD_20,
36 DAVINCI_AUDIO_WORD_24,
37 DAVINCI_AUDIO_WORD_32,
38 DAVINCI_AUDIO_WORD_28, /* This is only valid for McASP */
41 struct davinci_audio_dev {
43 * dma_params must be first because rtd->dai->cpu_dai->private_data
44 * is cast to a pointer of an array of struct davinci_pcm_dma_params in
45 * davinci_pcm_open.
47 struct davinci_pcm_dma_params dma_params[2];
48 void __iomem *base;
49 int sample_rate;
50 struct clk *clk;
51 unsigned int codec_fmt;
53 /* McASP specific data */
54 int tdm_slots;
55 u8 op_mode;
56 u8 num_serializer;
57 u8 *serial_dir;
58 u8 version;
60 /* McASP FIFO related */
61 u8 txnumevt;
62 u8 rxnumevt;
65 #endif /* DAVINCI_MCASP_H */