Lines Matching refs:wm9712
220 struct wm9712_priv *wm9712 = snd_soc_component_get_drvdata(component); in wm9712_hp_mixer_put() local
232 mutex_lock(&wm9712->lock); in wm9712_hp_mixer_put()
233 old = wm9712->hp_mixer[mixer]; in wm9712_hp_mixer_put()
235 wm9712->hp_mixer[mixer] |= mask; in wm9712_hp_mixer_put()
237 wm9712->hp_mixer[mixer] &= ~mask; in wm9712_hp_mixer_put()
239 change = old != wm9712->hp_mixer[mixer]; in wm9712_hp_mixer_put()
244 if ((wm9712->hp_mixer[0] & mask) || in wm9712_hp_mixer_put()
245 (wm9712->hp_mixer[1] & mask)) in wm9712_hp_mixer_put()
254 mutex_unlock(&wm9712->lock); in wm9712_hp_mixer_put()
264 struct wm9712_priv *wm9712 = snd_soc_component_get_drvdata(component); in wm9712_hp_mixer_get() local
273 (wm9712->hp_mixer[mixer] >> shift) & 1; in wm9712_hp_mixer_get()
617 struct wm9712_priv *wm9712 = snd_soc_component_get_drvdata(component); in wm9712_soc_resume() local
620 ret = snd_ac97_reset(wm9712->ac97, true, WM9712_VENDOR_ID, in wm9712_soc_resume()
635 struct wm9712_priv *wm9712 = snd_soc_component_get_drvdata(component); in wm9712_soc_probe() local
638 if (wm9712->mfd_pdata) { in wm9712_soc_probe()
639 wm9712->ac97 = wm9712->mfd_pdata->ac97; in wm9712_soc_probe()
640 regmap = wm9712->mfd_pdata->regmap; in wm9712_soc_probe()
644 wm9712->ac97 = snd_soc_new_ac97_component(component, WM9712_VENDOR_ID, in wm9712_soc_probe()
646 if (IS_ERR(wm9712->ac97)) { in wm9712_soc_probe()
647 ret = PTR_ERR(wm9712->ac97); in wm9712_soc_probe()
653 regmap = regmap_init_ac97(wm9712->ac97, &wm9712_regmap_config); in wm9712_soc_probe()
655 snd_soc_free_ac97_component(wm9712->ac97); in wm9712_soc_probe()
672 struct wm9712_priv *wm9712 = snd_soc_component_get_drvdata(component); in wm9712_soc_remove() local
674 if (IS_ENABLED(CONFIG_SND_SOC_AC97_BUS) && !wm9712->mfd_pdata) { in wm9712_soc_remove()
676 snd_soc_free_ac97_component(wm9712->ac97); in wm9712_soc_remove()
699 struct wm9712_priv *wm9712; in wm9712_probe() local
701 wm9712 = devm_kzalloc(&pdev->dev, sizeof(*wm9712), GFP_KERNEL); in wm9712_probe()
702 if (wm9712 == NULL) in wm9712_probe()
705 mutex_init(&wm9712->lock); in wm9712_probe()
707 wm9712->mfd_pdata = dev_get_platdata(&pdev->dev); in wm9712_probe()
708 platform_set_drvdata(pdev, wm9712); in wm9712_probe()