blob: cae213af0118d82438c4ee66f48589b4d889fdef [file] [log] [blame]
Duy Truonge833aca2013-02-12 13:35:08 -08001/* Copyright (c) 2012, 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
23
24struct 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
38struct msm_i2s_data {
39 u32 capability; /* RX or TX */
40 u16 sd_lines;
41};
42#endif