Back to home page

OSCL-LXR

 
 

    


0001 /* SPDX-License-Identifier: GPL-2.0-only */
0002 /**
0003  * omap-twl4030.h - ASoC machine driver for TI SoC based boards with twl4030
0004  *          codec, header.
0005  *
0006  * Copyright (C) 2012 Texas Instruments Incorporated - https://www.ti.com
0007  * All rights reserved.
0008  *
0009  * Author: Peter Ujfalusi <peter.ujfalusi@ti.com>
0010  */
0011 
0012 #ifndef _OMAP_TWL4030_H_
0013 #define _OMAP_TWL4030_H_
0014 
0015 /* To select if only one channel is connected in a stereo port */
0016 #define OMAP_TWL4030_LEFT   (1 << 0)
0017 #define OMAP_TWL4030_RIGHT  (1 << 1)
0018 
0019 struct omap_tw4030_pdata {
0020     const char *card_name;
0021     /* Voice port is connected to McBSP3 */
0022     bool voice_connected;
0023 
0024     /* The driver will parse the connection flags if this flag is set */
0025     bool    custom_routing;
0026     /* Flags to indicate connected audio ports. */
0027     u8  has_hs;
0028     u8  has_hf;
0029     u8  has_predriv;
0030     u8  has_carkit;
0031     bool    has_ear;
0032 
0033     bool    has_mainmic;
0034     bool    has_submic;
0035     bool    has_hsmic;
0036     bool    has_carkitmic;
0037     bool    has_digimic0;
0038     bool    has_digimic1;
0039     u8  has_linein;
0040 
0041     /* Jack detect GPIO or  <= 0 if it is not implemented */
0042     int jack_detect;
0043 };
0044 
0045 #endif /* _OMAP_TWL4030_H_ */