driver.c revision 132199
162484Scg/* 262484Scg * Copyright (c) 2000 Cameron Grant <cg@freebsd.org> 362484Scg * All rights reserved. 462484Scg * 562484Scg * Redistribution and use in source and binary forms, with or without 662484Scg * modification, are permitted provided that the following conditions 762484Scg * are met: 862484Scg * 1. Redistributions of source code must retain the above copyright 962484Scg * notice, this list of conditions and the following disclaimer. 1062484Scg * 2. Redistributions in binary form must reproduce the above copyright 1162484Scg * notice, this list of conditions and the following disclaimer in the 1262484Scg * documentation and/or other materials provided with the distribution. 1362484Scg * 1462484Scg * THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND 1562484Scg * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE 1662484Scg * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE 1762484Scg * ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE 1862484Scg * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 1962484Scg * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 2062484Scg * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 2162484Scg * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHERIN CONTRACT, STRICT 2262484Scg * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 2362484Scg * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THEPOSSIBILITY OF 2462484Scg * SUCH DAMAGE. 2562484Scg * 2662484Scg * $FreeBSD: head/sys/dev/sound/driver.c 132199 2004-07-15 08:26:07Z phk $ 2762484Scg */ 2862484Scg 2962484Scg#include <dev/sound/pcm/sound.h> 3062484Scg 3162484Scgstatic int 3262484Scgsnd_modevent(module_t mod, int type, void *data) 3362484Scg{ 3462484Scg 3562484Scg switch (type) { 3662484Scg case MOD_LOAD: 3762484Scg break; 3862484Scg case MOD_UNLOAD: 3962484Scg break; 4062484Scg default: 41132199Sphk return (EOPNOTSUPP); 4262484Scg break; 4362484Scg } 4462484Scg return 0; 4562484Scg} 4662484Scg 4762484Scgstatic moduledata_t snd_mod = { 4862484Scg "snd_driver", 4962484Scg snd_modevent, 5062484Scg NULL 5162484Scg}; 5262484ScgDECLARE_MODULE(snd_driver, snd_mod, SI_SUB_DRIVERS, SI_ORDER_MIDDLE); 5362484ScgMODULE_VERSION(snd_driver, 1); 5462484Scg 5562484ScgMODULE_DEPEND(snd_driver, snd_ad1816, 1, 1, 1); 5675885SorionMODULE_DEPEND(snd_driver, snd_als4000, 1, 1, 1); 5762484Scg/* MODULE_DEPEND(snd_driver, snd_aureal, 1, 1, 1); */ 5874429SorionMODULE_DEPEND(snd_driver, snd_cmi, 1, 1, 1); 5974429SorionMODULE_DEPEND(snd_driver, snd_cs4281, 1, 1, 1); 6062484ScgMODULE_DEPEND(snd_driver, snd_csa, 1, 1, 1); 6162484ScgMODULE_DEPEND(snd_driver, snd_csapcm, 1, 1, 1); 6262484ScgMODULE_DEPEND(snd_driver, snd_ds1, 1, 1, 1); 6362484ScgMODULE_DEPEND(snd_driver, snd_emu10k1, 1, 1, 1); 6462484ScgMODULE_DEPEND(snd_driver, snd_es137x, 1, 1, 1); 6562484ScgMODULE_DEPEND(snd_driver, snd_es1888, 1, 1, 1); 6662484ScgMODULE_DEPEND(snd_driver, snd_ess, 1, 1, 1); 6779047ScgMODULE_DEPEND(snd_driver, snd_fm801, 1, 1, 1); 6862484ScgMODULE_DEPEND(snd_driver, snd_gusc, 1, 1, 1); 6979047ScgMODULE_DEPEND(snd_driver, snd_ich, 1, 1, 1); 7066302SjhbMODULE_DEPEND(snd_driver, snd_maestro, 1, 1, 1); 7171901SscottlMODULE_DEPEND(snd_driver, snd_maestro3, 1, 1, 1); 7262484ScgMODULE_DEPEND(snd_driver, snd_mss, 1, 1, 1); 7362484ScgMODULE_DEPEND(snd_driver, snd_neomagic, 1, 1, 1); 7468140ScgMODULE_DEPEND(snd_driver, snd_sb8, 1, 1, 1); 7568140ScgMODULE_DEPEND(snd_driver, snd_sb16, 1, 1, 1); 7662484ScgMODULE_DEPEND(snd_driver, snd_sbc, 1, 1, 1); 7764466SnsayerMODULE_DEPEND(snd_driver, snd_solo, 1, 1, 1); 7862484ScgMODULE_DEPEND(snd_driver, snd_t4dwave, 1, 1, 1); 79125195SmrMODULE_DEPEND(snd_driver, snd_via8233, 1, 1, 1); 8064441ScgMODULE_DEPEND(snd_driver, snd_via82c686, 1, 1, 1); 8174429SorionMODULE_DEPEND(snd_driver, snd_vibes, 1, 1, 1); 82