Lines Matching defs:wm9705
3 * wm9705.c -- ALSA Soc WM9705 codec support
258 .name = "wm9705-hifi",
276 .name = "wm9705-aux",
299 struct wm9705_priv *wm9705 = snd_soc_component_get_drvdata(component);
302 ret = snd_ac97_reset(wm9705->ac97, true, WM9705_VENDOR_ID,
318 struct wm9705_priv *wm9705 = snd_soc_component_get_drvdata(component);
321 if (wm9705->mfd_pdata) {
322 wm9705->ac97 = wm9705->mfd_pdata->ac97;
323 regmap = wm9705->mfd_pdata->regmap;
325 wm9705->ac97 = snd_soc_new_ac97_component(component, WM9705_VENDOR_ID,
327 if (IS_ERR(wm9705->ac97)) {
329 return PTR_ERR(wm9705->ac97);
332 regmap = regmap_init_ac97(wm9705->ac97, &wm9705_regmap_config);
334 snd_soc_free_ac97_component(wm9705->ac97);
341 snd_soc_component_set_drvdata(component, wm9705->ac97);
349 struct wm9705_priv *wm9705 = snd_soc_component_get_drvdata(component);
351 if (IS_ENABLED(CONFIG_SND_SOC_AC97_BUS) && !wm9705->mfd_pdata) {
353 snd_soc_free_ac97_component(wm9705->ac97);
375 struct wm9705_priv *wm9705;
377 wm9705 = devm_kzalloc(&pdev->dev, sizeof(*wm9705), GFP_KERNEL);
378 if (wm9705 == NULL)
381 wm9705->mfd_pdata = dev_get_platdata(&pdev->dev);
382 platform_set_drvdata(pdev, wm9705);
390 .name = "wm9705-codec",