Home
last modified time | relevance | path

Searched refs:cs_dsp (Results 1 – 25 of 33) sorted by relevance

12

/linux-6.12.1/include/linux/firmware/cirrus/
Dcs_dsp.h100 struct cs_dsp *dsp;
152 struct cs_dsp { struct
214 int (*pre_run)(struct cs_dsp *dsp);
215 int (*post_run)(struct cs_dsp *dsp);
216 void (*pre_stop)(struct cs_dsp *dsp);
217 void (*post_stop)(struct cs_dsp *dsp);
218 void (*watchdog_expired)(struct cs_dsp *dsp);
221 int cs_dsp_adsp1_init(struct cs_dsp *dsp);
222 int cs_dsp_adsp2_init(struct cs_dsp *dsp);
223 int cs_dsp_halo_init(struct cs_dsp *dsp);
[all …]
/linux-6.12.1/sound/soc/codecs/
Dwm_adsp.c36 dev_crit(_dsp->cs_dsp.dev, "%s: " fmt, _dsp->cs_dsp.name, ##__VA_ARGS__)
38 dev_err(_dsp->cs_dsp.dev, "%s: " fmt, _dsp->cs_dsp.name, ##__VA_ARGS__)
40 dev_warn(_dsp->cs_dsp.dev, "%s: " fmt, _dsp->cs_dsp.name, ##__VA_ARGS__)
42 dev_info(_dsp->cs_dsp.dev, "%s: " fmt, _dsp->cs_dsp.name, ##__VA_ARGS__)
44 dev_dbg(_dsp->cs_dsp.dev, "%s: " fmt, _dsp->cs_dsp.name, ##__VA_ARGS__)
345 mutex_lock(&dsp[e->shift_l].cs_dsp.pwr_lock); in wm_adsp_fw_put()
347 if (dsp[e->shift_l].cs_dsp.booted || !list_empty(&dsp[e->shift_l].compr_list)) in wm_adsp_fw_put()
352 mutex_unlock(&dsp[e->shift_l].cs_dsp.pwr_lock); in wm_adsp_fw_put()
550 cs_dsp); in wm_adsp_ctl_work()
588 struct wm_adsp *dsp = container_of(cs_ctl->dsp, struct wm_adsp, cs_dsp); in wm_adsp_control_add()
[all …]
Dcs35l56-shared.c578 void cs35l56_init_cs_dsp(struct cs35l56_base *cs35l56_base, struct cs_dsp *cs_dsp) in cs35l56_init_cs_dsp() argument
580 cs_dsp->num = 1; in cs35l56_init_cs_dsp()
581 cs_dsp->type = WMFW_HALO; in cs35l56_init_cs_dsp()
582 cs_dsp->rev = 0; in cs35l56_init_cs_dsp()
583 cs_dsp->dev = cs35l56_base->dev; in cs35l56_init_cs_dsp()
584 cs_dsp->regmap = cs35l56_base->regmap; in cs35l56_init_cs_dsp()
585 cs_dsp->base = CS35L56_DSP1_CORE_BASE; in cs35l56_init_cs_dsp()
586 cs_dsp->base_sysinfo = CS35L56_DSP1_SYS_INFO_ID; in cs35l56_init_cs_dsp()
587 cs_dsp->mem = cs35l56_dsp1_regions; in cs35l56_init_cs_dsp()
588 cs_dsp->num_mems = ARRAY_SIZE(cs35l56_dsp1_regions); in cs35l56_init_cs_dsp()
[all …]
Dcs35l45.c53 if (!cs35l45->dsp.cs_dsp.running) { in cs35l45_set_cspl_mbox_cmd()
124 if (cs35l45->dsp.cs_dsp.booted) in cs35l45_dsp_preload_ev()
129 if (cs35l45->dsp.cs_dsp.running) in cs35l45_dsp_preload_ev()
140 if (cs35l45->dsp.cs_dsp.running) { in cs35l45_dsp_preload_ev()
986 if (!cs35l45->dsp.preloaded || !cs35l45->dsp.cs_dsp.running) in cs35l45_runtime_suspend()
1004 if (!cs35l45->dsp.preloaded || !cs35l45->dsp.cs_dsp.running) in cs35l45_runtime_resume()
1356 dsp->cs_dsp.num = 1; in cs35l45_dsp_init()
1357 dsp->cs_dsp.type = WMFW_HALO; in cs35l45_dsp_init()
1358 dsp->cs_dsp.rev = 0; in cs35l45_dsp_init()
1359 dsp->cs_dsp.dev = cs35l45->dev; in cs35l45_dsp_init()
[all …]
Dcs-amp-lib.c23 static int cs_amp_write_cal_coeff(struct cs_dsp *dsp, in cs_amp_write_cal_coeff()
50 static int _cs_amp_write_cal_coeffs(struct cs_dsp *dsp, in _cs_amp_write_cal_coeffs()
91 int cs_amp_write_cal_coeffs(struct cs_dsp *dsp, in cs_amp_write_cal_coeffs()
Dwm2200.c2206 wm2200->dsp[i].cs_dsp.type = WMFW_ADSP1; in wm2200_i2c_probe()
2208 wm2200->dsp[i].cs_dsp.num = i + 1; in wm2200_i2c_probe()
2209 wm2200->dsp[i].cs_dsp.dev = &i2c->dev; in wm2200_i2c_probe()
2210 wm2200->dsp[i].cs_dsp.regmap = wm2200->regmap; in wm2200_i2c_probe()
2211 wm2200->dsp[i].cs_dsp.sysclk_reg = WM2200_CLOCKING_3; in wm2200_i2c_probe()
2212 wm2200->dsp[i].cs_dsp.sysclk_mask = WM2200_SYSCLK_FREQ_MASK; in wm2200_i2c_probe()
2213 wm2200->dsp[i].cs_dsp.sysclk_shift = WM2200_SYSCLK_FREQ_SHIFT; in wm2200_i2c_probe()
2216 wm2200->dsp[0].cs_dsp.base = WM2200_DSP1_CONTROL_1; in wm2200_i2c_probe()
2217 wm2200->dsp[0].cs_dsp.mem = wm2200_dsp1_regions; in wm2200_i2c_probe()
2218 wm2200->dsp[0].cs_dsp.num_mems = ARRAY_SIZE(wm2200_dsp1_regions); in wm2200_i2c_probe()
[all …]
Dwm_adsp.h28 struct cs_dsp cs_dsp; member
Dcs47l15.c1411 cs47l15->core.adsp[0].cs_dsp.num = 1; in cs47l15_probe()
1412 cs47l15->core.adsp[0].cs_dsp.type = WMFW_ADSP2; in cs47l15_probe()
1413 cs47l15->core.adsp[0].cs_dsp.rev = 2; in cs47l15_probe()
1414 cs47l15->core.adsp[0].cs_dsp.dev = madera->dev; in cs47l15_probe()
1415 cs47l15->core.adsp[0].cs_dsp.regmap = madera->regmap_32bit; in cs47l15_probe()
1417 cs47l15->core.adsp[0].cs_dsp.base = MADERA_DSP1_CONFIG_1; in cs47l15_probe()
1418 cs47l15->core.adsp[0].cs_dsp.mem = cs47l15_dsp1_regions; in cs47l15_probe()
1419 cs47l15->core.adsp[0].cs_dsp.num_mems = ARRAY_SIZE(cs47l15_dsp1_regions); in cs47l15_probe()
1421 cs47l15->core.adsp[0].cs_dsp.lock_regions = in cs47l15_probe()
Dcs35l41.c192 if (cs35l41->dsp.cs_dsp.booted) in cs35l41_dsp_preload_ev()
200 if (cs35l41->dsp.cs_dsp.running) { in cs35l41_dsp_preload_ev()
222 if (!cs35l41->dsp.cs_dsp.running) in cs35l41_dsp_audio_ev()
522 1, &cs35l41->dsp.cs_dsp); in cs35l41_main_amp_event()
526 0, &cs35l41->dsp.cs_dsp); in cs35l41_main_amp_event()
1093 cs35l41_configure_cs_dsp(cs35l41->dev, cs35l41->regmap, &dsp->cs_dsp); in cs35l41_dsp_init()
1378 if (!cs35l41->dsp.preloaded || !cs35l41->dsp.cs_dsp.running) in cs35l41_runtime_suspend()
1396 if (!cs35l41->dsp.preloaded || !cs35l41->dsp.cs_dsp.running) in cs35l41_runtime_resume()
Dcs47l24.c1240 cs47l24->core.adsp[i].cs_dsp.num = i + 1; in cs47l24_probe()
1241 cs47l24->core.adsp[i].cs_dsp.type = WMFW_ADSP2; in cs47l24_probe()
1242 cs47l24->core.adsp[i].cs_dsp.dev = arizona->dev; in cs47l24_probe()
1243 cs47l24->core.adsp[i].cs_dsp.regmap = arizona->regmap; in cs47l24_probe()
1245 cs47l24->core.adsp[i].cs_dsp.base = ARIZONA_DSP1_CONTROL_1 + in cs47l24_probe()
1247 cs47l24->core.adsp[i].cs_dsp.mem = cs47l24_dsp_regions[i - 1]; in cs47l24_probe()
1248 cs47l24->core.adsp[i].cs_dsp.num_mems = in cs47l24_probe()
Dcs47l35.c1692 cs47l35->core.adsp[i].cs_dsp.num = i + 1; in cs47l35_probe()
1693 cs47l35->core.adsp[i].cs_dsp.type = WMFW_ADSP2; in cs47l35_probe()
1694 cs47l35->core.adsp[i].cs_dsp.rev = 1; in cs47l35_probe()
1695 cs47l35->core.adsp[i].cs_dsp.dev = madera->dev; in cs47l35_probe()
1696 cs47l35->core.adsp[i].cs_dsp.regmap = madera->regmap_32bit; in cs47l35_probe()
1698 cs47l35->core.adsp[i].cs_dsp.base = wm_adsp2_control_bases[i]; in cs47l35_probe()
1699 cs47l35->core.adsp[i].cs_dsp.mem = cs47l35_dsp_regions[i]; in cs47l35_probe()
1700 cs47l35->core.adsp[i].cs_dsp.num_mems = in cs47l35_probe()
Dcs47l92.c2014 cs47l92->core.adsp[0].cs_dsp.num = 1; in cs47l92_probe()
2015 cs47l92->core.adsp[0].cs_dsp.type = WMFW_ADSP2; in cs47l92_probe()
2016 cs47l92->core.adsp[0].cs_dsp.rev = 2; in cs47l92_probe()
2017 cs47l92->core.adsp[0].cs_dsp.dev = madera->dev; in cs47l92_probe()
2018 cs47l92->core.adsp[0].cs_dsp.regmap = madera->regmap_32bit; in cs47l92_probe()
2020 cs47l92->core.adsp[0].cs_dsp.base = MADERA_DSP1_CONFIG_1; in cs47l92_probe()
2021 cs47l92->core.adsp[0].cs_dsp.mem = cs47l92_dsp1_regions; in cs47l92_probe()
2022 cs47l92->core.adsp[0].cs_dsp.num_mems = ARRAY_SIZE(cs47l92_dsp1_regions); in cs47l92_probe()
2024 cs47l92->core.adsp[0].cs_dsp.lock_regions = CS_ADSP2_REGION_1_9; in cs47l92_probe()
Dwm5102.c2065 wm5102->core.adsp[0].cs_dsp.num = 1; in wm5102_probe()
2066 wm5102->core.adsp[0].cs_dsp.type = WMFW_ADSP2; in wm5102_probe()
2067 wm5102->core.adsp[0].cs_dsp.base = ARIZONA_DSP1_CONTROL_1; in wm5102_probe()
2068 wm5102->core.adsp[0].cs_dsp.dev = arizona->dev; in wm5102_probe()
2069 wm5102->core.adsp[0].cs_dsp.regmap = arizona->regmap; in wm5102_probe()
2070 wm5102->core.adsp[0].cs_dsp.mem = wm5102_dsp1_regions; in wm5102_probe()
2071 wm5102->core.adsp[0].cs_dsp.num_mems = ARRAY_SIZE(wm5102_dsp1_regions); in wm5102_probe()
Dcs47l90.c2549 cs47l90->core.adsp[i].cs_dsp.num = i + 1; in cs47l90_probe()
2550 cs47l90->core.adsp[i].cs_dsp.type = WMFW_ADSP2; in cs47l90_probe()
2551 cs47l90->core.adsp[i].cs_dsp.rev = 2; in cs47l90_probe()
2552 cs47l90->core.adsp[i].cs_dsp.dev = madera->dev; in cs47l90_probe()
2553 cs47l90->core.adsp[i].cs_dsp.regmap = madera->regmap_32bit; in cs47l90_probe()
2555 cs47l90->core.adsp[i].cs_dsp.base = cs47l90_dsp_control_bases[i]; in cs47l90_probe()
2556 cs47l90->core.adsp[i].cs_dsp.mem = cs47l90_dsp_regions[i]; in cs47l90_probe()
2557 cs47l90->core.adsp[i].cs_dsp.num_mems = in cs47l90_probe()
2560 cs47l90->core.adsp[i].cs_dsp.lock_regions = CS_ADSP2_REGION_1_9; in cs47l90_probe()
/linux-6.12.1/drivers/firmware/cirrus/
Dcs_dsp.c286 bool (*validate_version)(struct cs_dsp *dsp, unsigned int version);
287 unsigned int (*parse_sizes)(struct cs_dsp *dsp,
291 int (*setup_algs)(struct cs_dsp *dsp);
295 void (*show_fw_status)(struct cs_dsp *dsp);
296 void (*stop_watchdog)(struct cs_dsp *dsp);
298 int (*enable_memory)(struct cs_dsp *dsp);
299 void (*disable_memory)(struct cs_dsp *dsp);
300 int (*lock_memory)(struct cs_dsp *dsp, unsigned int lock_regions);
302 int (*enable_core)(struct cs_dsp *dsp);
303 void (*disable_core)(struct cs_dsp *dsp);
[all …]
DMakefile3 obj-$(CONFIG_FW_CS_DSP) += cs_dsp.o
/linux-6.12.1/sound/pci/hda/
Dhda_cs_dsp_ctl.c151 struct cs_dsp *cs_dsp = cs_ctl->dsp; in hda_cs_dsp_control_add() local
158 dev_warn(cs_dsp->dev, "Unknown region type: %d\n", cs_ctl->alg_region.type); in hda_cs_dsp_control_add()
163 cs_dsp->name, hda_cs_dsp_fw_text[info->fw_type], cs_ctl->alg_region.alg); in hda_cs_dsp_control_add()
180 void hda_cs_dsp_add_controls(struct cs_dsp *dsp, const struct hda_cs_dsp_ctl_info *info) in hda_cs_dsp_add_controls()
215 int hda_cs_dsp_write_ctl(struct cs_dsp *dsp, const char *name, int type, in hda_cs_dsp_write_ctl()
232 int hda_cs_dsp_read_ctl(struct cs_dsp *dsp, const char *name, int type, in hda_cs_dsp_read_ctl()
Dhda_cs_dsp_ctl.h32 void hda_cs_dsp_add_controls(struct cs_dsp *dsp, const struct hda_cs_dsp_ctl_info *info);
34 int hda_cs_dsp_write_ctl(struct cs_dsp *dsp, const char *name, int type,
36 int hda_cs_dsp_read_ctl(struct cs_dsp *dsp, const char *name, int type,
Dcs35l56_hda.c131 if (cs35l56->cs_dsp.booted) in cs35l56_hda_runtime_suspend()
132 cs_dsp_stop(&cs35l56->cs_dsp); in cs35l56_hda_runtime_suspend()
146 if (cs35l56->cs_dsp.booted) { in cs35l56_hda_runtime_resume()
147 ret = cs_dsp_run(&cs35l56->cs_dsp); in cs35l56_hda_runtime_resume()
569 ret = cs_amp_write_cal_coeffs(&cs35l56->cs_dsp, in cs35l56_hda_apply_calibration()
594 cs_dsp_power_down(&cs35l56->cs_dsp); in cs35l56_hda_fw_load()
643 ret = cs_dsp_power_up(&cs35l56->cs_dsp, wmfw_firmware, wmfw_filename, in cs35l56_hda_fw_load()
678 ret = cs_dsp_run(&cs35l56->cs_dsp); in cs35l56_hda_fw_load()
685 cs_dsp_stop(&cs35l56->cs_dsp); in cs35l56_hda_fw_load()
689 cs_dsp_power_down(&cs35l56->cs_dsp); in cs35l56_hda_fw_load()
[all …]
Dcs35l56_hda.h31 struct cs_dsp cs_dsp; member
Dcs35l41_hda.c166 const char * const dsp_name = cs35l41->cs_dsp.name; in cs35l41_request_firmware_file()
405 ret = cs_amp_write_cal_coeffs(&cs35l41->cs_dsp, &cs35l41_calibration_controls, in cs35l41_hda_apply_calibration()
558 struct cs_dsp *dsp = &cs35l41->cs_dsp; in cs35l41_init_dsp()
567 ret = cs_dsp_halo_init(&cs35l41->cs_dsp); in cs35l41_init_dsp()
610 struct cs_dsp *dsp = &cs35l41->cs_dsp; in cs35l41_shutdown_dsp()
620 struct cs_dsp *dsp = &cs35l41->cs_dsp; in cs35l41_remove_dsp()
660 if (cs35l41->cs_dsp.running) { in cs35l41_hda_play_start()
695 if (cs35l41->cs_dsp.running) { in cs35l41_mute()
719 &cs35l41->cs_dsp); in cs35l41_hda_play_done()
732 &cs35l41->cs_dsp); in cs35l41_hda_pause_start()
[all …]
Dcs35l41_hda.h84 struct cs_dsp cs_dsp; member
/linux-6.12.1/include/sound/
Dcs-amp-lib.h13 struct cs_dsp;
47 int cs_amp_write_cal_coeffs(struct cs_dsp *dsp,
59 int (*write_cal_coeff)(struct cs_dsp *dsp,
Dcs35l56.h306 void cs35l56_init_cs_dsp(struct cs35l56_base *cs35l56_base, struct cs_dsp *cs_dsp);
/linux-6.12.1/include/linux/mfd/
Dcs40l50.h119 struct cs_dsp dsp;

12