Lines Matching full:ac97
3 * Linux driver model AC97 bus interface
18 * @ac97: The AC97 device to check
26 static bool snd_ac97_check_id(struct snd_ac97 *ac97, unsigned int id, in snd_ac97_check_id() argument
29 ac97->id = ac97->bus->ops->read(ac97, AC97_VENDOR_ID1) << 16; in snd_ac97_check_id()
30 ac97->id |= ac97->bus->ops->read(ac97, AC97_VENDOR_ID2); in snd_ac97_check_id()
32 if (ac97->id == 0x0 || ac97->id == 0xffffffff) in snd_ac97_check_id()
35 if (id != 0 && id != (ac97->id & id_mask)) in snd_ac97_check_id()
43 * @ac97: The AC'97 device to reset
55 int snd_ac97_reset(struct snd_ac97 *ac97, bool try_warm, unsigned int id, in snd_ac97_reset() argument
58 const struct snd_ac97_bus_ops *ops = ac97->bus->ops; in snd_ac97_reset()
61 ops->warm_reset(ac97); in snd_ac97_reset()
62 if (snd_ac97_check_id(ac97, id, id_mask)) in snd_ac97_reset()
67 ops->reset(ac97); in snd_ac97_reset()
69 ops->warm_reset(ac97); in snd_ac97_reset()
71 if (snd_ac97_check_id(ac97, id, id_mask)) in snd_ac97_reset()
79 .name = "ac97",
98 MODULE_DESCRIPTION("Legacy AC97 bus interface");