1SND_AC97_BUS(9) Control/Mixer API SND_AC97_BUS(9)
2
3
4
6 snd_ac97_bus - create an AC97 bus component
7
9 int snd_ac97_bus(struct snd_card * card, int num,
10 struct snd_ac97_bus_ops * ops, void * private_data,
11 struct snd_ac97_bus ** rbus);
12
14 card
15 the card instance
16
17 num
18 the bus number
19
20 ops
21 the bus callbacks table
22
23 private_data
24 private data pointer for the new instance
25
26 rbus
27 the pointer to store the new AC97 bus instance.
28
30 Creates an AC97 bus component. An struct snd_ac97_bus instance is newly
31 allocated and initialized.
32
33 The ops table must include valid callbacks (at least read and write).
34 The other callbacks, wait and reset, are not mandatory.
35
36 The clock is set to 48000. If another clock is needed, set
37 (*rbus)->clock manually.
38
39 The AC97 bus instance is registered as a low-level device, so you donĀ“t
40 have to release it manually.
41
42 Returns zero if successful, or a negative error code on failure.
43
45Kernel Hackers Manual 2.6. June 2019 SND_AC97_BUS(9)