Skip to content

Commit c1124c0

Browse files
Paul Handriganbroonie
authored andcommitted
ASoC: cs35l34: Initial commit of the cs35l34 CODEC driver.
Initial commit of the Cirrus Logic cs35l34 8V boosted class D amplifier. Signed-off-by: Paul Handrigan <Paul.Handrigan@cirrus.com> Signed-off-by: Mark Brown <broonie@kernel.org>
1 parent e58dfab commit c1124c0

5 files changed

Lines changed: 1563 additions & 0 deletions

File tree

‎include/sound/cs35l34.h‎

Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
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 */

‎sound/soc/codecs/Kconfig‎

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff 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+
402407
config SND_SOC_CS42L51
403408
tristate
404409

‎sound/soc/codecs/Makefile‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,7 @@ snd-soc-bt-sco-objs := bt-sco.o
3838
snd-soc-cq93vc-objs := cq93vc.o
3939
snd-soc-cs35l32-objs := cs35l32.o
4040
snd-soc-cs35l33-objs := cs35l33.o
41+
snd-soc-cs35l34-objs := cs35l34.o
4142
snd-soc-cs42l51-objs := cs42l51.o
4243
snd-soc-cs42l51-i2c-objs := cs42l51-i2c.o
4344
snd-soc-cs42l52-objs := cs42l52.o
@@ -263,6 +264,7 @@ obj-$(CONFIG_SND_SOC_BT_SCO) += snd-soc-bt-sco.o
263264
obj-$(CONFIG_SND_SOC_CQ0093VC) += snd-soc-cq93vc.o
264265
obj-$(CONFIG_SND_SOC_CS35L32) += snd-soc-cs35l32.o
265266
obj-$(CONFIG_SND_SOC_CS35L33) += snd-soc-cs35l33.o
267+
obj-$(CONFIG_SND_SOC_CS35L34) += snd-soc-cs35l34.o
266268
obj-$(CONFIG_SND_SOC_CS42L51) += snd-soc-cs42l51.o
267269
obj-$(CONFIG_SND_SOC_CS42L51_I2C) += snd-soc-cs42l51-i2c.o
268270
obj-$(CONFIG_SND_SOC_CS42L52) += snd-soc-cs42l52.o

0 commit comments

Comments
 (0)