Lines Matching defs:wm9713
3 * wm9713.c -- ALSA Soc WM9713 codec support
30 #include "wm9713.h"
229 struct wm9713_priv *wm9713 = snd_soc_component_get_drvdata(component);
241 mutex_lock(&wm9713->lock);
242 old = wm9713->hp_mixer[mixer];
244 wm9713->hp_mixer[mixer] |= mask;
246 wm9713->hp_mixer[mixer] &= ~mask;
248 change = old != wm9713->hp_mixer[mixer];
253 if ((wm9713->hp_mixer[0] & mask) ||
254 (wm9713->hp_mixer[1] & mask))
263 mutex_unlock(&wm9713->lock);
273 struct wm9713_priv *wm9713 = snd_soc_component_get_drvdata(component);
282 (wm9713->hp_mixer[mixer] >> shift) & 1;
813 struct wm9713_priv *wm9713 = snd_soc_component_get_drvdata(component);
822 wm9713->pll_in = 0;
864 wm9713->pll_in = freq_in;
1093 .name = "wm9713-hifi",
1109 .name = "wm9713-aux",
1119 .name = "wm9713-voice",
1178 struct wm9713_priv *wm9713 = snd_soc_component_get_drvdata(component);
1181 ret = snd_ac97_reset(wm9713->ac97, true, WM9713_VENDOR_ID,
1189 if (wm9713->pll_in)
1190 wm9713_set_pll(component, 0, wm9713->pll_in, 0);
1203 struct wm9713_priv *wm9713 = snd_soc_component_get_drvdata(component);
1206 if (wm9713->mfd_pdata) {
1207 wm9713->ac97 = wm9713->mfd_pdata->ac97;
1208 regmap = wm9713->mfd_pdata->regmap;
1210 wm9713->ac97 = snd_soc_new_ac97_component(component, WM9713_VENDOR_ID,
1212 if (IS_ERR(wm9713->ac97))
1213 return PTR_ERR(wm9713->ac97);
1214 regmap = regmap_init_ac97(wm9713->ac97, &wm9713_regmap_config);
1216 snd_soc_free_ac97_component(wm9713->ac97);
1233 struct wm9713_priv *wm9713 = snd_soc_component_get_drvdata(component);
1235 if (IS_ENABLED(CONFIG_SND_SOC_AC97_BUS) && !wm9713->mfd_pdata) {
1237 snd_soc_free_ac97_component(wm9713->ac97);
1260 struct wm9713_priv *wm9713;
1262 wm9713 = devm_kzalloc(&pdev->dev, sizeof(*wm9713), GFP_KERNEL);
1263 if (wm9713 == NULL)
1266 mutex_init(&wm9713->lock);
1268 wm9713->mfd_pdata = dev_get_platdata(&pdev->dev);
1269 platform_set_drvdata(pdev, wm9713);
1277 .name = "wm9713-codec",