/linux/sound/soc/codecs/ |
H A D | cs42l42.c | 3 * cs42l42.c -- CS42L42 ALSA SoC audio driver 32 #include <dt-bindings/sound/cs42l42.h> 34 #include "cs42l42.h" 480 struct cs42l42_private *cs42l42 = snd_soc_component_get_drvdata(component); in cs42l42_hp_adc_ev() local 484 cs42l42->hp_adc_up_pending = true; in cs42l42_hp_adc_ev() 488 if (cs42l42->hp_adc_up_pending) { in cs42l42_hp_adc_ev() 491 cs42l42->hp_adc_up_pending = false; in cs42l42_hp_adc_ev() 565 struct cs42l42_private *cs42l42 = snd_soc_component_get_drvdata(component); in cs42l42_set_jack() local 568 mutex_lock(&cs42l42->irq_lock); in cs42l42_set_jack() 569 cs42l42->jack = jk; in cs42l42_set_jack() [all …]
|
H A D | cs42l42-sdw.c | 2 // 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 D | cs42l42-i2c.c | 3 * 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 D | cs42l42.h | 3 * 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 D | cs42l83-i2c.c | 5 * 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 D | Makefile | 84 snd-soc-cs42l42-y := cs42l42.o 85 snd-soc-cs42l42-i2c-y := cs42l42-i2c.o 86 snd-soc-cs42l42-sdw-y := cs42l42-sdw.o 501 obj-$(CONFIG_SND_SOC_CS42L42_CORE) += snd-soc-cs42l42.o 502 obj-$(CONFIG_SND_SOC_CS42L42) += snd-soc-cs42l42-i2c.o 503 obj-$(CONFIG_SND_SOC_CS42L42_SDW) += snd-soc-cs42l42-sdw.o
|
H A D | Kconfig | 892 tristate "Cirrus Logic CS42L42 CODEC (I2C)" 899 tristate "Cirrus Logic CS42L42 CODEC on Soundwire" 903 Enable support for Cirrus Logic CS42L42 codec with Soundwire control
|
/linux/sound/pci/hda/ |
H A D | patch_cs8409.c | 456 * 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 …]
|
/linux/Documentation/devicetree/bindings/sound/ |
H A D | cirrus,cs42l42.yaml | 4 $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";
|
/linux/sound/soc/sdw_utils/ |
H A D | soc_sdw_cs42l42.c | 6 * soc_sdw_cs42l42 - Helpers to handle CS42L42 from generic machine driver 23 {"Headphone", NULL, "cs42l42 HP"}, 26 {"cs42l42 HS", NULL, "Headset Mic"}, 50 "%s hs:cs42l42", in asoc_sdw_cs42l42_rtd_init() 59 dev_err(card->dev, "cs42l42 map addition failed: %d\n", ret); in asoc_sdw_cs42l42_rtd_init()
|
H A D | soc_sdw_utils.c | 510 .dai_name = "cs42l42-sdw",
|
/linux/sound/soc/intel/boards/ |
H A D | sof_cs42l42.c | 5 * Intel SOF Machine Driver with Cirrus Logic CS42L42 Codec 21 #include <dt-bindings/sound/cs42l42.h> 134 /* sof audio machine driver for cs42l42 codec */ 136 .name = "cs42l42", /* the sof- prefix is added by the core */ 151 .dai_name = "cs42l42", 303 MODULE_DESCRIPTION("SOF Audio Machine driver for CS42L42");
|
H A D | Kconfig | 350 tristate "SOF with cs42l42 codec in I2S Mode" 363 with cs42l42 codec.
|
/linux/include/dt-bindings/sound/ |
H A D | cs42l42.h | 3 * cs42l42.h -- CS42L42 ALSA SoC audio driver DT bindings header
|
/linux/sound/soc/intel/common/ |
H A D | soc-acpi-intel-ssp-common.c | 29 CODEC_MAP_ENTRY("CS42L42", "cs42l42", CS42L42_ACPI_HID, CODEC_CS42L42),
|
H A D | soc-acpi-intel-glk-match.c | 56 .sof_tplg_filename = "sof-glk-cs42l42.tplg",
|
H A D | soc-acpi-intel-jsl-match.c | 98 .sof_tplg_filename = "sof-jsl-cs42l42-mx98360a.tplg",
|
H A D | soc-acpi-intel-mtl-match.c | 701 .name_prefix = "cs42l42" 890 .sof_tplg_filename = "sof-mtl-sdw-cs42l42-l0-max98363-l2.tplg",
|
/linux/include/sound/ |
H A D | cs42l42.h | 3 * linux/sound/cs42l42.h -- Platform data for CS42L42 ALSA SoC audio driver header
|