Lines Matching defs:wm9712

3  * wm9712.c  --  ALSA Soc WM9712 codec support
220 struct wm9712_priv *wm9712 = snd_soc_component_get_drvdata(component);
232 mutex_lock(&wm9712->lock);
233 old = wm9712->hp_mixer[mixer];
235 wm9712->hp_mixer[mixer] |= mask;
237 wm9712->hp_mixer[mixer] &= ~mask;
239 change = old != wm9712->hp_mixer[mixer];
244 if ((wm9712->hp_mixer[0] & mask) ||
245 (wm9712->hp_mixer[1] & mask))
254 mutex_unlock(&wm9712->lock);
264 struct wm9712_priv *wm9712 = snd_soc_component_get_drvdata(component);
273 (wm9712->hp_mixer[mixer] >> shift) & 1;
565 .name = "wm9712-hifi",
581 .name = "wm9712-aux",
613 struct wm9712_priv *wm9712 = snd_soc_component_get_drvdata(component);
616 ret = snd_ac97_reset(wm9712->ac97, true, WM9712_VENDOR_ID,
631 struct wm9712_priv *wm9712 = snd_soc_component_get_drvdata(component);
634 if (wm9712->mfd_pdata) {
635 wm9712->ac97 = wm9712->mfd_pdata->ac97;
636 regmap = wm9712->mfd_pdata->regmap;
640 wm9712->ac97 = snd_soc_new_ac97_component(component, WM9712_VENDOR_ID,
642 if (IS_ERR(wm9712->ac97)) {
643 ret = PTR_ERR(wm9712->ac97);
649 regmap = regmap_init_ac97(wm9712->ac97, &wm9712_regmap_config);
651 snd_soc_free_ac97_component(wm9712->ac97);
668 struct wm9712_priv *wm9712 = snd_soc_component_get_drvdata(component);
670 if (IS_ENABLED(CONFIG_SND_SOC_AC97_BUS) && !wm9712->mfd_pdata) {
672 snd_soc_free_ac97_component(wm9712->ac97);
695 struct wm9712_priv *wm9712;
697 wm9712 = devm_kzalloc(&pdev->dev, sizeof(*wm9712), GFP_KERNEL);
698 if (wm9712 == NULL)
701 mutex_init(&wm9712->lock);
703 wm9712->mfd_pdata = dev_get_platdata(&pdev->dev);
704 platform_set_drvdata(pdev, wm9712);
712 .name = "wm9712-codec",