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