Lines Matching refs:ac97
145 struct snd_ac97 *ac97 = snd_soc_codec_get_drvdata(codec); in stac9766_ac97_write() local
150 soc_ac97_ops->write(ac97, reg, val); in stac9766_ac97_write()
157 soc_ac97_ops->write(ac97, reg, val); in stac9766_ac97_write()
165 struct snd_ac97 *ac97 = snd_soc_codec_get_drvdata(codec); in stac9766_ac97_read() local
170 val = soc_ac97_ops->read(ac97, reg - AC97_STAC_PAGE0); in stac9766_ac97_read()
181 val = soc_ac97_ops->read(ac97, reg); in stac9766_ac97_read()
247 struct snd_ac97 *ac97 = snd_soc_codec_get_drvdata(codec); in stac9766_codec_resume() local
249 return snd_ac97_reset(ac97, true, STAC9766_VENDOR_ID, in stac9766_codec_resume()
302 struct snd_ac97 *ac97; in stac9766_codec_probe() local
304 ac97 = snd_soc_new_ac97_codec(codec, STAC9766_VENDOR_ID, in stac9766_codec_probe()
306 if (IS_ERR(ac97)) in stac9766_codec_probe()
307 return PTR_ERR(ac97); in stac9766_codec_probe()
309 snd_soc_codec_set_drvdata(codec, ac97); in stac9766_codec_probe()
316 struct snd_ac97 *ac97 = snd_soc_codec_get_drvdata(codec); in stac9766_codec_remove() local
318 snd_soc_free_ac97_codec(ac97); in stac9766_codec_remove()