SND_AC97_BUS(9) Control/Mixer API SND_AC97_BUS(9)NAMEsnd_ac97_bus - create an AC97 bus component
SYNOPSIS
int snd_ac97_bus(struct snd_card * card, int num,
struct snd_ac97_bus_ops * ops, void * private_data,
struct snd_ac97_bus ** rbus);
ARGUMENTS
card
the card instance
num
the bus number
ops
the bus callbacks table
private_data
private data pointer for the new instance
rbus
the pointer to store the new AC97 bus instance.
DESCRIPTION
Creates an AC97 bus component. An struct snd_ac97_bus instance is newly
allocated and initialized.
The ops table must include valid callbacks (at least read and write).
The other callbacks, wait and reset, are not mandatory.
The clock is set to 48000. If another clock is needed, set
(*rbus)->clock manually.
The AC97 bus instance is registered as a low-level device, so you donĀ“t
have to release it manually.
Returns zero if successful, or a negative error code on failure.
COPYRIGHTKernel Hackers Manual 2.6. November 2013 SND_AC97_BUS(9)