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;
569 .name = "wm9712-hifi",
585 .name = "wm9712-aux",
617 struct wm9712_priv *wm9712 = snd_soc_component_get_drvdata(component);
620 ret = snd_ac97_reset(wm9712->ac97, true, WM9712_VENDOR_ID,
635 struct wm9712_priv *wm9712 = snd_soc_component_get_drvdata(component);
638 if (wm9712->mfd_pdata) {
639 wm9712->ac97 = wm9712->mfd_pdata->ac97;
640 regmap = wm9712->mfd_pdata->regmap;
644 wm9712->ac97 = snd_soc_new_ac97_component(component, WM9712_VENDOR_ID,
646 if (IS_ERR(wm9712->ac97)) {
647 ret = PTR_ERR(wm9712->ac97);
653 regmap = regmap_init_ac97(wm9712->ac97, &wm9712_regmap_config);
655 snd_soc_free_ac97_component(wm9712->ac97);
672 struct wm9712_priv *wm9712 = snd_soc_component_get_drvdata(component);
674 if (IS_ENABLED(CONFIG_SND_SOC_AC97_BUS) && !wm9712->mfd_pdata) {
676 snd_soc_free_ac97_component(wm9712->ac97);
699 struct wm9712_priv *wm9712;
701 wm9712 = devm_kzalloc(&pdev->dev, sizeof(*wm9712), GFP_KERNEL);
702 if (wm9712 == NULL)
705 mutex_init(&wm9712->lock);
707 wm9712->mfd_pdata = dev_get_platdata(&pdev->dev);
708 platform_set_drvdata(pdev, wm9712);
716 .name = "wm9712-codec",