Lines Matching refs:wm9705
299 struct wm9705_priv *wm9705 = snd_soc_component_get_drvdata(component); in wm9705_soc_resume() local
302 ret = snd_ac97_reset(wm9705->ac97, true, WM9705_VENDOR_ID, in wm9705_soc_resume()
318 struct wm9705_priv *wm9705 = snd_soc_component_get_drvdata(component); in wm9705_soc_probe() local
321 if (wm9705->mfd_pdata) { in wm9705_soc_probe()
322 wm9705->ac97 = wm9705->mfd_pdata->ac97; in wm9705_soc_probe()
323 regmap = wm9705->mfd_pdata->regmap; in wm9705_soc_probe()
325 wm9705->ac97 = snd_soc_new_ac97_component(component, WM9705_VENDOR_ID, in wm9705_soc_probe()
327 if (IS_ERR(wm9705->ac97)) { in wm9705_soc_probe()
329 return PTR_ERR(wm9705->ac97); in wm9705_soc_probe()
332 regmap = regmap_init_ac97(wm9705->ac97, &wm9705_regmap_config); in wm9705_soc_probe()
334 snd_soc_free_ac97_component(wm9705->ac97); in wm9705_soc_probe()
341 snd_soc_component_set_drvdata(component, wm9705->ac97); in wm9705_soc_probe()
349 struct wm9705_priv *wm9705 = snd_soc_component_get_drvdata(component); in wm9705_soc_remove() local
351 if (IS_ENABLED(CONFIG_SND_SOC_AC97_BUS) && !wm9705->mfd_pdata) { in wm9705_soc_remove()
353 snd_soc_free_ac97_component(wm9705->ac97); in wm9705_soc_remove()
375 struct wm9705_priv *wm9705; in wm9705_probe() local
377 wm9705 = devm_kzalloc(&pdev->dev, sizeof(*wm9705), GFP_KERNEL); in wm9705_probe()
378 if (wm9705 == NULL) in wm9705_probe()
381 wm9705->mfd_pdata = dev_get_platdata(&pdev->dev); in wm9705_probe()
382 platform_set_drvdata(pdev, wm9705); in wm9705_probe()