forked from ~ljy/RK356X_SDK_RELEASE

hc
2024-01-31 f70575805708cabdedea7498aaa3f710fde4d920
kernel/sound/soc/codecs/rt5670.h
....@@ -1,18 +1,13 @@
1
+/* SPDX-License-Identifier: GPL-2.0-only */
12 /*
23 * rt5670.h -- RT5670 ALSA SoC audio driver
34 *
45 * Copyright 2014 Realtek Microelectronics
56 * 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.
107 */
118
129 #ifndef __RT5670_H__
1310 #define __RT5670_H__
14
-
15
-#include <sound/rt5670.h>
1611
1712 /* Info */
1813 #define RT5670_RESET 0x00
....@@ -1991,11 +1986,23 @@
19911986
19921987 struct rt5670_priv {
19931988 struct snd_soc_component *component;
1994
- struct rt5670_platform_data pdata;
19951989 struct regmap *regmap;
19961990 struct snd_soc_jack *jack;
19971991 struct snd_soc_jack_gpio hp_gpio;
19981992
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
+
19992006 int sysclk;
20002007 int sysclk_src;
20012008 int lrck[RT5670_AIFS];