Home
last modified time | relevance | path

Searched full:cs42l42 (Results 1 – 25 of 25) sorted by relevance

/openbmc/linux/sound/soc/codecs/
H A Dcs42l42-sdw.c2 // cs42l42-sdw.c -- CS42L42 ALSA SoC audio driver SoundWire driver
23 #include "cs42l42.h"
55 struct cs42l42_private *cs42l42 = snd_soc_component_get_drvdata(dai->component); in cs42l42_sdw_dai_startup() local
57 if (!cs42l42->init_done) in cs42l42_sdw_dai_startup()
67 struct cs42l42_private *cs42l42 = snd_soc_component_get_drvdata(dai->component); in cs42l42_sdw_dai_hw_params() local
77 cs42l42->sample_rate = params_rate(params); in cs42l42_sdw_dai_hw_params()
86 ret = sdw_stream_add_slave(cs42l42->sdw_peripheral, &stream_config, &port_config, 1, in cs42l42_sdw_dai_hw_params()
101 struct cs42l42_private *cs42l42 = snd_soc_component_get_drvdata(dai->component); in cs42l42_sdw_dai_prepare() local
103 dev_dbg(dai->dev, "dai_prepare: sclk=%u rate=%u\n", cs42l42->sclk, cs42l42->sample_rate); in cs42l42_sdw_dai_prepare()
105 if (!cs42l42->sclk || !cs42l42->sample_rate) in cs42l42_sdw_dai_prepare()
[all …]
H A Dcs42l42.c3 * cs42l42.c -- CS42L42 ALSA SoC audio driver
35 #include <dt-bindings/sound/cs42l42.h>
37 #include "cs42l42.h"
483 struct cs42l42_private *cs42l42 = snd_soc_component_get_drvdata(component); in cs42l42_hp_adc_ev() local
487 cs42l42->hp_adc_up_pending = true; in cs42l42_hp_adc_ev()
491 if (cs42l42->hp_adc_up_pending) { in cs42l42_hp_adc_ev()
494 cs42l42->hp_adc_up_pending = false; in cs42l42_hp_adc_ev()
568 struct cs42l42_private *cs42l42 = snd_soc_component_get_drvdata(component); in cs42l42_set_jack() local
571 mutex_lock(&cs42l42->irq_lock); in cs42l42_set_jack()
572 cs42l42->jack = jk; in cs42l42_set_jack()
[all …]
H A Dcs42l42-i2c.c3 * cs42l42-i2c.c -- CS42L42 ALSA SoC audio driver for I2C
14 #include "cs42l42.h"
19 struct cs42l42_private *cs42l42; in cs42l42_i2c_probe() local
23 cs42l42 = devm_kzalloc(dev, sizeof(*cs42l42), GFP_KERNEL); in cs42l42_i2c_probe()
24 if (!cs42l42) in cs42l42_i2c_probe()
32 cs42l42->devid = CS42L42_CHIP_ID; in cs42l42_i2c_probe()
33 cs42l42->dev = dev; in cs42l42_i2c_probe()
34 cs42l42->regmap = regmap; in cs42l42_i2c_probe()
35 cs42l42->irq = i2c_client->irq; in cs42l42_i2c_probe()
37 ret = cs42l42_common_probe(cs42l42, &cs42l42_soc_component, &cs42l42_dai); in cs42l42_i2c_probe()
[all …]
H A Dcs42l42.h3 * cs42l42.h -- CS42L42 ALSA SoC audio driver header
15 #include <dt-bindings/sound/cs42l42.h>
23 #include <sound/cs42l42.h>
76 int cs42l42_common_probe(struct cs42l42_private *cs42l42,
79 int cs42l42_init(struct cs42l42_private *cs42l42);
80 void cs42l42_common_remove(struct cs42l42_private *cs42l42);
H A Dcs42l83-i2c.c5 * Based on cs42l42-i2c.c:
15 #include "cs42l42.h"
20 { CS42L42_MCLK_CTL, 0x00 }, /* <- only deviation from CS42L42 */
145 * This is all the same as for CS42L42 but we
H A DMakefile77 snd-soc-cs42l42-objs := cs42l42.o
78 snd-soc-cs42l42-i2c-objs := cs42l42-i2c.o
79 snd-soc-cs42l42-sdw-objs := cs42l42-sdw.o
463 obj-$(CONFIG_SND_SOC_CS42L42_CORE) += snd-soc-cs42l42.o
464 obj-$(CONFIG_SND_SOC_CS42L42) += snd-soc-cs42l42-i2c.o
465 obj-$(CONFIG_SND_SOC_CS42L42_SDW) += snd-soc-cs42l42-sdw.o
H A DKconfig807 tristate "Cirrus Logic CS42L42 CODEC (I2C)"
814 tristate "Cirrus Logic CS42L42 CODEC on Soundwire"
818 Enable support for Cirrus Logic CS42L42 codec with Soundwire control
/openbmc/linux/sound/pci/hda/
H A Dpatch_cs8409.c456 * CS42L42 Specific Functions
488 struct sub_codec *cs42l42 = spec->scodecs[get_amp_index(kctrl)]; in cs42l42_volume_get() local
496 *valp++ = cs42l42->vol[ofs]; in cs42l42_volume_get()
498 *valp = cs42l42->vol[ofs+1]; in cs42l42_volume_get()
502 *valp = cs42l42->vol[ofs]; in cs42l42_volume_get()
511 static void cs42l42_mute(struct sub_codec *cs42l42, int vol_type, in cs42l42_mute() argument
517 cs8409_i2c_write(cs42l42, CS42L42_MIXER_CHA_VOL, 0x3f); in cs42l42_mute()
519 cs8409_i2c_write(cs42l42, CS42L42_MIXER_CHB_VOL, 0x3f); in cs42l42_mute()
522 cs8409_i2c_write(cs42l42, CS42L42_ADC_VOLUME, 0x9f); in cs42l42_mute()
527 cs8409_i2c_write(cs42l42, CS42L42_MIXER_CHA_VOL, in cs42l42_mute()
[all …]
H A Dpatch_cs8409-tables.c14 * CS42L42 Specific Data
58 * CS8409/CS42L42
86 /* Vendor specific HW configuration for CS42L42 */
269 * CS8409/ 2 X CS42L42
289 /* Vendor specific HW configuration for CS42L42 */
560 /* Dell Inspiron models with cs8409/cs42l42 */
H A Dpatch_cs8409.h15 #include <sound/cs42l42.h>
218 /* CS42L42 Specific Definitions */
/openbmc/linux/Documentation/devicetree/bindings/sound/
H A Dcirrus,cs42l42.yaml4 $id: http://devicetree.org/schemas/sound/cirrus,cs42l42.yaml#
7 title: Cirrus Logic CS42L42 audio CODEC
13 The CS42L42 is a low-power audio codec designed for portable applications.
21 - cirrus,cs42l42
26 The I2C address of the CS42L42.
52 CS42L42 before communication starts.
57 Interrupt for CS42L42 IRQ line.
200 #include <dt-bindings/sound/cs42l42.h>
205 cs42l42: cs42l42@48 {
206 compatible = "cirrus,cs42l42";
/openbmc/linux/sound/soc/intel/boards/
H A Dsof_sdw_cs42l42.c5 * sof_sdw_cs42l42 - Helpers to handle CS42L42 from generic machine driver
27 {"Headphone", NULL, "cs42l42 HP"},
30 {"cs42l42 HS", NULL, "Headset Mic"},
59 "%s hs:cs42l42", in cs42l42_rtd_init()
67 dev_err(card->dev, "cs42l42 control addition failed: %d\n", ret); in cs42l42_rtd_init()
74 dev_err(card->dev, "cs42l42 widgets addition failed: %d\n", ret); in cs42l42_rtd_init()
82 dev_err(card->dev, "cs42l42 map addition failed: %d\n", ret); in cs42l42_rtd_init()
H A Dsof_cs42l42.c5 * Intel SOF Machine Driver with Cirrus Logic CS42L42 Codec
21 #include <dt-bindings/sound/cs42l42.h>
271 /* sof audio machine driver for cs42l42 codec */
273 .name = "cs42l42", /* the sof- prefix is added by the core */
288 .dai_name = "cs42l42",
725 MODULE_DESCRIPTION("SOF Audio Machine driver for CS42L42");
H A Dsof_sdw_common.h202 /* CS42L42 support */
H A DKconfig503 tristate "SOF with cs42l42 codec in I2S Mode"
515 with cs42l42 codec.
H A Dsof_sdw.c981 .dai_name = "cs42l42-sdw",
/openbmc/linux/include/dt-bindings/sound/
H A Dcs42l42.h3 * cs42l42.h -- CS42L42 ALSA SoC audio driver DT bindings header
/openbmc/linux/sound/soc/intel/common/
H A Dsoc-acpi-intel-glk-match.c56 .sof_tplg_filename = "sof-glk-cs42l42.tplg",
H A Dsoc-acpi-intel-mtl-match.c326 .name_prefix = "cs42l42"
400 .sof_tplg_filename = "sof-mtl-sdw-cs42l42-l0-max98363-l2.tplg",
H A Dsoc-acpi-intel-jsl-match.c96 .sof_tplg_filename = "sof-jsl-cs42l42-mx98360a.tplg",
H A Dsoc-acpi-intel-adl-match.c588 .sof_tplg_filename = "sof-adl-max98360a-cs42l42.tplg",
/openbmc/linux/include/sound/
H A Dcs42l42.h3 * linux/sound/cs42l42.h -- Platform data for CS42L42 ALSA SoC audio driver header
/openbmc/linux/
H A Dopengrok0.0.log[all...]
H A Dopengrok2.0.log[all...]
H A Dopengrok1.0.log[all...]