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;
817 struct wm9713_priv *wm9713 = snd_soc_component_get_drvdata(component);
826 wm9713->pll_in = 0;
868 wm9713->pll_in = freq_in;
1097 .name = "wm9713-hifi",
1113 .name = "wm9713-aux",
1123 .name = "wm9713-voice",
1182 struct wm9713_priv *wm9713 = snd_soc_component_get_drvdata(component);
1185 ret = snd_ac97_reset(wm9713->ac97, true, WM9713_VENDOR_ID,
1193 if (wm9713->pll_in)
1194 wm9713_set_pll(component, 0, wm9713->pll_in, 0);
1207 struct wm9713_priv *wm9713 = snd_soc_component_get_drvdata(component);
1210 if (wm9713->mfd_pdata) {
1211 wm9713->ac97 = wm9713->mfd_pdata->ac97;
1212 regmap = wm9713->mfd_pdata->regmap;
1214 wm9713->ac97 = snd_soc_new_ac97_component(component, WM9713_VENDOR_ID,
1216 if (IS_ERR(wm9713->ac97))
1217 return PTR_ERR(wm9713->ac97);
1218 regmap = regmap_init_ac97(wm9713->ac97, &wm9713_regmap_config);
1220 snd_soc_free_ac97_component(wm9713->ac97);
1237 struct wm9713_priv *wm9713 = snd_soc_component_get_drvdata(component);
1239 if (IS_ENABLED(CONFIG_SND_SOC_AC97_BUS) && !wm9713->mfd_pdata) {
1241 snd_soc_free_ac97_component(wm9713->ac97);
1264 struct wm9713_priv *wm9713;
1266 wm9713 = devm_kzalloc(&pdev->dev, sizeof(*wm9713), GFP_KERNEL);
1267 if (wm9713 == NULL)
1270 mutex_init(&wm9713->lock);
1272 wm9713->mfd_pdata = dev_get_platdata(&pdev->dev);
1273 platform_set_drvdata(pdev, wm9713);
1281 .name = "wm9713-codec",