ASoC: davinci-mcasp: Correct dai driver struct initialization for 2nd dai
[deliverable/linux.git] / sound / soc / davinci / davinci-mcasp.h
CommitLineData
b67f4487
C
1/*
2 * ALSA SoC McASP Audio Layer for TI DAVINCI processor
3 *
4 * MCASP related definitions
5 *
6 * Author: Nirmal Pandey <n-pandey@ti.com>,
7 * Suresh Rajashekara <suresh.r@ti.com>
8 * Steve Chen <schen@.mvista.com>
9 *
10 * Copyright: (C) 2009 MontaVista Software, Inc., <source@mvista.com>
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>
896f66b7
HG
22#include <linux/platform_data/davinci_asp.h>
23
b67f4487
C
24#include "davinci-pcm.h"
25
b67f4487 26struct davinci_audio_dev {
92e2a6f6 27 struct davinci_pcm_dma_params dma_params[2];
b67f4487 28 void __iomem *base;
10884347 29 struct device *dev;
b67f4487
C
30
31 /* McASP specific data */
32 int tdm_slots;
33 u8 op_mode;
34 u8 num_serializer;
35 u8 *serial_dir;
6a99fb5f 36 u8 version;
d486fea6 37 u16 bclk_lrclk_ratio;
6a99fb5f
C
38
39 /* McASP FIFO related */
40 u8 txnumevt;
41 u8 rxnumevt;
a85e419e
DM
42
43#ifdef CONFIG_PM_SLEEP
44 struct {
45 u32 txfmtctl;
46 u32 rxfmtctl;
47 u32 txfmt;
48 u32 rxfmt;
49 u32 aclkxctl;
50 u32 aclkrctl;
51 u32 pdir;
52 } context;
53#endif
b67f4487
C
54};
55
56#endif /* DAVINCI_MCASP_H */
This page took 0.192615 seconds and 5 git commands to generate.