diff options
author | Oder Chiou <oder_chiou@realtek.com> | 2016-09-19 07:26:08 -0400 |
---|---|---|
committer | Mark Brown <broonie@kernel.org> | 2016-09-24 14:51:57 -0400 |
commit | 2b26dd4c1fc5f83bc088f4a053120ca03817045e (patch) | |
tree | e151059578dd4e444664e1eff31a5c48d1f496e0 /include/sound | |
parent | 29b4817d4018df78086157ea3a55c1d9424a7cfc (diff) |
ASoC: rt5660: add rt5660 codec driver
This is the initial codec driver for rt5660
Signed-off-by: Oder Chiou <oder_chiou@realtek.com>
Signed-off-by: Mark Brown <broonie@kernel.org>
Diffstat (limited to 'include/sound')
-rw-r--r-- | include/sound/rt5660.h | 31 |
1 files changed, 31 insertions, 0 deletions
diff --git a/include/sound/rt5660.h b/include/sound/rt5660.h new file mode 100644 index 000000000000..065f83a24db6 --- /dev/null +++ b/include/sound/rt5660.h | |||
@@ -0,0 +1,31 @@ | |||
1 | /* | ||
2 | * linux/sound/rt5660.h -- Platform data for RT5660 | ||
3 | * | ||
4 | * Copyright 2016 Realtek Semiconductor Corp. | ||
5 | * Author: Oder Chiou <oder_chiou@realtek.com> | ||
6 | * | ||
7 | * This program is free software; you can redistribute it and/or modify | ||
8 | * it under the terms of the GNU General Public License version 2 as | ||
9 | * published by the Free Software Foundation. | ||
10 | */ | ||
11 | |||
12 | #ifndef __LINUX_SND_RT5660_H | ||
13 | #define __LINUX_SND_RT5660_H | ||
14 | |||
15 | enum rt5660_dmic1_data_pin { | ||
16 | RT5660_DMIC1_NULL, | ||
17 | RT5660_DMIC1_DATA_GPIO2, | ||
18 | RT5660_DMIC1_DATA_IN1P, | ||
19 | }; | ||
20 | |||
21 | struct rt5660_platform_data { | ||
22 | /* IN1 & IN3 can optionally be differential */ | ||
23 | bool in1_diff; | ||
24 | bool in3_diff; | ||
25 | bool use_ldo2; | ||
26 | bool poweroff_codec_in_suspend; | ||
27 | |||
28 | enum rt5660_dmic1_data_pin dmic1_data_pin; | ||
29 | }; | ||
30 | |||
31 | #endif | ||