Home
last modified time | relevance | path

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

/linux-4.1.27/sound/soc/codecs/
Dsigmadsp.c93 static int sigmadsp_write(struct sigmadsp *sigmadsp, unsigned int addr, in sigmadsp_write() argument
96 return sigmadsp->write(sigmadsp->control_data, addr, data, len); in sigmadsp_write()
99 static int sigmadsp_read(struct sigmadsp *sigmadsp, unsigned int addr, in sigmadsp_read() argument
102 return sigmadsp->read(sigmadsp->control_data, addr, data, len); in sigmadsp_read()
116 static int sigmadsp_ctrl_write(struct sigmadsp *sigmadsp, in sigmadsp_ctrl_write() argument
120 if (ctrl->num_bytes > 4 && ctrl->num_bytes <= 20 && sigmadsp->ops && in sigmadsp_ctrl_write()
121 sigmadsp->ops->safeload) in sigmadsp_ctrl_write()
122 return sigmadsp->ops->safeload(sigmadsp, ctrl->addr, data, in sigmadsp_ctrl_write()
125 return sigmadsp_write(sigmadsp, ctrl->addr, data, in sigmadsp_ctrl_write()
133 struct sigmadsp *sigmadsp = snd_kcontrol_chip(kcontrol); in sigmadsp_ctrl_put() local
[all …]
Dsigmadsp.h18 struct sigmadsp;
23 int (*safeload)(struct sigmadsp *sigmadsp, unsigned int addr,
27 struct sigmadsp { struct
46 struct sigmadsp *devm_sigmadsp_init(struct device *dev, argument
48 void sigmadsp_reset(struct sigmadsp *sigmadsp);
50 int sigmadsp_restrict_params(struct sigmadsp *sigmadsp,
55 struct sigmadsp *devm_sigmadsp_init_regmap(struct device *dev,
58 struct sigmadsp *devm_sigmadsp_init_i2c(struct i2c_client *client,
61 int sigmadsp_attach(struct sigmadsp *sigmadsp,
63 int sigmadsp_setup(struct sigmadsp *sigmadsp, unsigned int rate);
[all …]
Dsigmadsp-regmap.c40 struct sigmadsp *devm_sigmadsp_init_regmap(struct device *dev, in devm_sigmadsp_init_regmap()
44 struct sigmadsp *sigmadsp; in devm_sigmadsp_init_regmap() local
46 sigmadsp = devm_sigmadsp_init(dev, ops, firmware_name); in devm_sigmadsp_init_regmap()
47 if (IS_ERR(sigmadsp)) in devm_sigmadsp_init_regmap()
48 return sigmadsp; in devm_sigmadsp_init_regmap()
50 sigmadsp->control_data = regmap; in devm_sigmadsp_init_regmap()
51 sigmadsp->write = sigmadsp_write_regmap; in devm_sigmadsp_init_regmap()
52 sigmadsp->read = sigmadsp_read_regmap; in devm_sigmadsp_init_regmap()
54 return sigmadsp; in devm_sigmadsp_init_regmap()
Dsigmadsp-i2c.c75 struct sigmadsp *devm_sigmadsp_init_i2c(struct i2c_client *client, in devm_sigmadsp_init_i2c()
78 struct sigmadsp *sigmadsp; in devm_sigmadsp_init_i2c() local
80 sigmadsp = devm_sigmadsp_init(&client->dev, ops, firmware_name); in devm_sigmadsp_init_i2c()
81 if (IS_ERR(sigmadsp)) in devm_sigmadsp_init_i2c()
82 return sigmadsp; in devm_sigmadsp_init_i2c()
84 sigmadsp->control_data = client; in devm_sigmadsp_init_i2c()
85 sigmadsp->write = sigmadsp_write_i2c; in devm_sigmadsp_init_i2c()
86 sigmadsp->read = sigmadsp_read_i2c; in devm_sigmadsp_init_i2c()
88 return sigmadsp; in devm_sigmadsp_init_i2c()
Dadau1701.c114 struct sigmadsp *sigmadsp; member
251 static int adau1701_safeload(struct sigmadsp *sigmadsp, unsigned int addr, in adau1701_safeload() argument
254 struct i2c_client *client = to_i2c_client(sigmadsp->dev); in adau1701_safeload()
301 sigmadsp_reset(adau1701->sigmadsp); in adau1701_reset()
343 ret = sigmadsp_setup(adau1701->sigmadsp, rate); in adau1701_reset()
618 return sigmadsp_restrict_params(adau1701->sigmadsp, substream); in adau1701_startup()
668 ret = sigmadsp_attach(adau1701->sigmadsp, &codec->component); in adau1701_probe()
796 adau1701->sigmadsp = devm_sigmadsp_init_i2c(client, in adau1701_i2c_probe()
798 if (IS_ERR(adau1701->sigmadsp)) in adau1701_i2c_probe()
799 return PTR_ERR(adau1701->sigmadsp); in adau1701_i2c_probe()
Dadau17x1.c361 if (adau->sigmadsp) { in adau17x1_hw_params()
677 if (adau->sigmadsp) in adau17x1_startup()
678 return sigmadsp_restrict_params(adau->sigmadsp, substream); in adau17x1_startup()
794 ret = sigmadsp_setup(adau->sigmadsp, rate); in adau17x1_setup_firmware()
826 if (!adau->sigmadsp) in adau17x1_add_widgets()
829 ret = sigmadsp_attach(adau->sigmadsp, &codec->component); in adau17x1_add_widgets()
897 adau->sigmadsp = devm_sigmadsp_init_regmap(dev, regmap, NULL, in adau17x1_probe()
899 if (IS_ERR(adau->sigmadsp)) { in adau17x1_probe()
901 PTR_ERR(adau->sigmadsp)); in adau17x1_probe()
902 adau->sigmadsp = NULL; in adau17x1_probe()
Dadau17x1.h47 struct sigmadsp *sigmadsp; member
DMakefile91 snd-soc-sigmadsp-objs := sigmadsp.o
92 snd-soc-sigmadsp-i2c-objs := sigmadsp-i2c.o
93 snd-soc-sigmadsp-regmap-objs := sigmadsp-regmap.o
274 obj-$(CONFIG_SND_SOC_SIGMADSP) += snd-soc-sigmadsp.o
275 obj-$(CONFIG_SND_SOC_SIGMADSP_I2C) += snd-soc-sigmadsp-i2c.o
276 obj-$(CONFIG_SND_SOC_SIGMADSP_REGMAP) += snd-soc-sigmadsp-regmap.o
/linux-4.1.27/
DMAINTAINERS711 F: sound/soc/codecs/sigmadsp.*