2019-05-29 23:57:50 +00:00
|
|
|
/* SPDX-License-Identifier: GPL-2.0-only */
|
2012-08-14 09:07:56 +00:00
|
|
|
/**
|
|
|
|
* omap-twl4030.h - ASoC machine driver for TI SoC based boards with twl4030
|
|
|
|
* codec, header.
|
|
|
|
*
|
2020-08-12 01:34:19 +00:00
|
|
|
* Copyright (C) 2012 Texas Instruments Incorporated - https://www.ti.com
|
2012-08-14 09:07:56 +00:00
|
|
|
* All rights reserved.
|
|
|
|
*
|
|
|
|
* Author: Peter Ujfalusi <peter.ujfalusi@ti.com>
|
|
|
|
*/
|
|
|
|
|
|
|
|
#ifndef _OMAP_TWL4030_H_
|
|
|
|
#define _OMAP_TWL4030_H_
|
|
|
|
|
2012-12-06 14:35:25 +00:00
|
|
|
/* To select if only one channel is connected in a stereo port */
|
|
|
|
#define OMAP_TWL4030_LEFT (1 << 0)
|
|
|
|
#define OMAP_TWL4030_RIGHT (1 << 1)
|
|
|
|
|
2012-08-14 09:07:56 +00:00
|
|
|
struct omap_tw4030_pdata {
|
|
|
|
const char *card_name;
|
2012-12-06 14:35:25 +00:00
|
|
|
/* 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;
|
|
|
|
|
|
|
|
/* Jack detect GPIO or <= 0 if it is not implemented */
|
|
|
|
int jack_detect;
|
2012-08-14 09:07:56 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
#endif /* _OMAP_TWL4030_H_ */
|