.. | .. |
---|
| 1 | +/* SPDX-License-Identifier: GPL-2.0-only */ |
---|
1 | 2 | /* |
---|
2 | 3 | * rt5670.h -- RT5670 ALSA SoC audio driver |
---|
3 | 4 | * |
---|
4 | 5 | * Copyright 2014 Realtek Microelectronics |
---|
5 | 6 | * Author: Bard Liao <bardliao@realtek.com> |
---|
6 | | - * |
---|
7 | | - * This program is free software; you can redistribute it and/or modify |
---|
8 | | - * it under the terms of the GNU General Public License version 2 as |
---|
9 | | - * published by the Free Software Foundation. |
---|
10 | 7 | */ |
---|
11 | 8 | |
---|
12 | 9 | #ifndef __RT5670_H__ |
---|
13 | 10 | #define __RT5670_H__ |
---|
14 | | - |
---|
15 | | -#include <sound/rt5670.h> |
---|
16 | 11 | |
---|
17 | 12 | /* Info */ |
---|
18 | 13 | #define RT5670_RESET 0x00 |
---|
.. | .. |
---|
1991 | 1986 | |
---|
1992 | 1987 | struct rt5670_priv { |
---|
1993 | 1988 | struct snd_soc_component *component; |
---|
1994 | | - struct rt5670_platform_data pdata; |
---|
1995 | 1989 | struct regmap *regmap; |
---|
1996 | 1990 | struct snd_soc_jack *jack; |
---|
1997 | 1991 | struct snd_soc_jack_gpio hp_gpio; |
---|
1998 | 1992 | |
---|
| 1993 | + int jd_mode; |
---|
| 1994 | + bool in2_diff; |
---|
| 1995 | + bool gpio1_is_irq; |
---|
| 1996 | + bool gpio1_is_ext_spk_en; |
---|
| 1997 | + |
---|
| 1998 | + bool dmic_en; |
---|
| 1999 | + unsigned int dmic1_data_pin; |
---|
| 2000 | + /* 0 = GPIO6; 1 = IN2P; 3 = GPIO7*/ |
---|
| 2001 | + unsigned int dmic2_data_pin; |
---|
| 2002 | + /* 0 = GPIO8; 1 = IN3N; */ |
---|
| 2003 | + unsigned int dmic3_data_pin; |
---|
| 2004 | + /* 0 = GPIO9; 1 = GPIO10; 2 = GPIO5*/ |
---|
| 2005 | + |
---|
1999 | 2006 | int sysclk; |
---|
2000 | 2007 | int sysclk_src; |
---|
2001 | 2008 | int lrck[RT5670_AIFS]; |
---|