Lines Matching refs:wm9712

185 	struct wm9712_priv *wm9712 = snd_soc_codec_get_drvdata(codec);  in wm9712_hp_mixer_put()  local
197 mutex_lock(&wm9712->lock); in wm9712_hp_mixer_put()
198 old = wm9712->hp_mixer[mixer]; in wm9712_hp_mixer_put()
200 wm9712->hp_mixer[mixer] |= mask; in wm9712_hp_mixer_put()
202 wm9712->hp_mixer[mixer] &= ~mask; in wm9712_hp_mixer_put()
204 change = old != wm9712->hp_mixer[mixer]; in wm9712_hp_mixer_put()
209 if ((wm9712->hp_mixer[0] & mask) || in wm9712_hp_mixer_put()
210 (wm9712->hp_mixer[1] & mask)) in wm9712_hp_mixer_put()
219 mutex_unlock(&wm9712->lock); in wm9712_hp_mixer_put()
229 struct wm9712_priv *wm9712 = snd_soc_codec_get_drvdata(codec); in wm9712_hp_mixer_get() local
238 (wm9712->hp_mixer[mixer] >> shift) & 1; in wm9712_hp_mixer_get()
491 struct wm9712_priv *wm9712 = snd_soc_codec_get_drvdata(codec); in ac97_read() local
497 return soc_ac97_ops->read(wm9712->ac97, reg); in ac97_read()
511 struct wm9712_priv *wm9712 = snd_soc_codec_get_drvdata(codec); in ac97_write() local
514 soc_ac97_ops->write(wm9712->ac97, reg, val); in ac97_write()
621 struct wm9712_priv *wm9712 = snd_soc_codec_get_drvdata(codec); in wm9712_soc_resume() local
625 ret = snd_ac97_reset(wm9712->ac97, true, WM9712_VENDOR_ID, in wm9712_soc_resume()
638 soc_ac97_ops->write(wm9712->ac97, i, cache[i>>1]); in wm9712_soc_resume()
647 struct wm9712_priv *wm9712 = snd_soc_codec_get_drvdata(codec); in wm9712_soc_probe() local
650 wm9712->ac97 = snd_soc_new_ac97_codec(codec, WM9712_VENDOR_ID, in wm9712_soc_probe()
652 if (IS_ERR(wm9712->ac97)) { in wm9712_soc_probe()
653 ret = PTR_ERR(wm9712->ac97); in wm9712_soc_probe()
666 struct wm9712_priv *wm9712 = snd_soc_codec_get_drvdata(codec); in wm9712_soc_remove() local
668 snd_soc_free_ac97_codec(wm9712->ac97); in wm9712_soc_remove()
695 struct wm9712_priv *wm9712; in wm9712_probe() local
697 wm9712 = devm_kzalloc(&pdev->dev, sizeof(*wm9712), GFP_KERNEL); in wm9712_probe()
698 if (wm9712 == NULL) in wm9712_probe()
701 mutex_init(&wm9712->lock); in wm9712_probe()
703 platform_set_drvdata(pdev, wm9712); in wm9712_probe()