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