Lines Matching defs:component
234 struct snd_soc_component *component = dai->component;
237 snd_soc_component_update_bits(component, AC97_EXTENDED_STATUS, 0x1, 0x1);
244 return snd_soc_component_write(component, reg, substream->runtime->rate);
288 static int wm9705_soc_suspend(struct snd_soc_component *component)
290 regcache_cache_bypass(component->regmap, true);
291 snd_soc_component_write(component, AC97_POWERDOWN, 0xffff);
292 regcache_cache_bypass(component->regmap, false);
297 static int wm9705_soc_resume(struct snd_soc_component *component)
299 struct wm9705_priv *wm9705 = snd_soc_component_get_drvdata(component);
307 snd_soc_component_cache_sync(component);
316 static int wm9705_soc_probe(struct snd_soc_component *component)
318 struct wm9705_priv *wm9705 = snd_soc_component_get_drvdata(component);
325 wm9705->ac97 = snd_soc_new_ac97_component(component, WM9705_VENDOR_ID,
328 dev_err(component->dev, "Failed to register AC97 codec\n");
341 snd_soc_component_set_drvdata(component, wm9705->ac97);
342 snd_soc_component_init_regmap(component, regmap);
347 static void wm9705_soc_remove(struct snd_soc_component *component)
349 struct wm9705_priv *wm9705 = snd_soc_component_get_drvdata(component);
352 snd_soc_component_exit_regmap(component);