Home
last modified time | relevance | path

Searched refs:cs35l41 (Results 1 – 14 of 14) sorted by relevance

/linux/sound/hda/codecs/side-codecs/
H A Dcs35l41_hda.c25 #define CS35L41_PART "cs35l41"
143 static int cs35l41_request_tuning_param_file(struct cs35l41_hda *cs35l41, char *tuning_filename, in cs35l41_request_tuning_param_file() argument
154 ret = firmware_request_nowarn(firmware, *filename, cs35l41->dev); in cs35l41_request_tuning_param_file()
156 dev_dbg(cs35l41->dev, "Failed to request '%s'\n", *filename); in cs35l41_request_tuning_param_file()
164 static int cs35l41_request_firmware_file(struct cs35l41_hda *cs35l41, in cs35l41_request_firmware_file() argument
169 const char * const dsp_name = cs35l41->cs_dsp.name; in cs35l41_request_firmware_file()
175 dsp_name, cs35l41_hda_fw_ids[cs35l41->firmware_type], in cs35l41_request_firmware_file()
179 dsp_name, cs35l41_hda_fw_ids[cs35l41->firmware_type], in cs35l41_request_firmware_file()
183 dsp_name, cs35l41_hda_fw_ids[cs35l41->firmware_type], in cs35l41_request_firmware_file()
187 dsp_name, cs35l41_hda_fw_ids[cs35l41 in cs35l41_request_firmware_file()
221 cs35l41_request_firmware_files_spkid(struct cs35l41_hda * cs35l41,const struct firmware ** wmfw_firmware,char ** wmfw_filename,const struct firmware ** coeff_firmware,char ** coeff_filename) cs35l41_request_firmware_files_spkid() argument
306 cs35l41_fallback_firmware_file(struct cs35l41_hda * cs35l41,const struct firmware ** wmfw_firmware,char ** wmfw_filename,const struct firmware ** coeff_firmware,char ** coeff_filename) cs35l41_fallback_firmware_file() argument
338 cs35l41_request_firmware_files(struct cs35l41_hda * cs35l41,const struct firmware ** wmfw_firmware,char ** wmfw_filename,const struct firmware ** coeff_firmware,char ** coeff_filename) cs35l41_request_firmware_files() argument
401 cs35l41_hda_apply_calibration(struct cs35l41_hda * cs35l41) cs35l41_hda_apply_calibration() argument
416 cs35l41_read_silicon_uid(struct cs35l41_hda * cs35l41,u64 * uid) cs35l41_read_silicon_uid() argument
443 cs35l41_get_calibration(struct cs35l41_hda * cs35l41) cs35l41_get_calibration() argument
469 cs35l41_set_default_tuning_params(struct cs35l41_hda * cs35l41) cs35l41_set_default_tuning_params() argument
474 cs35l41_read_tuning_params(struct cs35l41_hda * cs35l41,const struct firmware * firmware) cs35l41_read_tuning_params() argument
529 cs35l41_load_tuning_params(struct cs35l41_hda * cs35l41,char * tuning_filename) cs35l41_load_tuning_params() argument
557 cs35l41_init_dsp(struct cs35l41_hda * cs35l41) cs35l41_init_dsp() argument
611 cs35l41_shutdown_dsp(struct cs35l41_hda * cs35l41) cs35l41_shutdown_dsp() argument
621 cs35l41_remove_dsp(struct cs35l41_hda * cs35l41) cs35l41_remove_dsp() argument
642 cs35l41_irq_release(struct cs35l41_hda * cs35l41) cs35l41_irq_release() argument
648 cs35l41_update_mixer(struct cs35l41_hda * cs35l41) cs35l41_update_mixer() argument
685 struct cs35l41_hda *cs35l41 = dev_get_drvdata(dev); cs35l41_hda_play_start() local
713 struct cs35l41_hda *cs35l41 = dev_get_drvdata(dev); cs35l41_mute() local
744 struct cs35l41_hda *cs35l41 = dev_get_drvdata(dev); cs35l41_hda_play_done() local
756 struct cs35l41_hda *cs35l41 = dev_get_drvdata(dev); cs35l41_hda_pause_start() local
768 struct cs35l41_hda *cs35l41 = dev_get_drvdata(dev); cs35l41_hda_pause_done() local
788 struct cs35l41_hda *cs35l41 = dev_get_drvdata(dev); cs35l41_hda_pre_playback_hook() local
802 struct cs35l41_hda *cs35l41 = dev_get_drvdata(dev); cs35l41_hda_playback_hook() local
847 struct cs35l41_hda *cs35l41 = dev_get_drvdata(dev); cs35l41_hda_post_playback_hook() local
860 cs35l41_hda_channel_map(struct cs35l41_hda * cs35l41) cs35l41_hda_channel_map() argument
889 cs35l41_verify_id(struct cs35l41_hda * cs35l41,unsigned int * regid,unsigned int * reg_revid) cs35l41_verify_id() argument
917 cs35l41_ready_for_reset(struct cs35l41_hda * cs35l41) cs35l41_ready_for_reset() argument
931 struct cs35l41_hda *cs35l41 = dev_get_drvdata(dev); cs35l41_system_suspend_prep() local
949 struct cs35l41_hda *cs35l41 = dev_get_drvdata(dev); cs35l41_system_suspend() local
986 cs35l41_wait_boot_done(struct cs35l41_hda * cs35l41) cs35l41_wait_boot_done() argument
1012 struct cs35l41_hda *cs35l41 = dev_get_drvdata(dev); cs35l41_system_resume() local
1059 struct cs35l41_hda *cs35l41 = dev_get_drvdata(dev); cs35l41_runtime_idle() local
1068 struct cs35l41_hda *cs35l41 = dev_get_drvdata(dev); cs35l41_runtime_suspend() local
1097 struct cs35l41_hda *cs35l41 = dev_get_drvdata(dev); cs35l41_runtime_resume() local
1148 cs35l41_smart_amp(struct cs35l41_hda * cs35l41) cs35l41_smart_amp() argument
1223 cs35l41_load_firmware(struct cs35l41_hda * cs35l41,bool load) cs35l41_load_firmware() argument
1239 struct cs35l41_hda *cs35l41 = snd_kcontrol_chip(kcontrol); cs35l41_fw_load_ctl_get() local
1248 struct cs35l41_hda *cs35l41 = snd_kcontrol_chip(kcontrol); cs35l41_mute_override_ctl_get() local
1256 struct cs35l41_hda *cs35l41 = container_of(work, struct cs35l41_hda, fw_load_work); cs35l41_fw_load_work() local
1276 struct cs35l41_hda *cs35l41 = snd_kcontrol_chip(kcontrol); cs35l41_fw_load_ctl_put() local
1302 struct cs35l41_hda *cs35l41 = snd_kcontrol_chip(kcontrol); cs35l41_fw_type_ctl_get() local
1312 struct cs35l41_hda *cs35l41 = snd_kcontrol_chip(kcontrol); cs35l41_fw_type_ctl_put() local
1331 cs35l41_create_controls(struct cs35l41_hda * cs35l41) cs35l41_create_controls() argument
1403 cs35l41_get_acpi_mute_state(struct cs35l41_hda * cs35l41,acpi_handle handle) cs35l41_get_acpi_mute_state() argument
1426 struct cs35l41_hda *cs35l41 = dev_get_drvdata(dev); cs35l41_acpi_device_notify() local
1445 struct cs35l41_hda *cs35l41 = dev_get_drvdata(dev); cs35l41_hda_bind() local
1516 struct cs35l41_hda *cs35l41 = dev_get_drvdata(dev); cs35l41_hda_unbind() local
1540 struct cs35l41_hda *cs35l41 = data; cs35l41_bst_short_err() local
1550 struct cs35l41_hda *cs35l41 = data; cs35l41_bst_dcm_uvp_err() local
1560 struct cs35l41_hda *cs35l41 = data; cs35l41_bst_ovp_err() local
1570 struct cs35l41_hda *cs35l41 = data; cs35l41_temp_err() local
1580 struct cs35l41_hda *cs35l41 = data; cs35l41_temp_warn() local
1590 struct cs35l41_hda *cs35l41 = data; cs35l41_amp_short() local
1627 cs35l41_configure_interrupt(struct cs35l41_hda * cs35l41,int irq_pol) cs35l41_configure_interrupt() argument
1671 cs35l41_hda_apply_properties(struct cs35l41_hda * cs35l41) cs35l41_hda_apply_properties() argument
1779 cs35l41_hda_parse_acpi(struct cs35l41_hda * cs35l41,struct device * physdev,int id) cs35l41_hda_parse_acpi() argument
1888 cs35l41_hda_read_acpi(struct cs35l41_hda * cs35l41,const char * hid,int id) cs35l41_hda_read_acpi() argument
1944 struct cs35l41_hda *cs35l41; cs35l41_hda_probe() local
2063 struct cs35l41_hda *cs35l41 = dev_get_drvdata(dev); cs35l41_hda_remove() local
[all...]
H A Dcs35l41_hda_property.c143 static int cs35l41_add_gpios(struct cs35l41_hda *cs35l41, struct device *physdev, int reset_gpio, in cs35l41_add_gpios() argument
157 if (cs35l41->dacpi->driver_gpios) in cs35l41_add_gpios()
237 static int generic_dsd_config(struct cs35l41_hda *cs35l41, struct device *physdev, int id, in generic_dsd_config() argument
240 struct cs35l41_hw_cfg *hw_cfg = &cs35l41->hw_cfg; in generic_dsd_config()
249 if (!strcasecmp(cfg->ssid, cs35l41->acpi_subsystem_id)) in generic_dsd_config()
256 if (!cs35l41->dacpi || cs35l41->dacpi != ACPI_COMPANION(physdev)) { in generic_dsd_config()
257 dev_err(cs35l41->dev, "ACPI Device does not match, cannot override _DSD.\n"); in generic_dsd_config()
261 dev_info(cs35l41->dev, "Adding DSD properties for %s\n", cs35l41->acpi_subsystem_id); in generic_dsd_config()
263 dsd_found = acpi_dev_has_props(cs35l41->dacpi); in generic_dsd_config()
266 ret = cs35l41_add_gpios(cs35l41, physdev, cfg->reset_gpio_index, in generic_dsd_config()
[all …]
H A DMakefile6 snd-hda-scodec-cs35l41-y := cs35l41_hda.o cs35l41_hda_property.o
7 snd-hda-scodec-cs35l41-i2c-y := cs35l41_hda_i2c.o
8 snd-hda-scodec-cs35l41-spi-y := cs35l41_hda_spi.o
19 obj-$(CONFIG_SND_HDA_SCODEC_CS35L41) += snd-hda-scodec-cs35l41.o
20 obj-$(CONFIG_SND_HDA_SCODEC_CS35L41_I2C) += snd-hda-scodec-cs35l41-i2c.o
21 obj-$(CONFIG_SND_HDA_SCODEC_CS35L41_SPI) += snd-hda-scodec-cs35l41-spi.o
H A Dcs35l41_hda_property.h16 int cs35l41_add_dsd_properties(struct cs35l41_hda *cs35l41, struct device *physdev, int id,
H A Dcs35l41_hda.h108 int cs35l41_hda_parse_acpi(struct cs35l41_hda *cs35l41, struct device *physdev, int id);
/linux/sound/soc/codecs/
H A Dcs35l41.c188 struct cs35l41_private *cs35l41 = snd_soc_component_get_drvdata(component); in cs35l41_dsp_preload_ev() local
193 if (cs35l41->dsp.cs_dsp.booted) in cs35l41_dsp_preload_ev()
198 if (cs35l41->dsp.preloaded) in cs35l41_dsp_preload_ev()
201 if (cs35l41->dsp.cs_dsp.running) { in cs35l41_dsp_preload_ev()
217 struct cs35l41_private *cs35l41 = snd_soc_component_get_drvdata(component); in cs35l41_dsp_audio_ev() local
223 if (!cs35l41->dsp.cs_dsp.running) in cs35l41_dsp_audio_ev()
226 ret = regmap_read(cs35l41->regmap, CS35L41_DSP_MBOX_2, &fw_status); in cs35l41_dsp_audio_ev()
228 dev_err(cs35l41->dev, in cs35l41_dsp_audio_ev()
238 dev_err(cs35l41->dev, "Firmware status is invalid: %u\n", in cs35l41_dsp_audio_ev()
243 return cs35l41_set_cspl_mbox_cmd(cs35l41->dev, cs35l41->regmap, in cs35l41_dsp_audio_ev()
[all …]
H A Dcs35l41-i2c.c34 struct cs35l41_private *cs35l41; in cs35l41_i2c_probe() local
39 cs35l41 = devm_kzalloc(dev, sizeof(struct cs35l41_private), GFP_KERNEL); in cs35l41_i2c_probe()
41 if (!cs35l41) in cs35l41_i2c_probe()
44 cs35l41->dev = dev; in cs35l41_i2c_probe()
45 cs35l41->irq = client->irq; in cs35l41_i2c_probe()
47 i2c_set_clientdata(client, cs35l41); in cs35l41_i2c_probe()
48 cs35l41->regmap = devm_regmap_init_i2c(client, regmap_config); in cs35l41_i2c_probe()
49 if (IS_ERR(cs35l41->regmap)) in cs35l41_i2c_probe()
50 return dev_err_probe(cs35l41->dev, PTR_ERR(cs35l41->regmap), in cs35l41_i2c_probe()
53 return cs35l41_probe(cs35l41, hw_cfg); in cs35l41_i2c_probe()
[all …]
H A Dcs35l41-spi.c34 struct cs35l41_private *cs35l41; in cs35l41_spi_probe() local
37 cs35l41 = devm_kzalloc(&spi->dev, sizeof(struct cs35l41_private), GFP_KERNEL); in cs35l41_spi_probe()
38 if (!cs35l41) in cs35l41_spi_probe()
46 spi_set_drvdata(spi, cs35l41); in cs35l41_spi_probe()
47 cs35l41->regmap = devm_regmap_init_spi(spi, regmap_config); in cs35l41_spi_probe()
48 if (IS_ERR(cs35l41->regmap)) in cs35l41_spi_probe()
49 return dev_err_probe(cs35l41->dev, PTR_ERR(cs35l41->regmap), in cs35l41_spi_probe()
52 cs35l41->dev = &spi->dev; in cs35l41_spi_probe()
53 cs35l41->irq = spi->irq; in cs35l41_spi_probe()
55 return cs35l41_probe(cs35l41, hw_cfg); in cs35l41_spi_probe()
[all …]
H A Dcs35l41.h38 int cs35l41_probe(struct cs35l41_private *cs35l41, const struct cs35l41_hw_cfg *hw_cfg);
39 void cs35l41_remove(struct cs35l41_private *cs35l41);
H A DMakefile71 snd-soc-cs35l41-lib-y := cs35l41-lib.o
72 snd-soc-cs35l41-y := cs35l41.o
73 snd-soc-cs35l41-spi-y := cs35l41-spi.o
74 snd-soc-cs35l41-i2c-y := cs35l41-i2c.o
507 obj-$(CONFIG_SND_SOC_CS35L41) += snd-soc-cs35l41.o
508 obj-$(CONFIG_SND_SOC_CS35L41_LIB) += snd-soc-cs35l41
[all...]
/linux/sound/soc/amd/vangogh/
H A Dacp5x-mach.c266 SND_SOC_DAILINK_DEF(cs35l41, DAILINK_COMP_ARRAY(COMP_CODEC(ACP5X_CS35L41_COMP_LNAME,
290 SND_SOC_DAILINK_REG(acp5x_bt, cs35l41, platform),
/linux/arch/arm64/boot/dts/qcom/
H A Dsm8250-sony-xperia-edo.dtsi478 compatible = "cirrus,cs35l41";
493 compatible = "cirrus,cs35l41";
H A Dsm8450-sony-xperia-nagara.dtsi574 compatible = "cirrus,cs35l41";
589 compatible = "cirrus,cs35l41";
H A Dsm8350-sony-xperia-sagami.dtsi495 compatible = "cirrus,cs35l41";
510 compatible = "cirrus,cs35l41";