Lines Matching refs:wm9713
229 struct wm9713_priv *wm9713 = snd_soc_component_get_drvdata(component); in wm9713_hp_mixer_put() local
241 mutex_lock(&wm9713->lock); in wm9713_hp_mixer_put()
242 old = wm9713->hp_mixer[mixer]; in wm9713_hp_mixer_put()
244 wm9713->hp_mixer[mixer] |= mask; in wm9713_hp_mixer_put()
246 wm9713->hp_mixer[mixer] &= ~mask; in wm9713_hp_mixer_put()
248 change = old != wm9713->hp_mixer[mixer]; in wm9713_hp_mixer_put()
253 if ((wm9713->hp_mixer[0] & mask) || in wm9713_hp_mixer_put()
254 (wm9713->hp_mixer[1] & mask)) in wm9713_hp_mixer_put()
263 mutex_unlock(&wm9713->lock); in wm9713_hp_mixer_put()
273 struct wm9713_priv *wm9713 = snd_soc_component_get_drvdata(component); in wm9713_hp_mixer_get() local
282 (wm9713->hp_mixer[mixer] >> shift) & 1; in wm9713_hp_mixer_get()
817 struct wm9713_priv *wm9713 = snd_soc_component_get_drvdata(component); in wm9713_set_pll() local
826 wm9713->pll_in = 0; in wm9713_set_pll()
868 wm9713->pll_in = freq_in; in wm9713_set_pll()
1182 struct wm9713_priv *wm9713 = snd_soc_component_get_drvdata(component); in wm9713_soc_resume() local
1185 ret = snd_ac97_reset(wm9713->ac97, true, WM9713_VENDOR_ID, in wm9713_soc_resume()
1193 if (wm9713->pll_in) in wm9713_soc_resume()
1194 wm9713_set_pll(component, 0, wm9713->pll_in, 0); in wm9713_soc_resume()
1207 struct wm9713_priv *wm9713 = snd_soc_component_get_drvdata(component); in wm9713_soc_probe() local
1210 if (wm9713->mfd_pdata) { in wm9713_soc_probe()
1211 wm9713->ac97 = wm9713->mfd_pdata->ac97; in wm9713_soc_probe()
1212 regmap = wm9713->mfd_pdata->regmap; in wm9713_soc_probe()
1214 wm9713->ac97 = snd_soc_new_ac97_component(component, WM9713_VENDOR_ID, in wm9713_soc_probe()
1216 if (IS_ERR(wm9713->ac97)) in wm9713_soc_probe()
1217 return PTR_ERR(wm9713->ac97); in wm9713_soc_probe()
1218 regmap = regmap_init_ac97(wm9713->ac97, &wm9713_regmap_config); in wm9713_soc_probe()
1220 snd_soc_free_ac97_component(wm9713->ac97); in wm9713_soc_probe()
1237 struct wm9713_priv *wm9713 = snd_soc_component_get_drvdata(component); in wm9713_soc_remove() local
1239 if (IS_ENABLED(CONFIG_SND_SOC_AC97_BUS) && !wm9713->mfd_pdata) { in wm9713_soc_remove()
1241 snd_soc_free_ac97_component(wm9713->ac97); in wm9713_soc_remove()
1264 struct wm9713_priv *wm9713; in wm9713_probe() local
1266 wm9713 = devm_kzalloc(&pdev->dev, sizeof(*wm9713), GFP_KERNEL); in wm9713_probe()
1267 if (wm9713 == NULL) in wm9713_probe()
1270 mutex_init(&wm9713->lock); in wm9713_probe()
1272 wm9713->mfd_pdata = dev_get_platdata(&pdev->dev); in wm9713_probe()
1273 platform_set_drvdata(pdev, wm9713); in wm9713_probe()