| .. | .. |
|---|
| 1 | +/* SPDX-License-Identifier: GPL-2.0-only */ |
|---|
| 1 | 2 | /* |
|---|
| 2 | 3 | * linux/sound/rt5682.h -- Platform data for RT5682 |
|---|
| 3 | 4 | * |
|---|
| 4 | 5 | * Copyright 2018 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. |
|---|
| 9 | 6 | */ |
|---|
| 10 | 7 | |
|---|
| 11 | 8 | #ifndef __LINUX_SND_RT5682_H |
|---|
| .. | .. |
|---|
| 27 | 24 | RT5682_JD1, |
|---|
| 28 | 25 | }; |
|---|
| 29 | 26 | |
|---|
| 27 | +enum rt5682_dai_clks { |
|---|
| 28 | + RT5682_DAI_WCLK_IDX, |
|---|
| 29 | + RT5682_DAI_BCLK_IDX, |
|---|
| 30 | + RT5682_DAI_NUM_CLKS, |
|---|
| 31 | +}; |
|---|
| 32 | + |
|---|
| 30 | 33 | struct rt5682_platform_data { |
|---|
| 31 | 34 | |
|---|
| 32 | 35 | int ldo1_en; /* GPIO for LDO1_EN */ |
|---|
| .. | .. |
|---|
| 34 | 37 | enum rt5682_dmic1_data_pin dmic1_data_pin; |
|---|
| 35 | 38 | enum rt5682_dmic1_clk_pin dmic1_clk_pin; |
|---|
| 36 | 39 | enum rt5682_jd_src jd_src; |
|---|
| 40 | + unsigned int btndet_delay; |
|---|
| 41 | + unsigned int dmic_clk_rate; |
|---|
| 42 | + unsigned int dmic_delay; |
|---|
| 43 | + |
|---|
| 44 | + const char *dai_clk_names[RT5682_DAI_NUM_CLKS]; |
|---|
| 37 | 45 | }; |
|---|
| 38 | 46 | |
|---|
| 39 | 47 | #endif |
|---|