Home
last modified time | relevance | path

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

/linux-6.12.1/sound/soc/codecs/
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 …]
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 …]
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 …]
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()
Dcs35l45.h3 * cs35l45.h - CS35L45 ALSA SoC audio driver
17 #include <dt-bindings/sound/cs35l45.h>
509 int cs35l45_apply_patch(struct cs35l45_private *cs35l45);
511 int cs35l45_probe(struct cs35l45_private *cs35l45);
512 void cs35l45_remove(struct cs35l45_private *cs35l45);
DMakefile74 snd-soc-cs35l45-y := cs35l45.o cs35l45-tables.o
75 snd-soc-cs35l45-spi-y := cs35l45-spi.o
76 snd-soc-cs35l45-i2c-y := cs35l45-i2c.o
481 obj-$(CONFIG_SND_SOC_CS35L45) += snd-soc-cs35l45.o
482 obj-$(CONFIG_SND_SOC_CS35L45_SPI) += snd-soc-cs35l45-spi.o
483 obj-$(CONFIG_SND_SOC_CS35L45_I2C) += snd-soc-cs35l45-i2c.o
DKconfig806 tristate "Cirrus Logic CS35L45 CODEC (SPI)"
812 Enable support for Cirrus Logic CS35L45 smart speaker amplifier
816 tristate "Cirrus Logic CS35L45 CODEC (I2C)"
822 Enable support for Cirrus Logic CS35L45 smart speaker amplifier
/linux-6.12.1/Documentation/devicetree/bindings/sound/
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
133 #include <dt-bindings/sound/cs35l45.h>
138 cs35l45: cs35l45@2 {
140 compatible = "cirrus,cs35l45";
/linux-6.12.1/include/dt-bindings/sound/
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])
/linux-6.12.1/arch/arm64/boot/dts/qcom/
Dsm8550-sony-xperia-yodo-pdx234.dts12 #include <dt-bindings/sound/cs35l45.h>
560 compatible = "cirrus,cs35l45";
573 compatible = "cirrus,cs35l45";