diff options
author | tanimura <tanimura@FreeBSD.org> | 2004-07-16 04:00:08 +0000 |
---|---|---|
committer | tanimura <tanimura@FreeBSD.org> | 2004-07-16 04:00:08 +0000 |
commit | 217e78b7457004446a61ac3de506050009ca0bef (patch) | |
tree | 5419140a7517d7d82581984a80f60302e0c26f45 /sys/dev/sound/pcm/sound.c | |
parent | b89aa7ae3fe36fd58577692d8167156e891a56df (diff) | |
download | FreeBSD-src-217e78b7457004446a61ac3de506050009ca0bef.zip FreeBSD-src-217e78b7457004446a61ac3de506050009ca0bef.tar.gz |
Rename the sound device drivers:
- `sound'
The generic sound driver, always required.
- `snd_*'
Device-dependent drivers, named after the sound module names.
Configure accordingly to your hardware.
In addition, rename the `snd_pcm' module to `sound' in order to sync
with the driver names.
Suggested by: cg
Diffstat (limited to 'sys/dev/sound/pcm/sound.c')
-rw-r--r-- | sys/dev/sound/pcm/sound.c | 19 |
1 files changed, 12 insertions, 7 deletions
diff --git a/sys/dev/sound/pcm/sound.c b/sys/dev/sound/pcm/sound.c index f524143..4446b32 100644 --- a/sys/dev/sound/pcm/sound.c +++ b/sys/dev/sound/pcm/sound.c @@ -972,10 +972,15 @@ remok: /************************************************************************/ -static moduledata_t sndpcm_mod = { - "snd_pcm", - NULL, - NULL -}; -DECLARE_MODULE(snd_pcm, sndpcm_mod, SI_SUB_DRIVERS, SI_ORDER_MIDDLE); -MODULE_VERSION(snd_pcm, PCM_MODVER); +#if notyet +static int +sound_modevent(module_t mod, int type, void *data) +{ + return (midi_modevent(mod, type, data)); +} + +DEV_MODULE(sound, sound_modevent, NULL); +#else +DEV_MODULE(sound, NULL, NULL); +#endif /* notyet */ +MODULE_VERSION(sound, SOUND_MODVER); |