Lines Matching refs:wm9713
259 struct wm9713_priv *wm9713 = snd_soc_codec_get_drvdata(codec); in wm9713_hp_mixer_put() local
271 mutex_lock(&wm9713->lock); in wm9713_hp_mixer_put()
272 old = wm9713->hp_mixer[mixer]; in wm9713_hp_mixer_put()
274 wm9713->hp_mixer[mixer] |= mask; in wm9713_hp_mixer_put()
276 wm9713->hp_mixer[mixer] &= ~mask; in wm9713_hp_mixer_put()
278 change = old != wm9713->hp_mixer[mixer]; in wm9713_hp_mixer_put()
283 if ((wm9713->hp_mixer[0] & mask) || in wm9713_hp_mixer_put()
284 (wm9713->hp_mixer[1] & mask)) in wm9713_hp_mixer_put()
293 mutex_unlock(&wm9713->lock); in wm9713_hp_mixer_put()
303 struct wm9713_priv *wm9713 = snd_soc_codec_get_drvdata(codec); in wm9713_hp_mixer_get() local
312 (wm9713->hp_mixer[mixer] >> shift) & 1; in wm9713_hp_mixer_get()
680 struct wm9713_priv *wm9713 = snd_soc_codec_get_drvdata(codec); in ac97_read() local
686 return soc_ac97_ops->read(wm9713->ac97, reg); in ac97_read()
700 struct wm9713_priv *wm9713 = snd_soc_codec_get_drvdata(codec); in ac97_write() local
703 soc_ac97_ops->write(wm9713->ac97, reg, val); in ac97_write()
789 struct wm9713_priv *wm9713 = snd_soc_codec_get_drvdata(codec); in wm9713_set_pll() local
800 wm9713->pll_in = 0; in wm9713_set_pll()
844 wm9713->pll_in = freq_in; in wm9713_set_pll()
1175 struct wm9713_priv *wm9713 = snd_soc_codec_get_drvdata(codec); in wm9713_soc_resume() local
1179 ret = snd_ac97_reset(wm9713->ac97, true, WM9713_VENDOR_ID, in wm9713_soc_resume()
1187 if (wm9713->pll_in) in wm9713_soc_resume()
1188 wm9713_set_pll(codec, 0, wm9713->pll_in, 0); in wm9713_soc_resume()
1196 soc_ac97_ops->write(wm9713->ac97, i, cache[i>>1]); in wm9713_soc_resume()
1205 struct wm9713_priv *wm9713 = snd_soc_codec_get_drvdata(codec); in wm9713_soc_probe() local
1208 wm9713->ac97 = snd_soc_new_ac97_codec(codec, WM9713_VENDOR_ID, in wm9713_soc_probe()
1210 if (IS_ERR(wm9713->ac97)) in wm9713_soc_probe()
1211 return PTR_ERR(wm9713->ac97); in wm9713_soc_probe()
1222 struct wm9713_priv *wm9713 = snd_soc_codec_get_drvdata(codec); in wm9713_soc_remove() local
1224 snd_soc_free_ac97_codec(wm9713->ac97); in wm9713_soc_remove()
1251 struct wm9713_priv *wm9713; in wm9713_probe() local
1253 wm9713 = devm_kzalloc(&pdev->dev, sizeof(*wm9713), GFP_KERNEL); in wm9713_probe()
1254 if (wm9713 == NULL) in wm9713_probe()
1257 mutex_init(&wm9713->lock); in wm9713_probe()
1259 platform_set_drvdata(pdev, wm9713); in wm9713_probe()