mirror of
https://mirrors.bfsu.edu.cn/git/linux.git
synced 2024-11-30 15:44:13 +08:00
ed11701751
Convert the RT5682 to use GPIO descriptors and drop the legacy GPIO headers. We remove the global GPIO number from the platform data, but it is still possible to create board files using GPIO descriptor tables, if desired. Make sure to make sure SDW devices can associate with an LDO1 EN descriptor too, if they so desire by putting the lookup into the common code. Signed-off-by: Linus Walleij <linus.walleij@linaro.org> Link: https://lore.kernel.org/r/20230817-descriptors-asoc-rt-v2-4-02fa2ca3e5b0@linaro.org Signed-off-by: Mark Brown <broonie@kernel.org>
47 lines
862 B
C
47 lines
862 B
C
/* SPDX-License-Identifier: GPL-2.0-only */
|
|
/*
|
|
* linux/sound/rt5682.h -- Platform data for RT5682
|
|
*
|
|
* Copyright 2018 Realtek Microelectronics
|
|
*/
|
|
|
|
#ifndef __LINUX_SND_RT5682_H
|
|
#define __LINUX_SND_RT5682_H
|
|
|
|
enum rt5682_dmic1_data_pin {
|
|
RT5682_DMIC1_NULL,
|
|
RT5682_DMIC1_DATA_GPIO2,
|
|
RT5682_DMIC1_DATA_GPIO5,
|
|
};
|
|
|
|
enum rt5682_dmic1_clk_pin {
|
|
RT5682_DMIC1_CLK_GPIO1,
|
|
RT5682_DMIC1_CLK_GPIO3,
|
|
};
|
|
|
|
enum rt5682_jd_src {
|
|
RT5682_JD_NULL,
|
|
RT5682_JD1,
|
|
};
|
|
|
|
enum rt5682_dai_clks {
|
|
RT5682_DAI_WCLK_IDX,
|
|
RT5682_DAI_BCLK_IDX,
|
|
RT5682_DAI_NUM_CLKS,
|
|
};
|
|
|
|
struct rt5682_platform_data {
|
|
enum rt5682_dmic1_data_pin dmic1_data_pin;
|
|
enum rt5682_dmic1_clk_pin dmic1_clk_pin;
|
|
enum rt5682_jd_src jd_src;
|
|
unsigned int btndet_delay;
|
|
unsigned int dmic_clk_rate;
|
|
unsigned int dmic_delay;
|
|
bool dmic_clk_driving_high;
|
|
|
|
const char *dai_clk_names[RT5682_DAI_NUM_CLKS];
|
|
};
|
|
|
|
#endif
|
|
|