Lines Matching refs:dsp
56 mutex_lock(&cs_ctl->dsp->pwr_lock); in hda_cs_dsp_coeff_put()
58 mutex_unlock(&cs_ctl->dsp->pwr_lock); in hda_cs_dsp_coeff_put()
70 mutex_lock(&cs_ctl->dsp->pwr_lock); in hda_cs_dsp_coeff_get()
72 mutex_unlock(&cs_ctl->dsp->pwr_lock); in hda_cs_dsp_coeff_get()
108 dev_err(cs_ctl->dsp->dev, "KControl %s: length %zu exceeds maximum %d\n", name, in hda_cs_dsp_add_kcontrol()
128 dev_err(cs_ctl->dsp->dev, "Failed to add KControl %s = %d\n", kcontrol.name, ret); in hda_cs_dsp_add_kcontrol()
132 dev_dbg(cs_ctl->dsp->dev, "Added KControl: %s\n", kcontrol.name); in hda_cs_dsp_add_kcontrol()
139 struct cs_dsp *cs_dsp = cs_ctl->dsp; 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() argument
188 lockdep_assert_not_held(&dsp->pwr_lock); in hda_cs_dsp_add_controls()
190 list_for_each_entry(cs_ctl, &dsp->ctl_list, list) { 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() argument
217 mutex_lock(&dsp->pwr_lock); in hda_cs_dsp_write_ctl()
218 cs_ctl = cs_dsp_get_ctl(dsp, name, type, alg); in hda_cs_dsp_write_ctl()
220 mutex_unlock(&dsp->pwr_lock); 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() argument
240 mutex_lock(&dsp->pwr_lock); in hda_cs_dsp_read_ctl()
241 ret = cs_dsp_coeff_read_ctrl(cs_dsp_get_ctl(dsp, name, type, alg), 0, buf, len); in hda_cs_dsp_read_ctl()
242 mutex_unlock(&dsp->pwr_lock); in hda_cs_dsp_read_ctl()