Home
last modified time | relevance | path

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

/Linux-v6.1/sound/soc/codecs/
Dcs35l45.c3 // cs35l45.c - CS35L45 ALSA SoC audio driver
20 #include "cs35l45.h"
26 struct cs35l45_private *cs35l45 = snd_soc_component_get_drvdata(component); in cs35l45_global_en_ev() local
28 dev_dbg(cs35l45->dev, "%s event : %x\n", __func__, event); in cs35l45_global_en_ev()
32 regmap_write(cs35l45->regmap, CS35L45_GLOBAL_ENABLES, in cs35l45_global_en_ev()
40 regmap_write(cs35l45->regmap, CS35L45_GLOBAL_ENABLES, 0); in cs35l45_global_en_ev()
224 static int cs35l45_set_pll(struct cs35l45_private *cs35l45, unsigned int freq) in cs35l45_set_pll() argument
231 dev_err(cs35l45->dev, "Invalid freq: %u\n", freq); in cs35l45_set_pll()
235 regmap_read(cs35l45->regmap, CS35L45_REFCLK_INPUT, &val); in cs35l45_set_pll()
240 regmap_set_bits(cs35l45->regmap, CS35L45_REFCLK_INPUT, CS35L45_PLL_OPEN_LOOP_MASK); in cs35l45_set_pll()
[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()
26 spi_set_drvdata(spi, cs35l45); in cs35l45_spi_probe()
27 cs35l45->regmap = devm_regmap_init_spi(spi, &cs35l45_spi_regmap); in cs35l45_spi_probe()
28 if (IS_ERR(cs35l45->regmap)) { in cs35l45_spi_probe()
29 ret = PTR_ERR(cs35l45->regmap); in cs35l45_spi_probe()
34 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()
200 MODULE_DESCRIPTION("ASoC CS35L45 driver tables");
Dcs35l45.h3 * cs35l45.h - CS35L45 ALSA SoC audio driver
212 int cs35l45_apply_patch(struct cs35l45_private *cs35l45);
214 int cs35l45_probe(struct cs35l45_private *cs35l45);
215 void cs35l45_remove(struct cs35l45_private *cs35l45);
DMakefile63 snd-soc-cs35l45-tables-objs := cs35l45-tables.o
64 snd-soc-cs35l45-objs := cs35l45.o
65 snd-soc-cs35l45-spi-objs := cs35l45-spi.o
66 snd-soc-cs35l45-i2c-objs := cs35l45-i2c.o
423 obj-$(CONFIG_SND_SOC_CS35L45_TABLES) += snd-soc-cs35l45-tables.o
424 obj-$(CONFIG_SND_SOC_CS35L45) += snd-soc-cs35l45.o
425 obj-$(CONFIG_SND_SOC_CS35L45_SPI) += snd-soc-cs35l45-spi.o
426 obj-$(CONFIG_SND_SOC_CS35L45_I2C) += snd-soc-cs35l45-i2c.o
DKconfig674 tristate "Cirrus Logic CS35L45 CODEC (SPI)"
681 Enable support for Cirrus Logic CS35L45 smart speaker amplifier
685 tristate "Cirrus Logic CS35L45 CODEC (I2C)"
692 Enable support for Cirrus Logic CS35L45 smart speaker amplifier
/Linux-v6.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
20 - cirrus,cs35l45
59 #include <dt-bindings/sound/cs35l45.h>
64 cs35l45: cs35l45@2 {
66 compatible = "cirrus,cs35l45";
/Linux-v6.1/include/dt-bindings/sound/
Dcs35l45.h3 * cs35l45.h -- CS35L45 ALSA SoC audio driver DT bindings header