Bharath Ramachandramurthy | 4d99b50 | 2012-05-04 18:52:52 -0700 | [diff] [blame^] | 1 | /* Copyright (c) 2012, 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 | |
| 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 |
| 23 | |
| 24 | struct msm_dai_auxpcm_pdata { |
| 25 | const char *clk; |
| 26 | u16 mode; |
| 27 | u16 sync; |
| 28 | u16 frame; |
| 29 | u16 quant; |
| 30 | /* modify slot to arr[4] to specify |
| 31 | * the slot number for each channel |
| 32 | * in multichannel scenario */ |
| 33 | u16 slot; |
| 34 | u16 data; |
| 35 | int pcm_clk_rate; |
| 36 | }; |
| 37 | |
| 38 | struct msm_i2s_data { |
| 39 | u32 capability; /* RX or TX */ |
| 40 | u16 sd_lines; |
| 41 | }; |
| 42 | #endif |