Home
last modified time | relevance | path

Searched refs:cs42l42 (Results 1 – 7 of 7) sorted by relevance

/linux/sound/soc/codecs/
H A Dcs42l42.c480 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()
572 switch (cs42l42->hs_type) { in cs42l42_set_jack()
584 mutex_unlock(&cs42l42->irq_lock); in cs42l42_set_jack()
667 struct cs42l42_private *cs42l42 = snd_soc_component_get_drvdata(component); in cs42l42_pll_config() local
[all …]
H A Dcs42l42-sdw.c55 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()
114 return cs42l42_pll_config(dai->component, cs42l42->sclk, cs42l42->sample_rate); in cs42l42_sdw_dai_prepare()
120 struct cs42l42_private *cs42l42 = snd_soc_component_get_drvdata(dai->component); in cs42l42_sdw_dai_hw_free() local
[all …]
H A Dcs42l42-i2c.c19 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()
41 return cs42l42_init(cs42l42); in cs42l42_i2c_probe()
46 struct cs42l42_private *cs42l42 = dev_get_drvdata(&i2c_client->dev); in cs42l42_i2c_remove() local
[all …]
H A Dcs42l42.h76 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 DMakefile84 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
/linux/sound/pci/hda/
H A Dpatch_cs8409.c488 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()
528 -(cs42l42->vol[CS42L42_DAC_CH0_VOL_OFFSET]) in cs42l42_mute()
[all …]
/linux/sound/soc/intel/boards/
H A DKconfig350 tristate "SOF with cs42l42 codec in I2S Mode"
363 with cs42l42 codec.