File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1+ /*
2+ * linux/sound/cs35l34.h -- Platform data for CS35l34
3+ *
4+ * Copyright (c) 2016 Cirrus Logic Inc.
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+ */
10+
11+ #ifndef __CS35L34_H
12+ #define __CS35L34_H
13+
14+ struct cs35l34_platform_data {
15+ /* Set AIF to half drive strength */
16+ bool aif_half_drv ;
17+ /* Digital Soft Ramp Disable */
18+ bool digsft_disable ;
19+ /* Amplifier Invert */
20+ bool amp_inv ;
21+ /* Peak current (mA) */
22+ unsigned int boost_peak ;
23+ /* Boost inductor value (nH) */
24+ unsigned int boost_ind ;
25+ /* Boost Controller Voltage Setting (mV) */
26+ unsigned int boost_vtge ;
27+ /* Gain Change Zero Cross */
28+ bool gain_zc_disable ;
29+ /* SDIN Left/Right Selection */
30+ unsigned int i2s_sdinloc ;
31+ /* TDM Rising Edge */
32+ bool tdm_rising_edge ;
33+ };
34+
35+ #endif /* __CS35L34_H */
Original file line number Diff line number Diff line change @@ -48,6 +48,7 @@ config SND_SOC_ALL_CODECS
4848 select SND_SOC_CQ0093VC if MFD_DAVINCI_VOICECODEC
4949 select SND_SOC_CS35L32 if I2C
5050 select SND_SOC_CS35L33 if I2C
51+ select SND_SOC_CS35L34 if I2C
5152 select SND_SOC_CS42L51_I2C if I2C
5253 select SND_SOC_CS42L52 if I2C && INPUT
5354 select SND_SOC_CS42L56 if I2C && INPUT
@@ -399,6 +400,10 @@ config SND_SOC_CS35L33
399400 tristate "Cirrus Logic CS35L33 CODEC"
400401 depends on I2C
401402
403+ config SND_SOC_CS35L34
404+ tristate "Cirrus Logic CS35L34 CODEC"
405+ depends on I2C
406+
402407config SND_SOC_CS42L51
403408 tristate
404409
Original file line number Diff line number Diff line change @@ -38,6 +38,7 @@ snd-soc-bt-sco-objs := bt-sco.o
3838snd-soc-cq93vc-objs := cq93vc.o
3939snd-soc-cs35l32-objs := cs35l32.o
4040snd-soc-cs35l33-objs := cs35l33.o
41+ snd-soc-cs35l34-objs := cs35l34.o
4142snd-soc-cs42l51-objs := cs42l51.o
4243snd-soc-cs42l51-i2c-objs := cs42l51-i2c.o
4344snd-soc-cs42l52-objs := cs42l52.o
@@ -263,6 +264,7 @@ obj-$(CONFIG_SND_SOC_BT_SCO) += snd-soc-bt-sco.o
263264obj-$(CONFIG_SND_SOC_CQ0093VC) += snd-soc-cq93vc.o
264265obj-$(CONFIG_SND_SOC_CS35L32) += snd-soc-cs35l32.o
265266obj-$(CONFIG_SND_SOC_CS35L33) += snd-soc-cs35l33.o
267+ obj-$(CONFIG_SND_SOC_CS35L34) += snd-soc-cs35l34.o
266268obj-$(CONFIG_SND_SOC_CS42L51) += snd-soc-cs42l51.o
267269obj-$(CONFIG_SND_SOC_CS42L51_I2C) += snd-soc-cs42l51-i2c.o
268270obj-$(CONFIG_SND_SOC_CS42L52) += snd-soc-cs42l52.o
You can’t perform that action at this time.
0 commit comments