Lines Matching refs:component
204 static int ad1980_reset(struct snd_soc_component *component, int try_warm) in ad1980_reset() argument
206 struct snd_ac97 *ac97 = snd_soc_component_get_drvdata(component); in ad1980_reset()
222 snd_soc_component_write(component, AC97_AD_SERIAL_CFG, 0x9900); in ad1980_reset()
226 dev_err(component->dev, "Failed to reset: AC97 link error\n"); in ad1980_reset()
231 static int ad1980_soc_probe(struct snd_soc_component *component) in ad1980_soc_probe() argument
239 ac97 = snd_soc_new_ac97_component(component, 0, 0); in ad1980_soc_probe()
242 dev_err(component->dev, "Failed to register AC97 component: %d\n", ret); in ad1980_soc_probe()
252 snd_soc_component_init_regmap(component, regmap); in ad1980_soc_probe()
253 snd_soc_component_set_drvdata(component, ac97); in ad1980_soc_probe()
255 ret = ad1980_reset(component, 0); in ad1980_soc_probe()
259 vendor_id2 = snd_soc_component_read(component, AC97_VENDOR_ID2); in ad1980_soc_probe()
261 dev_warn(component->dev, in ad1980_soc_probe()
266 snd_soc_component_write(component, AC97_MASTER, 0x0000); in ad1980_soc_probe()
267 snd_soc_component_write(component, AC97_PCM, 0x0000); in ad1980_soc_probe()
268 snd_soc_component_write(component, AC97_REC_GAIN, 0x0000); in ad1980_soc_probe()
269 snd_soc_component_write(component, AC97_CENTER_LFE_MASTER, 0x0000); in ad1980_soc_probe()
270 snd_soc_component_write(component, AC97_SURROUND_MASTER, 0x0000); in ad1980_soc_probe()
273 ext_status = snd_soc_component_read(component, AC97_EXTENDED_STATUS); in ad1980_soc_probe()
274 snd_soc_component_write(component, AC97_EXTENDED_STATUS, ext_status&~0x3800); in ad1980_soc_probe()
279 snd_soc_component_exit_regmap(component); in ad1980_soc_probe()
285 static void ad1980_soc_remove(struct snd_soc_component *component) in ad1980_soc_remove() argument
287 struct snd_ac97 *ac97 = snd_soc_component_get_drvdata(component); in ad1980_soc_remove()
289 snd_soc_component_exit_regmap(component); in ad1980_soc_remove()