1 /* SPDX-License-Identifier: GPL-2.0-only */ << 2 /* 1 /* 3 * linux/sound/rt5665.h -- Platform data for R 2 * linux/sound/rt5665.h -- Platform data for RT5665 4 * 3 * 5 * Copyright 2016 Realtek Microelectronics 4 * Copyright 2016 Realtek Microelectronics >> 5 * >> 6 * This program is free software; you can redistribute it and/or modify >> 7 * it under the terms of the GNU General Public License version 2 as >> 8 * published by the Free Software Foundation. 6 */ 9 */ 7 10 8 #ifndef __LINUX_SND_RT5665_H 11 #ifndef __LINUX_SND_RT5665_H 9 #define __LINUX_SND_RT5665_H 12 #define __LINUX_SND_RT5665_H 10 13 11 enum rt5665_dmic1_data_pin { 14 enum rt5665_dmic1_data_pin { 12 RT5665_DMIC1_NULL, 15 RT5665_DMIC1_NULL, 13 RT5665_DMIC1_DATA_GPIO4, 16 RT5665_DMIC1_DATA_GPIO4, 14 RT5665_DMIC1_DATA_IN2N, 17 RT5665_DMIC1_DATA_IN2N, 15 }; 18 }; 16 19 17 enum rt5665_dmic2_data_pin { 20 enum rt5665_dmic2_data_pin { 18 RT5665_DMIC2_NULL, 21 RT5665_DMIC2_NULL, 19 RT5665_DMIC2_DATA_GPIO5, 22 RT5665_DMIC2_DATA_GPIO5, 20 RT5665_DMIC2_DATA_IN2P, 23 RT5665_DMIC2_DATA_IN2P, 21 }; 24 }; 22 25 23 enum rt5665_jd_src { 26 enum rt5665_jd_src { 24 RT5665_JD_NULL, 27 RT5665_JD_NULL, 25 RT5665_JD1, 28 RT5665_JD1, 26 }; 29 }; 27 30 28 struct rt5665_platform_data { 31 struct rt5665_platform_data { 29 bool in1_diff; 32 bool in1_diff; 30 bool in2_diff; 33 bool in2_diff; 31 bool in3_diff; 34 bool in3_diff; 32 bool in4_diff; 35 bool in4_diff; >> 36 >> 37 int ldo1_en; /* GPIO for LDO1_EN */ 33 38 34 enum rt5665_dmic1_data_pin dmic1_data_ 39 enum rt5665_dmic1_data_pin dmic1_data_pin; 35 enum rt5665_dmic2_data_pin dmic2_data_ 40 enum rt5665_dmic2_data_pin dmic2_data_pin; 36 enum rt5665_jd_src jd_src; 41 enum rt5665_jd_src jd_src; 37 42 38 unsigned int sar_hs_type; 43 unsigned int sar_hs_type; 39 }; 44 }; 40 45 41 #endif 46 #endif 42 47 43 48
Linux® is a registered trademark of Linus Torvalds in the United States and other countries.
TOMOYO® is a registered trademark of NTT DATA CORPORATION.