| /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 | 148 static int cs35l41_add_gpios(struct cs35l41_hda *cs35l41, struct device *physdev, int reset_gpio, in cs35l41_add_gpios() 162 if (cs35l41->dacpi->driver_gpios) in cs35l41_add_gpios() 242 static int generic_dsd_config(struct cs35l41_hda *cs35l41, struct device *physdev, int id, in generic_dsd_config() 245 struct cs35l41_hw_cfg *hw_cfg = &cs35l41->hw_cfg; in generic_dsd_config() 254 if (!strcasecmp(cfg->ssid, cs35l41->acpi_subsystem_id)) in generic_dsd_config() 261 if (!cs35l41->dacpi || cs35l41->dacpi != ACPI_COMPANION(physdev)) { in generic_dsd_config() 262 dev_err(cs35l41->dev, "ACPI Device does not match, cannot override _DSD.\n"); in generic_dsd_config() 266 dev_info(cs35l41->dev, "Adding DSD properties for %s\n", cs35l41 in generic_dsd_config() 143 cs35l41_add_gpios(struct cs35l41_hda * cs35l41,struct device * physdev,int reset_gpio,int spkid_gpio,int cs_gpio_index,int num_amps) cs35l41_add_gpios() argument 237 generic_dsd_config(struct cs35l41_hda * cs35l41,struct device * physdev,int id,const char * hid) generic_dsd_config() argument 371 hp_i2c_int_2amp_dual_spkid(struct cs35l41_hda * cs35l41,struct device * physdev,int id,const char * hid) hp_i2c_int_2amp_dual_spkid() argument 410 lenovo_legion_no_acpi(struct cs35l41_hda * cs35l41,struct device * physdev,int id,const char * hid) lenovo_legion_no_acpi() argument 436 missing_speaker_id_gpio2(struct cs35l41_hda * cs35l41,struct device * physdev,int id,const char * hid) missing_speaker_id_gpio2() argument 568 cs35l41_add_dsd_properties(struct cs35l41_hda * cs35l41,struct device * physdev,int id,const char * hid) cs35l41_add_dsd_properties() argument [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 | 3 // cs35l41.c -- CS35l41 ALSA SoC audio driver 26 #include "cs35l41.h" 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 in cs35l41_dsp_audio_ev() 360 cs35l41_boost_enable(struct cs35l41_private * cs35l41,unsigned int enable) cs35l41_boost_enable() argument 375 cs35l41_error_release(struct cs35l41_private * cs35l41,unsigned int irq_err_bit,unsigned int rel_err_bit) cs35l41_error_release() argument 386 struct cs35l41_private *cs35l41 = data; cs35l41_irq() local 512 struct cs35l41_private *cs35l41 = snd_soc_component_get_drvdata(component); cs35l41_main_amp_event() local 679 struct cs35l41_private *cs35l41 = snd_soc_component_get_drvdata(dai->component); cs35l41_set_channel_map() local 686 struct cs35l41_private *cs35l41 = snd_soc_component_get_drvdata(dai->component); cs35l41_set_dai_fmt() local 759 struct cs35l41_private *cs35l41 = snd_soc_component_get_drvdata(dai->component); cs35l41_pcm_hw_params() local 815 struct cs35l41_private *cs35l41 = snd_soc_component_get_drvdata(component); cs35l41_component_set_sysclk() local 865 struct cs35l41_private *cs35l41 = snd_soc_component_get_drvdata(dai->component); cs35l41_dai_set_sysclk() local 896 cs35l41_set_pdata(struct cs35l41_private * cs35l41) cs35l41_set_pdata() argument 930 struct cs35l41_private *cs35l41 = snd_soc_component_get_drvdata(component); cs35l41_component_probe() local 951 struct cs35l41_private *cs35l41 = snd_soc_component_get_drvdata(component); cs35l41_component_remove() local 1082 cs35l41_dsp_init(struct cs35l41_private * cs35l41) cs35l41_dsp_init() argument 1151 cs35l41_get_system_name(struct cs35l41_private * cs35l41) cs35l41_get_system_name() argument 1202 cs35l41_probe(struct cs35l41_private * cs35l41,const struct cs35l41_hw_cfg * hw_cfg) cs35l41_probe() argument 1376 cs35l41_remove(struct cs35l41_private * cs35l41) cs35l41_remove() argument 1400 struct cs35l41_private *cs35l41 = dev_get_drvdata(dev); cs35l41_runtime_suspend() local 1417 struct cs35l41_private *cs35l41 = dev_get_drvdata(dev); cs35l41_runtime_resume() local 1446 struct cs35l41_private *cs35l41 = dev_get_drvdata(dev); cs35l41_sys_suspend() local 1456 struct cs35l41_private *cs35l41 = dev_get_drvdata(dev); cs35l41_sys_suspend_noirq() local 1466 struct cs35l41_private *cs35l41 = dev_get_drvdata(dev); cs35l41_sys_resume_noirq() local 1476 struct cs35l41_private *cs35l41 = dev_get_drvdata(dev); cs35l41_sys_resume() local [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";
|