| /linux/sound/hda/codecs/side-codecs/ |
| H A D | cs35l41_hda.c | 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->firmware_type], in cs35l41_request_firmware_file() 191 dsp_name, cs35l41_hda_fw_ids[cs35l41->firmware_type], in cs35l41_request_firmware_file() [all …]
|
| H A D | cs35l41_hda_property.c | 143 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 D | Makefile | 6 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 D | cs35l41_hda_property.h | 16 int cs35l41_add_dsd_properties(struct cs35l41_hda *cs35l41, struct device *physdev, int id,
|
| H A D | cs35l41_hda.h | 108 int cs35l41_hda_parse_acpi(struct cs35l41_hda *cs35l41, struct device *physdev, int id);
|
| /linux/sound/soc/codecs/ |
| H A D | cs35l41.c | 188 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 D | cs35l41-i2c.c | 34 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 D | cs35l41.h | 38 int cs35l41_probe(struct cs35l41_private *cs35l41, const struct cs35l41_hw_cfg *hw_cfg); 39 void cs35l41_remove(struct cs35l41_private *cs35l41);
|
| /linux/arch/arm64/boot/dts/qcom/ |
| H A D | sm8350-sony-xperia-sagami.dtsi | 495 compatible = "cirrus,cs35l41"; 510 compatible = "cirrus,cs35l41";
|