Bhalchandra Gajare | 0e795c4 | 2011-08-15 18:10:30 -0700 | [diff] [blame] | 1 | /* 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 Wang | 274f21a | 2011-12-15 21:29:08 -0800 | [diff] [blame] | 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 | |
Kuirong Wang | 547a998 | 2012-05-04 18:29:11 -0700 | [diff] [blame] | 24 | struct msm_dai_auxpcm_config { |
Bhalchandra Gajare | 0e795c4 | 2011-08-15 18:10:30 -0700 | [diff] [blame] | 25 | 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 Lai | 04baee94 | 2012-05-01 14:38:47 -0700 | [diff] [blame] | 34 | struct msm_mi2s_pdata { |
| 35 | u16 rx_sd_lines; |
| 36 | u16 tx_sd_lines; |
Kuirong Wang | 274f21a | 2011-12-15 21:29:08 -0800 | [diff] [blame] | 37 | }; |
Kuirong Wang | 547a998 | 2012-05-04 18:29:11 -0700 | [diff] [blame] | 38 | |
| 39 | struct 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 Gajare | 0e795c4 | 2011-08-15 18:10:30 -0700 | [diff] [blame] | 45 | #endif |