Home
last modified time | relevance | path

Searched refs:sigmadsp (Results 1 – 9 of 9) sorted by relevance

/kernel/linux/linux-5.10/sound/soc/codecs/
Dsigmadsp.c92 static int sigmadsp_write(struct sigmadsp *sigmadsp, unsigned int addr, in sigmadsp_write() argument
95 return sigmadsp->write(sigmadsp->control_data, addr, data, len); in sigmadsp_write()
98 static int sigmadsp_read(struct sigmadsp *sigmadsp, unsigned int addr, in sigmadsp_read() argument
101 return sigmadsp->read(sigmadsp->control_data, addr, data, len); in sigmadsp_read()
115 static int sigmadsp_ctrl_write(struct sigmadsp *sigmadsp, in sigmadsp_ctrl_write() argument
119 if (ctrl->num_bytes <= 20 && sigmadsp->ops && sigmadsp->ops->safeload) in sigmadsp_ctrl_write()
120 return sigmadsp->ops->safeload(sigmadsp, ctrl->addr, data, in sigmadsp_ctrl_write()
123 return sigmadsp_write(sigmadsp, ctrl->addr, data, in sigmadsp_ctrl_write()
131 struct sigmadsp *sigmadsp = snd_kcontrol_chip(kcontrol); in sigmadsp_ctrl_put() local
135 mutex_lock(&sigmadsp->lock); in sigmadsp_ctrl_put()
[all …]
Dsigmadsp.h17 struct sigmadsp;
22 int (*safeload)(struct sigmadsp *sigmadsp, unsigned int addr,
26 struct sigmadsp { struct
45 struct sigmadsp *devm_sigmadsp_init(struct device *dev, argument
47 void sigmadsp_reset(struct sigmadsp *sigmadsp);
49 int sigmadsp_restrict_params(struct sigmadsp *sigmadsp,
54 struct sigmadsp *devm_sigmadsp_init_regmap(struct device *dev,
57 struct sigmadsp *devm_sigmadsp_init_i2c(struct i2c_client *client,
60 int sigmadsp_attach(struct sigmadsp *sigmadsp,
62 int sigmadsp_setup(struct sigmadsp *sigmadsp, unsigned int rate);
[all …]
Dsigmadsp-regmap.c39 struct sigmadsp *devm_sigmadsp_init_regmap(struct device *dev, in devm_sigmadsp_init_regmap()
43 struct sigmadsp *sigmadsp; in devm_sigmadsp_init_regmap() local
45 sigmadsp = devm_sigmadsp_init(dev, ops, firmware_name); in devm_sigmadsp_init_regmap()
46 if (IS_ERR(sigmadsp)) in devm_sigmadsp_init_regmap()
47 return sigmadsp; in devm_sigmadsp_init_regmap()
49 sigmadsp->control_data = regmap; in devm_sigmadsp_init_regmap()
50 sigmadsp->write = sigmadsp_write_regmap; in devm_sigmadsp_init_regmap()
51 sigmadsp->read = sigmadsp_read_regmap; in devm_sigmadsp_init_regmap()
53 return sigmadsp; in devm_sigmadsp_init_regmap()
Dsigmadsp-i2c.c77 struct sigmadsp *devm_sigmadsp_init_i2c(struct i2c_client *client, in devm_sigmadsp_init_i2c()
80 struct sigmadsp *sigmadsp; in devm_sigmadsp_init_i2c() local
82 sigmadsp = devm_sigmadsp_init(&client->dev, ops, firmware_name); in devm_sigmadsp_init_i2c()
83 if (IS_ERR(sigmadsp)) in devm_sigmadsp_init_i2c()
84 return sigmadsp; in devm_sigmadsp_init_i2c()
86 sigmadsp->control_data = client; in devm_sigmadsp_init_i2c()
87 sigmadsp->write = sigmadsp_write_i2c; in devm_sigmadsp_init_i2c()
88 sigmadsp->read = sigmadsp_read_i2c; in devm_sigmadsp_init_i2c()
90 return sigmadsp; in devm_sigmadsp_init_i2c()
Dadau17x1.c524 if (adau->sigmadsp) { in adau17x1_hw_params()
753 if (adau->sigmadsp) in adau17x1_startup()
754 return sigmadsp_restrict_params(adau->sigmadsp, substream); in adau17x1_startup()
872 if (adau->sigmadsp->current_samplerate == rate) in adau17x1_setup_firmware()
889 ret = sigmadsp_setup(adau->sigmadsp, rate); in adau17x1_setup_firmware()
924 if (!adau->sigmadsp) in adau17x1_add_widgets()
927 ret = sigmadsp_attach(adau->sigmadsp, component); in adau17x1_add_widgets()
978 static int adau17x1_safeload(struct sigmadsp *sigmadsp, unsigned int addr, in adau17x1_safeload() argument
992 ret = regmap_raw_write(sigmadsp->control_data, in adau17x1_safeload()
998 ret = regmap_raw_write(sigmadsp->control_data, in adau17x1_safeload()
[all …]
Dadau1701.c118 struct sigmadsp *sigmadsp; member
256 static int adau1701_safeload(struct sigmadsp *sigmadsp, unsigned int addr, in adau1701_safeload() argument
259 struct i2c_client *client = to_i2c_client(sigmadsp->dev); in adau1701_safeload()
306 sigmadsp_reset(adau1701->sigmadsp); in adau1701_reset()
348 ret = sigmadsp_setup(adau1701->sigmadsp, rate); in adau1701_reset()
622 return sigmadsp_restrict_params(adau1701->sigmadsp, substream); in adau1701_startup()
673 ret = sigmadsp_attach(adau1701->sigmadsp, component); in adau1701_probe()
882 adau1701->sigmadsp = devm_sigmadsp_init_i2c(client, in adau1701_i2c_probe()
884 if (IS_ERR(adau1701->sigmadsp)) { in adau1701_i2c_probe()
885 ret = PTR_ERR(adau1701->sigmadsp); in adau1701_i2c_probe()
Dadau17x1.h53 struct sigmadsp *sigmadsp; member
DMakefile194 snd-soc-sigmadsp-objs := sigmadsp.o
195 snd-soc-sigmadsp-i2c-objs := sigmadsp-i2c.o
196 snd-soc-sigmadsp-regmap-objs := sigmadsp-regmap.o
502 obj-$(CONFIG_SND_SOC_SIGMADSP) += snd-soc-sigmadsp.o
503 obj-$(CONFIG_SND_SOC_SIGMADSP_I2C) += snd-soc-sigmadsp-i2c.o
504 obj-$(CONFIG_SND_SOC_SIGMADSP_REGMAP) += snd-soc-sigmadsp-regmap.o
/kernel/linux/linux-5.10/
DMAINTAINERS1101 F: sound/soc/codecs/sigmadsp.*