Home
last modified time | relevance | path

Searched full:cs35l45 (Results 1 – 11 of 11) sorted by relevance

/openbmc/linux/sound/soc/codecs/
H A Dcs35l45.c3 // cs35l45.c - CS35L45 ALSA SoC audio driver
21 #include "cs35l45.h"
46 static int cs35l45_set_cspl_mbox_cmd(struct cs35l45_private *cs35l45, in cs35l45_set_cspl_mbox_cmd() argument
53 if (!cs35l45->dsp.cs_dsp.running) { in cs35l45_set_cspl_mbox_cmd()
54 dev_err(cs35l45->dev, "DSP not running\n"); in cs35l45_set_cspl_mbox_cmd()
62 dev_err(cs35l45->dev, "Failed to write MBOX: %d\n", ret); in cs35l45_set_cspl_mbox_cmd()
72 dev_err(cs35l45->dev, "Failed to read MBOX STS: %d\n", ret); in cs35l45_set_cspl_mbox_cmd()
77 dev_dbg(cs35l45->dev, "[%u] cmd %u returned invalid sts %u", i, cmd, sts); in cs35l45_set_cspl_mbox_cmd()
83 dev_err(cs35l45->dev, "Failed to set mailbox cmd %u (status %u)\n", cmd, sts); in cs35l45_set_cspl_mbox_cmd()
92 struct cs35l45_private *cs35l45 = snd_soc_component_get_drvdata(component); in cs35l45_global_en_ev() local
[all …]
H A Dcs35l45-i2c.c3 // cs35l45-i2c.c -- CS35L45 I2C driver
14 #include "cs35l45.h"
18 struct cs35l45_private *cs35l45; in cs35l45_i2c_probe() local
22 cs35l45 = devm_kzalloc(dev, sizeof(struct cs35l45_private), GFP_KERNEL); in cs35l45_i2c_probe()
23 if (!cs35l45) in cs35l45_i2c_probe()
26 i2c_set_clientdata(client, cs35l45); in cs35l45_i2c_probe()
27 cs35l45->regmap = devm_regmap_init_i2c(client, &cs35l45_i2c_regmap); in cs35l45_i2c_probe()
28 if (IS_ERR(cs35l45->regmap)) { in cs35l45_i2c_probe()
29 ret = PTR_ERR(cs35l45->regmap); in cs35l45_i2c_probe()
34 cs35l45->dev = dev; in cs35l45_i2c_probe()
[all …]
H A Dcs35l45-spi.c3 // cs35l45-spi.c -- CS35L45 SPI driver
14 #include "cs35l45.h"
18 struct cs35l45_private *cs35l45; in cs35l45_spi_probe() local
22 cs35l45 = devm_kzalloc(dev, sizeof(struct cs35l45_private), GFP_KERNEL); in cs35l45_spi_probe()
23 if (cs35l45 == NULL) in cs35l45_spi_probe()
29 spi_set_drvdata(spi, cs35l45); in cs35l45_spi_probe()
30 cs35l45->regmap = devm_regmap_init_spi(spi, &cs35l45_spi_regmap); in cs35l45_spi_probe()
31 if (IS_ERR(cs35l45->regmap)) { in cs35l45_spi_probe()
32 ret = PTR_ERR(cs35l45->regmap); in cs35l45_spi_probe()
37 cs35l45->dev = dev; in cs35l45_spi_probe()
[all …]
H A Dcs35l45.h3 * cs35l45.h - CS35L45 ALSA SoC audio driver
17 #include <dt-bindings/sound/cs35l45.h>
477 int cs35l45_apply_patch(struct cs35l45_private *cs35l45);
479 int cs35l45_probe(struct cs35l45_private *cs35l45);
480 void cs35l45_remove(struct cs35l45_private *cs35l45);
H A Dcs35l45-tables.c3 // cs35l45-tables.c -- CS35L45 ALSA SoC audio driver
12 #include "cs35l45.h"
36 int cs35l45_apply_patch(struct cs35l45_private *cs35l45) in cs35l45_apply_patch() argument
38 return regmap_register_patch(cs35l45->regmap, cs35l45_patch, in cs35l45_apply_patch()
H A DMakefile69 snd-soc-cs35l45-objs := cs35l45.o cs35l45-tables.o
70 snd-soc-cs35l45-spi-objs := cs35l45-spi.o
71 snd-soc-cs35l45-i2c-objs := cs35l45-i2c.o
455 obj-$(CONFIG_SND_SOC_CS35L45) += snd-soc-cs35l45.o
456 obj-$(CONFIG_SND_SOC_CS35L45_SPI) += snd-soc-cs35l45-spi.o
457 obj-$(CONFIG_SND_SOC_CS35L45_I2C) += snd-soc-cs35l45-i2c.o
H A DKconfig749 tristate "Cirrus Logic CS35L45 CODEC (SPI)"
755 Enable support for Cirrus Logic CS35L45 smart speaker amplifier
759 tristate "Cirrus Logic CS35L45 CODEC (I2C)"
765 Enable support for Cirrus Logic CS35L45 smart speaker amplifier
/openbmc/linux/Documentation/devicetree/bindings/sound/
H A Dcirrus,cs35l45.yaml4 $id: http://devicetree.org/schemas/sound/cirrus,cs35l45.yaml#
7 title: Cirrus Logic CS35L45 Speaker Amplifier
14 CS35L45 is a Boosted Mono Class D Amplifier with DSP
23 - cirrus,cs35l45
130 #include <dt-bindings/sound/cs35l45.h>
135 cs35l45: cs35l45@2 {
137 compatible = "cirrus,cs35l45";
/openbmc/linux/include/dt-bindings/sound/
H A Dcs35l45.h3 * cs35l45.h -- CS35L45 ALSA SoC audio driver DT bindings header
22 * The cs35l45 node can have up to three "cirrus,gpio-ctrlX" ('X' = [1,2,3])
/openbmc/linux/
H A Dopengrok0.0.log[all...]
H A Dopengrok1.0.log[all...]