Home
last modified time | relevance | path

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

/Linux-v6.1/include/linux/firmware/cirrus/
Dcs_dsp.h90 struct cs_dsp *dsp;
143 struct cs_dsp { struct
204 int (*pre_run)(struct cs_dsp *dsp);
205 int (*post_run)(struct cs_dsp *dsp);
206 void (*pre_stop)(struct cs_dsp *dsp);
207 void (*post_stop)(struct cs_dsp *dsp);
208 void (*watchdog_expired)(struct cs_dsp *dsp);
211 int cs_dsp_adsp1_init(struct cs_dsp *dsp);
212 int cs_dsp_adsp2_init(struct cs_dsp *dsp);
213 int cs_dsp_halo_init(struct cs_dsp *dsp);
[all …]
/Linux-v6.1/sound/soc/codecs/
Dwm_adsp.c35 dev_crit(_dsp->cs_dsp.dev, "%s: " fmt, _dsp->cs_dsp.name, ##__VA_ARGS__)
37 dev_err(_dsp->cs_dsp.dev, "%s: " fmt, _dsp->cs_dsp.name, ##__VA_ARGS__)
39 dev_warn(_dsp->cs_dsp.dev, "%s: " fmt, _dsp->cs_dsp.name, ##__VA_ARGS__)
41 dev_info(_dsp->cs_dsp.dev, "%s: " fmt, _dsp->cs_dsp.name, ##__VA_ARGS__)
43 dev_dbg(_dsp->cs_dsp.dev, "%s: " fmt, _dsp->cs_dsp.name, ##__VA_ARGS__)
344 mutex_lock(&dsp[e->shift_l].cs_dsp.pwr_lock); in wm_adsp_fw_put()
346 if (dsp[e->shift_l].cs_dsp.booted || !list_empty(&dsp[e->shift_l].compr_list)) in wm_adsp_fw_put()
351 mutex_unlock(&dsp[e->shift_l].cs_dsp.pwr_lock); in wm_adsp_fw_put()
553 cs_dsp); in wm_adsp_ctl_work()
591 struct wm_adsp *dsp = container_of(cs_ctl->dsp, struct wm_adsp, cs_dsp); in wm_adsp_control_add()
[all …]
Dwm2200.c2203 wm2200->dsp[i].cs_dsp.type = WMFW_ADSP1; in wm2200_i2c_probe()
2205 wm2200->dsp[i].cs_dsp.num = i + 1; in wm2200_i2c_probe()
2206 wm2200->dsp[i].cs_dsp.dev = &i2c->dev; in wm2200_i2c_probe()
2207 wm2200->dsp[i].cs_dsp.regmap = wm2200->regmap; in wm2200_i2c_probe()
2208 wm2200->dsp[i].cs_dsp.sysclk_reg = WM2200_CLOCKING_3; in wm2200_i2c_probe()
2209 wm2200->dsp[i].cs_dsp.sysclk_mask = WM2200_SYSCLK_FREQ_MASK; in wm2200_i2c_probe()
2210 wm2200->dsp[i].cs_dsp.sysclk_shift = WM2200_SYSCLK_FREQ_SHIFT; in wm2200_i2c_probe()
2213 wm2200->dsp[0].cs_dsp.base = WM2200_DSP1_CONTROL_1; in wm2200_i2c_probe()
2214 wm2200->dsp[0].cs_dsp.mem = wm2200_dsp1_regions; in wm2200_i2c_probe()
2215 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.c1407 cs47l15->core.adsp[0].cs_dsp.num = 1; in cs47l15_probe()
1408 cs47l15->core.adsp[0].cs_dsp.type = WMFW_ADSP2; in cs47l15_probe()
1409 cs47l15->core.adsp[0].cs_dsp.rev = 2; in cs47l15_probe()
1410 cs47l15->core.adsp[0].cs_dsp.dev = madera->dev; in cs47l15_probe()
1411 cs47l15->core.adsp[0].cs_dsp.regmap = madera->regmap_32bit; in cs47l15_probe()
1413 cs47l15->core.adsp[0].cs_dsp.base = MADERA_DSP1_CONFIG_1; in cs47l15_probe()
1414 cs47l15->core.adsp[0].cs_dsp.mem = cs47l15_dsp1_regions; in cs47l15_probe()
1415 cs47l15->core.adsp[0].cs_dsp.num_mems = ARRAY_SIZE(cs47l15_dsp1_regions); in cs47l15_probe()
1417 cs47l15->core.adsp[0].cs_dsp.lock_regions = in cs47l15_probe()
Dcs47l24.c1236 cs47l24->core.adsp[i].cs_dsp.num = i + 1; in cs47l24_probe()
1237 cs47l24->core.adsp[i].cs_dsp.type = WMFW_ADSP2; in cs47l24_probe()
1238 cs47l24->core.adsp[i].cs_dsp.dev = arizona->dev; in cs47l24_probe()
1239 cs47l24->core.adsp[i].cs_dsp.regmap = arizona->regmap; in cs47l24_probe()
1241 cs47l24->core.adsp[i].cs_dsp.base = ARIZONA_DSP1_CONTROL_1 + in cs47l24_probe()
1243 cs47l24->core.adsp[i].cs_dsp.mem = cs47l24_dsp_regions[i - 1]; in cs47l24_probe()
1244 cs47l24->core.adsp[i].cs_dsp.num_mems = in cs47l24_probe()
Dcs47l35.c1688 cs47l35->core.adsp[i].cs_dsp.num = i + 1; in cs47l35_probe()
1689 cs47l35->core.adsp[i].cs_dsp.type = WMFW_ADSP2; in cs47l35_probe()
1690 cs47l35->core.adsp[i].cs_dsp.rev = 1; in cs47l35_probe()
1691 cs47l35->core.adsp[i].cs_dsp.dev = madera->dev; in cs47l35_probe()
1692 cs47l35->core.adsp[i].cs_dsp.regmap = madera->regmap_32bit; in cs47l35_probe()
1694 cs47l35->core.adsp[i].cs_dsp.base = wm_adsp2_control_bases[i]; in cs47l35_probe()
1695 cs47l35->core.adsp[i].cs_dsp.mem = cs47l35_dsp_regions[i]; in cs47l35_probe()
1696 cs47l35->core.adsp[i].cs_dsp.num_mems = in cs47l35_probe()
Dcs47l92.c2010 cs47l92->core.adsp[0].cs_dsp.num = 1; in cs47l92_probe()
2011 cs47l92->core.adsp[0].cs_dsp.type = WMFW_ADSP2; in cs47l92_probe()
2012 cs47l92->core.adsp[0].cs_dsp.rev = 2; in cs47l92_probe()
2013 cs47l92->core.adsp[0].cs_dsp.dev = madera->dev; in cs47l92_probe()
2014 cs47l92->core.adsp[0].cs_dsp.regmap = madera->regmap_32bit; in cs47l92_probe()
2016 cs47l92->core.adsp[0].cs_dsp.base = MADERA_DSP1_CONFIG_1; in cs47l92_probe()
2017 cs47l92->core.adsp[0].cs_dsp.mem = cs47l92_dsp1_regions; in cs47l92_probe()
2018 cs47l92->core.adsp[0].cs_dsp.num_mems = ARRAY_SIZE(cs47l92_dsp1_regions); in cs47l92_probe()
2020 cs47l92->core.adsp[0].cs_dsp.lock_regions = CS_ADSP2_REGION_1_9; in cs47l92_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()
1101 cs35l41_configure_cs_dsp(cs35l41->dev, cs35l41->regmap, &dsp->cs_dsp); in cs35l41_dsp_init()
1365 if (!cs35l41->dsp.preloaded || !cs35l41->dsp.cs_dsp.running) in cs35l41_runtime_suspend()
1383 if (!cs35l41->dsp.preloaded || !cs35l41->dsp.cs_dsp.running) in cs35l41_runtime_resume()
Dwm5102.c2061 wm5102->core.adsp[0].cs_dsp.num = 1; in wm5102_probe()
2062 wm5102->core.adsp[0].cs_dsp.type = WMFW_ADSP2; in wm5102_probe()
2063 wm5102->core.adsp[0].cs_dsp.base = ARIZONA_DSP1_CONTROL_1; in wm5102_probe()
2064 wm5102->core.adsp[0].cs_dsp.dev = arizona->dev; in wm5102_probe()
2065 wm5102->core.adsp[0].cs_dsp.regmap = arizona->regmap; in wm5102_probe()
2066 wm5102->core.adsp[0].cs_dsp.mem = wm5102_dsp1_regions; in wm5102_probe()
2067 wm5102->core.adsp[0].cs_dsp.num_mems = ARRAY_SIZE(wm5102_dsp1_regions); in wm5102_probe()
Dcs47l90.c2545 cs47l90->core.adsp[i].cs_dsp.num = i + 1; in cs47l90_probe()
2546 cs47l90->core.adsp[i].cs_dsp.type = WMFW_ADSP2; in cs47l90_probe()
2547 cs47l90->core.adsp[i].cs_dsp.rev = 2; in cs47l90_probe()
2548 cs47l90->core.adsp[i].cs_dsp.dev = madera->dev; in cs47l90_probe()
2549 cs47l90->core.adsp[i].cs_dsp.regmap = madera->regmap_32bit; in cs47l90_probe()
2551 cs47l90->core.adsp[i].cs_dsp.base = cs47l90_dsp_control_bases[i]; in cs47l90_probe()
2552 cs47l90->core.adsp[i].cs_dsp.mem = cs47l90_dsp_regions[i]; in cs47l90_probe()
2553 cs47l90->core.adsp[i].cs_dsp.num_mems = in cs47l90_probe()
2556 cs47l90->core.adsp[i].cs_dsp.lock_regions = CS_ADSP2_REGION_1_9; in cs47l90_probe()
Dcs47l85.c2634 cs47l85->core.adsp[i].cs_dsp.num = i + 1; in cs47l85_probe()
2635 cs47l85->core.adsp[i].cs_dsp.type = WMFW_ADSP2; in cs47l85_probe()
2636 cs47l85->core.adsp[i].cs_dsp.rev = 1; in cs47l85_probe()
2637 cs47l85->core.adsp[i].cs_dsp.dev = madera->dev; in cs47l85_probe()
2638 cs47l85->core.adsp[i].cs_dsp.regmap = madera->regmap_32bit; in cs47l85_probe()
2640 cs47l85->core.adsp[i].cs_dsp.base = wm_adsp2_control_bases[i]; in cs47l85_probe()
2641 cs47l85->core.adsp[i].cs_dsp.mem = cs47l85_dsp_regions[i]; in cs47l85_probe()
2642 cs47l85->core.adsp[i].cs_dsp.num_mems = in cs47l85_probe()
Dwm5110.c2415 wm5110->core.adsp[i].cs_dsp.num = i + 1; in wm5110_probe()
2416 wm5110->core.adsp[i].cs_dsp.type = WMFW_ADSP2; in wm5110_probe()
2417 wm5110->core.adsp[i].cs_dsp.dev = arizona->dev; in wm5110_probe()
2418 wm5110->core.adsp[i].cs_dsp.regmap = arizona->regmap; in wm5110_probe()
2420 wm5110->core.adsp[i].cs_dsp.base = ARIZONA_DSP1_CONTROL_1 in wm5110_probe()
2422 wm5110->core.adsp[i].cs_dsp.mem = wm5110_dsp_regions[i]; in wm5110_probe()
2423 wm5110->core.adsp[i].cs_dsp.num_mems in wm5110_probe()
Dmadera.c914 if (!madera_can_change_grp_rate(priv, priv->adsp[adsp_num].cs_dsp.base)) { in madera_adsp_rate_put()
973 val = priv->adsp_rate_cache[dsp->cs_dsp.num - 1] << MADERA_DSP_RATE_SHIFT; in madera_write_adsp_clk_setting()
987 ret = regmap_write(dsp->cs_dsp.regmap, in madera_write_adsp_clk_setting()
988 dsp->cs_dsp.base + MADERA_DSP_CONFIG_2_OFFS, freq); in madera_write_adsp_clk_setting()
994 ret = regmap_update_bits(dsp->cs_dsp.regmap, in madera_write_adsp_clk_setting()
995 dsp->cs_dsp.base + MADERA_DSP_CONFIG_1_OFFS, in madera_write_adsp_clk_setting()
1005 dev_err(dsp->cs_dsp.dev, "Failed to set DSP%d clock: %d\n", dsp->cs_dsp.num, ret); in madera_write_adsp_clk_setting()
1027 ret = regmap_read(dsp->cs_dsp.regmap, dsp->cs_dsp.base, &cur); in madera_set_adsp_clk()
1036 new = priv->adsp_rate_cache[dsp->cs_dsp.num - 1] << MADERA_DSP_RATE_SHIFT; in madera_set_adsp_clk()
Dcs35l41-lib.c1245 void cs35l41_configure_cs_dsp(struct device *dev, struct regmap *reg, struct cs_dsp *dsp) in cs35l41_configure_cs_dsp()
/Linux-v6.1/drivers/firmware/cirrus/
Dcs_dsp.c278 bool (*validate_version)(struct cs_dsp *dsp, unsigned int version);
279 unsigned int (*parse_sizes)(struct cs_dsp *dsp,
283 int (*setup_algs)(struct cs_dsp *dsp);
287 void (*show_fw_status)(struct cs_dsp *dsp);
288 void (*stop_watchdog)(struct cs_dsp *dsp);
290 int (*enable_memory)(struct cs_dsp *dsp);
291 void (*disable_memory)(struct cs_dsp *dsp);
292 int (*lock_memory)(struct cs_dsp *dsp, unsigned int lock_regions);
294 int (*enable_core)(struct cs_dsp *dsp);
295 void (*disable_core)(struct cs_dsp *dsp);
[all …]
DMakefile3 obj-$(CONFIG_CS_DSP) += cs_dsp.o
/Linux-v6.1/sound/pci/hda/
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,
Dhda_cs_dsp_ctl.c139 struct cs_dsp *cs_dsp = cs_ctl->dsp; in hda_cs_dsp_control_add() local
147 dev_warn(cs_dsp->dev, "Unknown region type: %d\n", cs_ctl->alg_region.type); in hda_cs_dsp_control_add()
152 cs_dsp->name, hda_cs_dsp_fw_text[info->fw_type], cs_ctl->alg_region.alg); in hda_cs_dsp_control_add()
177 void hda_cs_dsp_add_controls(struct cs_dsp *dsp, const struct hda_cs_dsp_ctl_info *info) in hda_cs_dsp_add_controls()
210 int hda_cs_dsp_write_ctl(struct cs_dsp *dsp, const char *name, int type, in hda_cs_dsp_write_ctl()
235 int hda_cs_dsp_read_ctl(struct cs_dsp *dsp, const char *name, int type, in hda_cs_dsp_read_ctl()
Dcs35l41_hda.h72 struct cs_dsp cs_dsp; member
Dcs35l41_hda.c102 hda_cs_dsp_add_controls(&cs35l41->cs_dsp, &info); in cs35l41_add_controls()
114 const char * const dsp_name = cs35l41->cs_dsp.name; in cs35l41_request_firmware_file()
317 ret = hda_cs_dsp_write_ctl(&cs35l41->cs_dsp, CAL_AMBIENT_DSP_CTL_NAME, CAL_DSP_CTL_TYPE, in cs35l41_apply_calibration()
324 ret = hda_cs_dsp_write_ctl(&cs35l41->cs_dsp, CAL_R_DSP_CTL_NAME, CAL_DSP_CTL_TYPE, in cs35l41_apply_calibration()
330 ret = hda_cs_dsp_write_ctl(&cs35l41->cs_dsp, CAL_STATUS_DSP_CTL_NAME, CAL_DSP_CTL_TYPE, in cs35l41_apply_calibration()
337 ret = hda_cs_dsp_write_ctl(&cs35l41->cs_dsp, CAL_CHECKSUM_DSP_CTL_NAME, CAL_DSP_CTL_TYPE, in cs35l41_apply_calibration()
405 struct cs_dsp *dsp = &cs35l41->cs_dsp; in cs35l41_init_dsp()
414 ret = cs_dsp_halo_init(&cs35l41->cs_dsp); in cs35l41_init_dsp()
451 struct cs_dsp *dsp = &cs35l41->cs_dsp; in cs35l41_shutdown_dsp()
461 struct cs_dsp *dsp = &cs35l41->cs_dsp; in cs35l41_remove_dsp()
[all …]
/Linux-v6.1/include/sound/
Dcs35l41.h884 void cs35l41_configure_cs_dsp(struct device *dev, struct regmap *reg, struct cs_dsp *dsp);