Lines Matching refs:wm97xx
253 struct wm97xx_priv *wm97xx; in wm97xx_ac97_probe() local
260 wm97xx = devm_kzalloc(ac97_codec_dev2dev(adev), in wm97xx_ac97_probe()
261 sizeof(*wm97xx), GFP_KERNEL); in wm97xx_ac97_probe()
262 if (!wm97xx) in wm97xx_ac97_probe()
265 wm97xx->dev = ac97_codec_dev2dev(adev); in wm97xx_ac97_probe()
266 wm97xx->ac97 = snd_ac97_compat_alloc(adev); in wm97xx_ac97_probe()
267 if (IS_ERR(wm97xx->ac97)) in wm97xx_ac97_probe()
268 return PTR_ERR(wm97xx->ac97); in wm97xx_ac97_probe()
271 ac97_set_drvdata(adev, wm97xx); in wm97xx_ac97_probe()
272 dev_info(wm97xx->dev, "wm97xx core found, id=0x%x\n", in wm97xx_ac97_probe()
275 codec_pdata = &wm97xx->codec_pdata; in wm97xx_ac97_probe()
276 codec_pdata->ac97 = wm97xx->ac97; in wm97xx_ac97_probe()
304 codec_pdata->regmap = devm_regmap_init_ac97(wm97xx->ac97, config); in wm97xx_ac97_probe()
310 ret = devm_mfd_add_devices(wm97xx->dev, PLATFORM_DEVID_NONE, in wm97xx_ac97_probe()
318 snd_ac97_compat_release(wm97xx->ac97); in wm97xx_ac97_probe()
324 struct wm97xx_priv *wm97xx = ac97_get_drvdata(adev); in wm97xx_ac97_remove() local
326 snd_ac97_compat_release(wm97xx->ac97); in wm97xx_ac97_remove()