• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 /**
2  * omap-abe-twl6040.h - ASoC machine driver OMAP4+ devices, header.
3  *
4  * Copyright (C) 2011 Texas Instruments Incorporated - http://www.ti.com
5  * All rights reserved.
6  *
7  * Author: Peter Ujfalusi <peter.ujfalusi@ti.com>
8  *
9  * This program is free software; you can redistribute it and/or
10  * modify it under the terms of the GNU General Public License
11  * version 2 as published by the Free Software Foundation.
12  *
13  * This program is distributed in the hope that it will be useful, but
14  * WITHOUT ANY WARRANTY; without even the implied warranty of
15  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
16  * General Public License for more details.
17  *
18  * You should have received a copy of the GNU General Public License
19  * along with this program; if not, write to the Free Software
20  * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
21  * 02110-1301 USA
22  */
23 
24 #ifndef _OMAP_ABE_TWL6040_H_
25 #define _OMAP_ABE_TWL6040_H_
26 
27 /* To select if only one channel is connected in a stereo port */
28 #define ABE_TWL6040_LEFT	(1 << 0)
29 #define ABE_TWL6040_RIGHT	(1 << 1)
30 
31 struct omap_abe_twl6040_data {
32 	char *card_name;
33 	/* Feature flags for connected audio pins */
34 	u8	has_hs;
35 	u8	has_hf;
36 	bool	has_ep;
37 	u8	has_aux;
38 	u8	has_vibra;
39 	bool	has_dmic;
40 	bool	has_hsmic;
41 	bool	has_mainmic;
42 	bool	has_submic;
43 	u8	has_afm;
44 	/* Other features */
45 	bool	jack_detection;	/* board can detect jack events */
46 	int	mclk_freq;	/* MCLK frequency speed for twl6040 */
47 };
48 
49 #endif /* _OMAP_ABE_TWL6040_H_ */
50