Deleted Added
sdiff udiff text old ( 53465 ) new ( 53553 )
full compact
1/*
2 * Copyright (c) 1999 Cameron Grant <gandalf@vilnya.demon.co.uk>
3 * Copyright 1997,1998 Luigi Rizzo.
4 *
5 * Derived from files in the Voxware 3.5 distribution,
6 * Copyright by Hannu Savolainen 1994, under the same copyright
7 * conditions.
8 * All rights reserved.

--- 14 unchanged lines hidden (view full) ---

23 * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
24 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
25 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
26 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
27 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
28 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
29 * SUCH DAMAGE.
30 *
31 * $FreeBSD: head/sys/dev/sound/isa/sb8.c 53465 1999-11-20 16:50:33Z cg $
32 */
33
34#include <dev/sound/pcm/sound.h>
35#if NPCM > 0
36
37#define __SB_MIXER_C__ /* XXX warning... */
38#include <dev/sound/isa/sb.h>
39
40/* channel interface */
41static void *sbchan_init(void *devinfo, snd_dbuf *b, pcm_channel *c, int dir);
42static int sbchan_setdir(void *data, int dir);
43static int sbchan_setformat(void *data, u_int32_t format);
44static int sbchan_setspeed(void *data, u_int32_t speed);
45static int sbchan_setblocksize(void *data, u_int32_t blocksize);
46static int sbchan_trigger(void *data, int go);

--- 1206 unchanged lines hidden (view full) ---

1253#if NPNP > 0
1254static int
1255sbpnp_probe(device_t dev)
1256{
1257 char *s = NULL;
1258 u_int32_t logical_id = isa_get_logicalid(dev);
1259
1260 switch(logical_id) {
1261 case 0x43008c0e: /* CTL0043 */
1262 case 0x01008c0e: /* CTL0001 */
1263 s = "Vibra16X";
1264 break;
1265
1266 case 0x31008c0e: /* CTL0031 */
1267 case 0x41008c0e: /* CTL0041 */
1268 case 0x42008c0e: /* CTL0042 */
1269 s = "SB16 PnP";
1270 break;
1271
1272 case 0x44008c0e: /* CTL0044 */
1273 s = "Creative SB AWE64 Gold";
1274 break;
1275
1276 case 0x45008c0e: /* CTL0045 */
1277 s = "Creative AWE64 PnP";
1278 break;
1279
1280 case 0x01100000: /* @@@1001 */
1281 s = "Avance Asound 110";
1282 break;
1283
1284 case 0x01200000: /* @@@2001 */
1285 s = "Avance Logic ALS120";
1286 break;
1287

--- 6 unchanged lines hidden (view full) ---

1294 break;
1295
1296 case 0x88187316: /* ESS1888 */
1297 s = "ESS1888";
1298 break;
1299 }
1300 if (s) {
1301 device_set_desc(dev, s);
1302 return 0;
1303 }
1304 return ENXIO;
1305}
1306
1307static int
1308sbpnp_attach(device_t dev)
1309{
1310 struct sb_info *sb;

--- 26 unchanged lines hidden (view full) ---

1337 sbpnp_methods,
1338 sizeof(snddev_info),
1339};
1340
1341DRIVER_MODULE(sbpnp, isa, sbpnp_driver, pcm_devclass, 0, 0);
1342
1343#endif /* NPNP > 0 */
1344
1345#endif /* NPCM > 0 */
1346
1347