blob: e2f9399865653e912aedeb0c720ad5044d122285 [file] [log] [blame]
Phani Kumar Uppalapati7c4612d2013-01-08 11:27:17 -08001/* Copyright (c) 2012-2013, The Linux Foundation. All rights reserved.
Bharath Ramachandramurthy4d99b502012-05-04 18:52:52 -07002 *
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
17#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
Kiran Kandi3648bde2012-11-16 09:49:01 -080023
Venkat Sudhir4bd983e2012-10-27 02:59:54 -070024#define MSM_PRIM_MI2S 0
25#define MSM_SEC_MI2S 1
26#define MSM_TERT_MI2S 2
Kiran Kandi3648bde2012-11-16 09:49:01 -080027#define MSM_QUAT_MI2S 3
Bharath Ramachandramurthy4d99b502012-05-04 18:52:52 -070028
Damir Didjusto04d3c362013-01-07 14:30:53 -080029struct msm_dai_auxpcm_config {
Bharath Ramachandramurthy4d99b502012-05-04 18:52:52 -070030 u16 mode;
31 u16 sync;
32 u16 frame;
33 u16 quant;
34 /* modify slot to arr[4] to specify
35 * the slot number for each channel
36 * in multichannel scenario */
37 u16 slot;
38 u16 data;
39 int pcm_clk_rate;
40};
41
Damir Didjusto04d3c362013-01-07 14:30:53 -080042struct msm_dai_auxpcm_pdata {
Damir Didjusto04d3c362013-01-07 14:30:53 -080043 struct msm_dai_auxpcm_config mode_8k;
44 struct msm_dai_auxpcm_config mode_16k;
45};
46
Venkat Sudhir4bd983e2012-10-27 02:59:54 -070047struct msm_mi2s_pdata {
48 u16 rx_sd_lines;
49 u16 tx_sd_lines;
50};
51
Bharath Ramachandramurthy4d99b502012-05-04 18:52:52 -070052struct msm_i2s_data {
53 u32 capability; /* RX or TX */
54 u16 sd_lines;
55};
56#endif