Lines Matching refs:ac97
30 static bool snd_ac97_check_id(struct snd_ac97 *ac97, unsigned int id, in snd_ac97_check_id() argument
33 ac97->id = ac97->bus->ops->read(ac97, AC97_VENDOR_ID1) << 16; in snd_ac97_check_id()
34 ac97->id |= ac97->bus->ops->read(ac97, AC97_VENDOR_ID2); in snd_ac97_check_id()
36 if (ac97->id == 0x0 || ac97->id == 0xffffffff) in snd_ac97_check_id()
39 if (id != 0 && id != (ac97->id & id_mask)) in snd_ac97_check_id()
59 int snd_ac97_reset(struct snd_ac97 *ac97, bool try_warm, unsigned int id, in snd_ac97_reset() argument
62 struct snd_ac97_bus_ops *ops = ac97->bus->ops; in snd_ac97_reset()
65 ops->warm_reset(ac97); in snd_ac97_reset()
66 if (snd_ac97_check_id(ac97, id, id_mask)) in snd_ac97_reset()
71 ops->reset(ac97); in snd_ac97_reset()
73 ops->warm_reset(ac97); in snd_ac97_reset()
75 if (snd_ac97_check_id(ac97, id, id_mask)) in snd_ac97_reset()