Skip to content

Commit f6cdf2d

Browse files
srebroonie
authored andcommitted
ASoC: cpcap: new codec
Motorola CPCAP is a PMIC with audio functionality, that can be found on Motorola Droid 4 and probably a few other phones from Motorola's Droid series. The driver has been written from scratch using Motorola's Android driver, register dumps from running Android and datasheet for NXP MC13783UG (which is similar to Motorola CPCAP, but not the same). The chip provides two audio interfaces, that can be muxed to two different audio codecs. One provides support for stereo output (named StDAC or HiFi), while the other only provides mono output (named Voice). Only the Voice codec provides a Capture interface. Signed-off-by: Sebastian Reichel <sebastian.reichel@collabora.co.uk> Acked-by: Tony Lindgren <tony@atomide.com> Signed-off-by: Mark Brown <broonie@kernel.org>
1 parent 7928b2c commit f6cdf2d

File tree

3 files changed

+1574
-0
lines changed

3 files changed

+1574
-0
lines changed

sound/soc/codecs/Kconfig

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -408,6 +408,10 @@ config SND_SOC_ALC5632
408408
config SND_SOC_BT_SCO
409409
tristate "Dummy BT SCO codec driver"
410410

411+
config SND_SOC_CPCAP
412+
tristate "Motorola CPCAP codec"
413+
depends on MFD_CPCAP
414+
411415
config SND_SOC_CQ0093VC
412416
tristate
413417

sound/soc/codecs/Makefile

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,7 @@ snd-soc-ak4671-objs := ak4671.o
3636
snd-soc-ak5386-objs := ak5386.o
3737
snd-soc-arizona-objs := arizona.o
3838
snd-soc-bt-sco-objs := bt-sco.o
39+
snd-soc-cpcap-objs := cpcap.o
3940
snd-soc-cq93vc-objs := cq93vc.o
4041
snd-soc-cs35l32-objs := cs35l32.o
4142
snd-soc-cs35l33-objs := cs35l33.o
@@ -282,6 +283,7 @@ obj-$(CONFIG_SND_SOC_ALC5632) += snd-soc-alc5632.o
282283
obj-$(CONFIG_SND_SOC_ARIZONA) += snd-soc-arizona.o
283284
obj-$(CONFIG_SND_SOC_BT_SCO) += snd-soc-bt-sco.o
284285
obj-$(CONFIG_SND_SOC_CQ0093VC) += snd-soc-cq93vc.o
286+
obj-$(CONFIG_SND_SOC_CPCAP) += snd-soc-cpcap.o
285287
obj-$(CONFIG_SND_SOC_CS35L32) += snd-soc-cs35l32.o
286288
obj-$(CONFIG_SND_SOC_CS35L33) += snd-soc-cs35l33.o
287289
obj-$(CONFIG_SND_SOC_CS35L34) += snd-soc-cs35l34.o

0 commit comments

Comments
 (0)