![]() |
|
|||
0001 /* SPDX-License-Identifier: GPL-2.0-or-later */ 0002 /* 0003 * Driver for ADAU1361/ADAU1461/ADAU1761/ADAU1961/ADAU1381/ADAU1781 codecs 0004 * 0005 * Copyright 2011-2014 Analog Devices Inc. 0006 * Author: Lars-Peter Clausen <lars@metafoo.de> 0007 */ 0008 0009 #ifndef __LINUX_PLATFORM_DATA_ADAU17X1_H__ 0010 #define __LINUX_PLATFORM_DATA_ADAU17X1_H__ 0011 0012 /** 0013 * enum adau17x1_micbias_voltage - Microphone bias voltage 0014 * @ADAU17X1_MICBIAS_0_90_AVDD: 0.9 * AVDD 0015 * @ADAU17X1_MICBIAS_0_65_AVDD: 0.65 * AVDD 0016 */ 0017 enum adau17x1_micbias_voltage { 0018 ADAU17X1_MICBIAS_0_90_AVDD = 0, 0019 ADAU17X1_MICBIAS_0_65_AVDD = 1, 0020 }; 0021 0022 /** 0023 * enum adau1761_digmic_jackdet_pin_mode - Configuration of the JACKDET/MICIN pin 0024 * @ADAU1761_DIGMIC_JACKDET_PIN_MODE_NONE: Disable the pin 0025 * @ADAU1761_DIGMIC_JACKDET_PIN_MODE_DIGMIC: Configure the pin for usage as 0026 * digital microphone input. 0027 * @ADAU1761_DIGMIC_JACKDET_PIN_MODE_JACKDETECT: Configure the pin for jack 0028 * insertion detection. 0029 */ 0030 enum adau1761_digmic_jackdet_pin_mode { 0031 ADAU1761_DIGMIC_JACKDET_PIN_MODE_NONE, 0032 ADAU1761_DIGMIC_JACKDET_PIN_MODE_DIGMIC, 0033 ADAU1761_DIGMIC_JACKDET_PIN_MODE_JACKDETECT, 0034 }; 0035 0036 /** 0037 * adau1761_jackdetect_debounce_time - Jack insertion detection debounce time 0038 * @ADAU1761_JACKDETECT_DEBOUNCE_5MS: 5 milliseconds 0039 * @ADAU1761_JACKDETECT_DEBOUNCE_10MS: 10 milliseconds 0040 * @ADAU1761_JACKDETECT_DEBOUNCE_20MS: 20 milliseconds 0041 * @ADAU1761_JACKDETECT_DEBOUNCE_40MS: 40 milliseconds 0042 */ 0043 enum adau1761_jackdetect_debounce_time { 0044 ADAU1761_JACKDETECT_DEBOUNCE_5MS = 0, 0045 ADAU1761_JACKDETECT_DEBOUNCE_10MS = 1, 0046 ADAU1761_JACKDETECT_DEBOUNCE_20MS = 2, 0047 ADAU1761_JACKDETECT_DEBOUNCE_40MS = 3, 0048 }; 0049 0050 /** 0051 * enum adau1761_output_mode - Output mode configuration 0052 * @ADAU1761_OUTPUT_MODE_HEADPHONE: Headphone output 0053 * @ADAU1761_OUTPUT_MODE_HEADPHONE_CAPLESS: Capless headphone output 0054 * @ADAU1761_OUTPUT_MODE_LINE: Line output 0055 */ 0056 enum adau1761_output_mode { 0057 ADAU1761_OUTPUT_MODE_HEADPHONE, 0058 ADAU1761_OUTPUT_MODE_HEADPHONE_CAPLESS, 0059 ADAU1761_OUTPUT_MODE_LINE, 0060 }; 0061 0062 /** 0063 * struct adau1761_platform_data - ADAU1761 Codec driver platform data 0064 * @input_differential: If true the input pins will be configured in 0065 * differential mode. 0066 * @lineout_mode: Output mode for the LOUT/ROUT pins 0067 * @headphone_mode: Output mode for the LHP/RHP pins 0068 * @digmic_jackdetect_pin_mode: JACKDET/MICIN pin configuration 0069 * @jackdetect_debounce_time: Jack insertion detection debounce time. 0070 * Note: This value will only be used, if the JACKDET/MICIN pin is configured 0071 * for jack insertion detection. 0072 * @jackdetect_active_low: If true the jack insertion detection is active low. 0073 * Othwise it will be active high. 0074 * @micbias_voltage: Microphone voltage bias 0075 */ 0076 struct adau1761_platform_data { 0077 bool input_differential; 0078 enum adau1761_output_mode lineout_mode; 0079 enum adau1761_output_mode headphone_mode; 0080 0081 enum adau1761_digmic_jackdet_pin_mode digmic_jackdetect_pin_mode; 0082 0083 enum adau1761_jackdetect_debounce_time jackdetect_debounce_time; 0084 bool jackdetect_active_low; 0085 0086 enum adau17x1_micbias_voltage micbias_voltage; 0087 }; 0088 0089 /** 0090 * struct adau1781_platform_data - ADAU1781 Codec driver platform data 0091 * @left_input_differential: If true configure the left input as 0092 * differential input. 0093 * @right_input_differential: If true configure the right input as differntial 0094 * input. 0095 * @use_dmic: If true configure the MIC pins as digital microphone pins instead 0096 * of analog microphone pins. 0097 * @micbias_voltage: Microphone voltage bias 0098 */ 0099 struct adau1781_platform_data { 0100 bool left_input_differential; 0101 bool right_input_differential; 0102 0103 bool use_dmic; 0104 0105 enum adau17x1_micbias_voltage micbias_voltage; 0106 }; 0107 0108 #endif
[ Source navigation ] | [ Diff markup ] | [ Identifier search ] | [ general search ] |
This page was automatically generated by the 2.1.0 LXR engine. The LXR team |
![]() ![]() |