1 /* SPDX-License-Identifier: GPL-2.0-only */
3 * linux/sound/rt5665.h -- Platform data for RT5665
5 * Copyright 2016 Realtek Microelectronics
8 #ifndef __LINUX_SND_RT5665_H
9 #define __LINUX_SND_RT5665_H
11 enum rt5665_dmic1_data_pin
{
13 RT5665_DMIC1_DATA_GPIO4
,
14 RT5665_DMIC1_DATA_IN2N
,
17 enum rt5665_dmic2_data_pin
{
19 RT5665_DMIC2_DATA_GPIO5
,
20 RT5665_DMIC2_DATA_IN2P
,
28 struct rt5665_platform_data
{
34 int ldo1_en
; /* GPIO for LDO1_EN */
36 enum rt5665_dmic1_data_pin dmic1_data_pin
;
37 enum rt5665_dmic2_data_pin dmic2_data_pin
;
38 enum rt5665_jd_src jd_src
;
40 unsigned int sar_hs_type
;