Peter Ujfalusi | fff8491 | 2012-08-14 12:07:56 +0300 | [diff] [blame] | 1 | /** |
| 2 | * omap-twl4030.h - ASoC machine driver for TI SoC based boards with twl4030 |
| 3 | * codec, header. |
| 4 | * |
| 5 | * Copyright (C) 2012 Texas Instruments Incorporated - http://www.ti.com |
| 6 | * All rights reserved. |
| 7 | * |
| 8 | * Author: Peter Ujfalusi <peter.ujfalusi@ti.com> |
| 9 | * |
| 10 | * This program is free software; you can redistribute it and/or |
| 11 | * modify it under the terms of the GNU General Public License |
| 12 | * version 2 as published by the Free Software Foundation. |
| 13 | * |
| 14 | * This program is distributed in the hope that it will be useful, but |
| 15 | * WITHOUT ANY WARRANTY; without even the implied warranty of |
| 16 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU |
| 17 | * General Public License for more details. |
| 18 | * |
| 19 | * You should have received a copy of the GNU General Public License |
| 20 | * along with this program; if not, write to the Free Software |
| 21 | * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA |
| 22 | * 02110-1301 USA |
| 23 | */ |
| 24 | |
| 25 | #ifndef _OMAP_TWL4030_H_ |
| 26 | #define _OMAP_TWL4030_H_ |
| 27 | |
Peter Ujfalusi | eb044c4 | 2012-12-06 15:35:25 +0100 | [diff] [blame] | 28 | /* To select if only one channel is connected in a stereo port */ |
| 29 | #define OMAP_TWL4030_LEFT (1 << 0) |
| 30 | #define OMAP_TWL4030_RIGHT (1 << 1) |
| 31 | |
Peter Ujfalusi | fff8491 | 2012-08-14 12:07:56 +0300 | [diff] [blame] | 32 | struct omap_tw4030_pdata { |
| 33 | const char *card_name; |
Peter Ujfalusi | eb044c4 | 2012-12-06 15:35:25 +0100 | [diff] [blame] | 34 | /* Voice port is connected to McBSP3 */ |
| 35 | bool voice_connected; |
| 36 | |
| 37 | /* The driver will parse the connection flags if this flag is set */ |
| 38 | bool custom_routing; |
| 39 | /* Flags to indicate connected audio ports. */ |
| 40 | u8 has_hs; |
| 41 | u8 has_hf; |
| 42 | u8 has_predriv; |
| 43 | u8 has_carkit; |
| 44 | bool has_ear; |
| 45 | |
| 46 | bool has_mainmic; |
| 47 | bool has_submic; |
| 48 | bool has_hsmic; |
| 49 | bool has_carkitmic; |
| 50 | bool has_digimic0; |
| 51 | bool has_digimic1; |
| 52 | u8 has_linein; |
| 53 | |
| 54 | /* Jack detect GPIO or <= 0 if it is not implemented */ |
| 55 | int jack_detect; |
Peter Ujfalusi | fff8491 | 2012-08-14 12:07:56 +0300 | [diff] [blame] | 56 | }; |
| 57 | |
| 58 | #endif /* _OMAP_TWL4030_H_ */ |