Lines Matching refs:wm9713
257 struct wm9713_priv *wm9713 = snd_soc_codec_get_drvdata(codec); in wm9713_hp_mixer_put() local
269 mutex_lock(&wm9713->lock); in wm9713_hp_mixer_put()
270 old = wm9713->hp_mixer[mixer]; in wm9713_hp_mixer_put()
272 wm9713->hp_mixer[mixer] |= mask; in wm9713_hp_mixer_put()
274 wm9713->hp_mixer[mixer] &= ~mask; in wm9713_hp_mixer_put()
276 change = old != wm9713->hp_mixer[mixer]; in wm9713_hp_mixer_put()
281 if ((wm9713->hp_mixer[0] & mask) || in wm9713_hp_mixer_put()
282 (wm9713->hp_mixer[1] & mask)) in wm9713_hp_mixer_put()
291 mutex_unlock(&wm9713->lock); in wm9713_hp_mixer_put()
301 struct wm9713_priv *wm9713 = snd_soc_codec_get_drvdata(codec); in wm9713_hp_mixer_get() local
310 (wm9713->hp_mixer[mixer] >> shift) & 1; in wm9713_hp_mixer_get()
678 struct wm9713_priv *wm9713 = snd_soc_codec_get_drvdata(codec); in ac97_read() local
684 return soc_ac97_ops->read(wm9713->ac97, reg); in ac97_read()
698 struct wm9713_priv *wm9713 = snd_soc_codec_get_drvdata(codec); in ac97_write() local
701 soc_ac97_ops->write(wm9713->ac97, reg, val); in ac97_write()
787 struct wm9713_priv *wm9713 = snd_soc_codec_get_drvdata(codec); in wm9713_set_pll() local
798 wm9713->pll_in = 0; in wm9713_set_pll()
842 wm9713->pll_in = freq_in; in wm9713_set_pll()
1128 struct wm9713_priv *wm9713 = snd_soc_codec_get_drvdata(codec); in wm9713_reset() local
1131 soc_ac97_ops->warm_reset(wm9713->ac97); in wm9713_reset()
1136 soc_ac97_ops->reset(wm9713->ac97); in wm9713_reset()
1138 soc_ac97_ops->warm_reset(wm9713->ac97); in wm9713_reset()
1196 struct wm9713_priv *wm9713 = snd_soc_codec_get_drvdata(codec); in wm9713_soc_resume() local
1207 if (wm9713->pll_in) in wm9713_soc_resume()
1208 wm9713_set_pll(codec, 0, wm9713->pll_in, 0); in wm9713_soc_resume()
1216 soc_ac97_ops->write(wm9713->ac97, i, cache[i>>1]); in wm9713_soc_resume()
1225 struct wm9713_priv *wm9713 = snd_soc_codec_get_drvdata(codec); in wm9713_soc_probe() local
1228 wm9713->ac97 = snd_soc_alloc_ac97_codec(codec); in wm9713_soc_probe()
1229 if (IS_ERR(wm9713->ac97)) in wm9713_soc_probe()
1230 return PTR_ERR(wm9713->ac97); in wm9713_soc_probe()
1239 ret = device_add(&wm9713->ac97->dev); in wm9713_soc_probe()
1250 put_device(&wm9713->ac97->dev); in wm9713_soc_probe()
1256 struct wm9713_priv *wm9713 = snd_soc_codec_get_drvdata(codec); in wm9713_soc_remove() local
1258 snd_soc_free_ac97_codec(wm9713->ac97); in wm9713_soc_remove()
1285 struct wm9713_priv *wm9713; in wm9713_probe() local
1287 wm9713 = devm_kzalloc(&pdev->dev, sizeof(*wm9713), GFP_KERNEL); in wm9713_probe()
1288 if (wm9713 == NULL) in wm9713_probe()
1291 mutex_init(&wm9713->lock); in wm9713_probe()
1293 platform_set_drvdata(pdev, wm9713); in wm9713_probe()