blob: 042aa6f19f2483a319de7627f033e8bd79d1dfa5 [file] [log] [blame]
Bhalchandra Gajare0e795c42011-08-15 18:10:30 -07001/* Copyright (c) 2011, Code Aurora Forum. All rights reserved.
2 *
3 * This program is free software; you can redistribute it and/or modify
4 * it under the terms of the GNU General Public License version 2 and
5 * only version 2 as published by the Free Software Foundation.
6 *
7 * This program is distributed in the hope that it will be useful,
8 * but WITHOUT ANY WARRANTY; without even the implied warranty of
9 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
10 * GNU General Public License for more details.
11 */
12
13#ifndef __MSM_DAI_Q6_PDATA_H__
14
15#define __MSM_DAI_Q6_PDATA_H__
16
Kuirong Wang274f21a2011-12-15 21:29:08 -080017#define MSM_MI2S_SD0 (1 << 0)
18#define MSM_MI2S_SD1 (1 << 1)
19#define MSM_MI2S_SD2 (1 << 2)
20#define MSM_MI2S_SD3 (1 << 3)
21#define MSM_MI2S_CAP_RX 0
22#define MSM_MI2S_CAP_TX 1
23
Kuirong Wang547a9982012-05-04 18:29:11 -070024struct msm_dai_auxpcm_config {
Bhalchandra Gajare0e795c42011-08-15 18:10:30 -070025 u16 mode;
26 u16 sync;
27 u16 frame;
28 u16 quant;
29 u16 slot;
30 u16 data;
31 int pcm_clk_rate;
32};
33
Patrick Lai04baee942012-05-01 14:38:47 -070034struct msm_mi2s_pdata {
35 u16 rx_sd_lines;
36 u16 tx_sd_lines;
Kuirong Wang274f21a2011-12-15 21:29:08 -080037};
Kuirong Wang547a9982012-05-04 18:29:11 -070038
39struct msm_dai_auxpcm_pdata {
40 const char *clk;
41 struct msm_dai_auxpcm_config mode_8k;
42 struct msm_dai_auxpcm_config mode_16k;
43};
44
Bhalchandra Gajare0e795c42011-08-15 18:10:30 -070045#endif