forked from mirrors/linux
		
	 1b8a62937e
			
		
	
	
		1b8a62937e
		
			
		
	
	
	
	
		
			
			The TWL4030 is actually only ever populated from the device tree, so we can just pass the right device and headphone jack GPIO name to snd_soc_jack_add_gpios() and it will pick the right GPIO right from the device tree. The platform data patch is unused (no in-tree users of the pdata method) but these can use GPIO descriptor tables rather than global GPIO numbers if they need this. Signed-off-by: Linus Walleij <linus.walleij@linaro.org> Acked-by: Jarkko Nikula <jarkko.nikula@bitmer.com> Link: https://lore.kernel.org/r/20230926-descriptors-asoc-ti-v1-3-60cf4f8adbc5@linaro.org Signed-off-by: Mark Brown <broonie@kernel.org>
		
			
				
	
	
		
			42 lines
		
	
	
	
		
			990 B
		
	
	
	
		
			C
		
	
	
	
	
	
			
		
		
	
	
			42 lines
		
	
	
	
		
			990 B
		
	
	
	
		
			C
		
	
	
	
	
	
| /* SPDX-License-Identifier: GPL-2.0-only */
 | |
| /**
 | |
|  * omap-twl4030.h - ASoC machine driver for TI SoC based boards with twl4030
 | |
|  *		    codec, header.
 | |
|  *
 | |
|  * Copyright (C) 2012 Texas Instruments Incorporated - https://www.ti.com
 | |
|  * All rights reserved.
 | |
|  *
 | |
|  * Author: Peter Ujfalusi <peter.ujfalusi@ti.com>
 | |
|  */
 | |
| 
 | |
| #ifndef _OMAP_TWL4030_H_
 | |
| #define _OMAP_TWL4030_H_
 | |
| 
 | |
| /* To select if only one channel is connected in a stereo port */
 | |
| #define OMAP_TWL4030_LEFT	(1 << 0)
 | |
| #define OMAP_TWL4030_RIGHT	(1 << 1)
 | |
| 
 | |
| struct omap_tw4030_pdata {
 | |
| 	const char *card_name;
 | |
| 	/* Voice port is connected to McBSP3 */
 | |
| 	bool voice_connected;
 | |
| 
 | |
| 	/* The driver will parse the connection flags if this flag is set */
 | |
| 	bool	custom_routing;
 | |
| 	/* Flags to indicate connected audio ports. */
 | |
| 	u8	has_hs;
 | |
| 	u8	has_hf;
 | |
| 	u8	has_predriv;
 | |
| 	u8	has_carkit;
 | |
| 	bool	has_ear;
 | |
| 
 | |
| 	bool	has_mainmic;
 | |
| 	bool	has_submic;
 | |
| 	bool	has_hsmic;
 | |
| 	bool	has_carkitmic;
 | |
| 	bool	has_digimic0;
 | |
| 	bool	has_digimic1;
 | |
| 	u8	has_linein;
 | |
| };
 | |
| 
 | |
| #endif /* _OMAP_TWL4030_H_ */
 |