Phani Kumar Uppalapati | 7c4612d | 2013-01-08 11:27:17 -0800 | [diff] [blame] | 1 | /* Copyright (c) 2012-2013, The Linux Foundation. All rights reserved. |
Bharath Ramachandramurthy | 4d99b50 | 2012-05-04 18:52:52 -0700 | [diff] [blame] | 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 | |
| 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 Kandi | 3648bde | 2012-11-16 09:49:01 -0800 | [diff] [blame] | 23 | |
Venkat Sudhir | 4bd983e | 2012-10-27 02:59:54 -0700 | [diff] [blame] | 24 | #define MSM_PRIM_MI2S 0 |
| 25 | #define MSM_SEC_MI2S 1 |
| 26 | #define MSM_TERT_MI2S 2 |
Kiran Kandi | 3648bde | 2012-11-16 09:49:01 -0800 | [diff] [blame] | 27 | #define MSM_QUAT_MI2S 3 |
Bharath Ramachandramurthy | 4d99b50 | 2012-05-04 18:52:52 -0700 | [diff] [blame] | 28 | |
Damir Didjusto | 04d3c36 | 2013-01-07 14:30:53 -0800 | [diff] [blame] | 29 | struct msm_dai_auxpcm_config { |
Bharath Ramachandramurthy | 4d99b50 | 2012-05-04 18:52:52 -0700 | [diff] [blame] | 30 | 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 Didjusto | 04d3c36 | 2013-01-07 14:30:53 -0800 | [diff] [blame] | 42 | struct msm_dai_auxpcm_pdata { |
Damir Didjusto | 04d3c36 | 2013-01-07 14:30:53 -0800 | [diff] [blame] | 43 | struct msm_dai_auxpcm_config mode_8k; |
| 44 | struct msm_dai_auxpcm_config mode_16k; |
| 45 | }; |
| 46 | |
Venkat Sudhir | 4bd983e | 2012-10-27 02:59:54 -0700 | [diff] [blame] | 47 | struct msm_mi2s_pdata { |
| 48 | u16 rx_sd_lines; |
| 49 | u16 tx_sd_lines; |
| 50 | }; |
| 51 | |
Bharath Ramachandramurthy | 4d99b50 | 2012-05-04 18:52:52 -0700 | [diff] [blame] | 52 | struct msm_i2s_data { |
| 53 | u32 capability; /* RX or TX */ |
| 54 | u16 sd_lines; |
| 55 | }; |
| 56 | #endif |