Home
last modified time | relevance | path

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

/openbmc/linux/sound/soc/codecs/
H A Dsigmadsp.c95 static int sigmadsp_write(struct sigmadsp *sigmadsp, unsigned int addr, in sigmadsp_write() argument
98 return sigmadsp->write(sigmadsp->control_data, addr, data, len); in sigmadsp_write()
101 static int sigmadsp_read(struct sigmadsp *sigmadsp, unsigned int addr, in sigmadsp_read() argument
104 return sigmadsp->read(sigmadsp->control_data, addr, data, len); in sigmadsp_read()
118 static int sigmadsp_ctrl_write(struct sigmadsp *sigmadsp, in sigmadsp_ctrl_write() argument
122 if (ctrl->num_bytes <= 20 && sigmadsp->ops && sigmadsp->ops->safeload) in sigmadsp_ctrl_write()
123 return sigmadsp->ops->safeload(sigmadsp, ctrl->addr, data, in sigmadsp_ctrl_write()
126 return sigmadsp_write(sigmadsp, ctrl->addr, data, in sigmadsp_ctrl_write()
134 struct sigmadsp *sigmadsp = snd_kcontrol_chip(kcontrol); in sigmadsp_ctrl_put() local
138 mutex_lock(&sigmadsp->lock); in sigmadsp_ctrl_put()
[all …]
H A 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
48 int sigmadsp_restrict_params(struct sigmadsp *sigmadsp,
53 struct sigmadsp *devm_sigmadsp_init_regmap(struct device *dev,
56 struct sigmadsp *devm_sigmadsp_init_i2c(struct i2c_client *client,
59 int sigmadsp_attach(struct sigmadsp *sigmadsp,
61 int sigmadsp_setup(struct sigmadsp *sigmadsp, unsigned int samplerate);
62 void sigmadsp_reset(struct sigmadsp *sigmadsp);
H A 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()
H A 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()
H A Dadau17x1.c535 if (adau->sigmadsp) { in adau17x1_hw_params()
773 if (adau->sigmadsp) in adau17x1_startup()
774 return sigmadsp_restrict_params(adau->sigmadsp, substream); in adau17x1_startup()
892 if (adau->sigmadsp->current_samplerate == rate) in adau17x1_setup_firmware()
909 ret = sigmadsp_setup(adau->sigmadsp, rate); in adau17x1_setup_firmware()
944 if (!adau->sigmadsp) in adau17x1_add_widgets()
947 ret = sigmadsp_attach(adau->sigmadsp, component); in adau17x1_add_widgets()
998 static int adau17x1_safeload(struct sigmadsp *sigmadsp, unsigned int addr, in adau17x1_safeload() argument
1012 ret = regmap_raw_write(sigmadsp->control_data, in adau17x1_safeload()
1018 ret = regmap_raw_write(sigmadsp->control_data, in adau17x1_safeload()
[all …]
H A 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()
307 sigmadsp_reset(adau1701->sigmadsp); in adau1701_reset()
350 ret = sigmadsp_setup(adau1701->sigmadsp, rate); in adau1701_reset()
624 return sigmadsp_restrict_params(adau1701->sigmadsp, substream); in adau1701_startup()
675 ret = sigmadsp_attach(adau1701->sigmadsp, component); in adau1701_probe()
848 adau1701->sigmadsp = devm_sigmadsp_init_i2c(client, in adau1701_i2c_probe()
850 if (IS_ERR(adau1701->sigmadsp)) { in adau1701_i2c_probe()
851 ret = PTR_ERR(adau1701->sigmadsp); in adau1701_i2c_probe()
H A Dadau17x1.h54 struct sigmadsp *sigmadsp; member
H A DMakefile252 snd-soc-sigmadsp-objs := sigmadsp.o
253 snd-soc-sigmadsp-i2c-objs := sigmadsp-i2c.o
254 snd-soc-sigmadsp-regmap-objs := sigmadsp-regmap.o
632 obj-$(CONFIG_SND_SOC_SIGMADSP) += snd-soc-sigmadsp.o
633 obj-$(CONFIG_SND_SOC_SIGMADSP_I2C) += snd-soc-sigmadsp-i2c.o
634 obj-$(CONFIG_SND_SOC_SIGMADSP_REGMAP) += snd-soc-sigmadsp-regmap.o
/openbmc/linux/
H A DMAINTAINERS1339 F: sound/soc/codecs/sigmadsp.*
H A Dopengrok2.0.log[all...]
H A Dopengrok0.0.log3015 2024-12-28 20:09:06.530-0600 FINEST t1086 PendingFileCompleter.doRename: Moved pending as file: '/opengrok/data/xref/openbmc/linux/sound/soc/codecs/sigmadsp-i2c.c.gz'
[all...]
H A Dopengrok1.0.log[all...]