envy24.c (172568) | envy24.c (188480) |
---|---|
1/* 2 * Copyright (c) 2001 Katsurajima Naoto <raven@katsurajima.seya.yokohama.jp> 3 * All rights reserved. 4 * 5 * Redistribution and use in source and binary forms, with or without 6 * modification, are permitted provided that the following conditions 7 * are met: 8 * 1. Redistributions of source code must retain the above copyright --- 6 unchanged lines hidden (view full) --- 15 * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE 16 * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE 17 * ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE 18 * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 19 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 20 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 21 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHERIN CONTRACT, STRICT 22 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY | 1/* 2 * Copyright (c) 2001 Katsurajima Naoto <raven@katsurajima.seya.yokohama.jp> 3 * All rights reserved. 4 * 5 * Redistribution and use in source and binary forms, with or without 6 * modification, are permitted provided that the following conditions 7 * are met: 8 * 1. Redistributions of source code must retain the above copyright --- 6 unchanged lines hidden (view full) --- 15 * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE 16 * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE 17 * ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE 18 * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 19 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 20 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 21 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHERIN CONTRACT, STRICT 22 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY |
23 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THEPOSSIBILITY OF | 23 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF |
24 * SUCH DAMAGE. 25 * 26 */ 27 28#include <dev/sound/pcm/sound.h> 29#include <dev/sound/pcm/ac97.h> 30#include <dev/sound/pci/spicds.h> 31#include <dev/sound/pci/envy24.h> 32 33#include <dev/pci/pcireg.h> 34#include <dev/pci/pcivar.h> 35 36#include "mixer_if.h" 37 | 24 * SUCH DAMAGE. 25 * 26 */ 27 28#include <dev/sound/pcm/sound.h> 29#include <dev/sound/pcm/ac97.h> 30#include <dev/sound/pci/spicds.h> 31#include <dev/sound/pci/envy24.h> 32 33#include <dev/pci/pcireg.h> 34#include <dev/pci/pcivar.h> 35 36#include "mixer_if.h" 37 |
38SND_DECLARE_FILE("$FreeBSD: head/sys/dev/sound/pci/envy24.c 172568 2007-10-12 06:03:46Z kevlo $"); | 38SND_DECLARE_FILE("$FreeBSD: head/sys/dev/sound/pci/envy24.c 188480 2009-02-11 10:29:45Z netchild $"); |
39 40MALLOC_DEFINE(M_ENVY24, "envy24", "envy24 audio"); 41 42/* -------------------------------------------------------------------- */ 43 44struct sc_info; 45 46#define ENVY24_PLAY_CHNUM 10 --- 226 unchanged lines hidden (view full) --- 273 NULL, /* setrate */ 274}; 275 276static struct cfg_info cfg_table[] = { 277 { 278 "Envy24 audio (M Audio Delta Dio 2496)", 279 0x1412, 0xd631, 280 0x10, 0x80, 0xf0, 0x03, | 39 40MALLOC_DEFINE(M_ENVY24, "envy24", "envy24 audio"); 41 42/* -------------------------------------------------------------------- */ 43 44struct sc_info; 45 46#define ENVY24_PLAY_CHNUM 10 --- 226 unchanged lines hidden (view full) --- 273 NULL, /* setrate */ 274}; 275 276static struct cfg_info cfg_table[] = { 277 { 278 "Envy24 audio (M Audio Delta Dio 2496)", 279 0x1412, 0xd631, 280 0x10, 0x80, 0xf0, 0x03, |
281 0xff, 0x00, 0x00, | 281 0x02, 0xc0, 0xfd, |
282 0x10, 0x20, 0x40, 0x00, 0x00, 283 0x00, 284 &delta_codec, 285 }, 286 { 287 "Envy24 audio (Terratec DMX 6fire)", 288 0x153b, 0x1138, 289 0x2f, 0x80, 0xf0, 0x03, --- 6 unchanged lines hidden (view full) --- 296 "Envy24 audio (M Audio Audiophile 2496)", 297 0x1412, 0xd634, 298 0x10, 0x80, 0x72, 0x03, 299 0x04, 0xfe, 0xfb, 300 0x08, 0x02, 0x20, 0x00, 0x01, 301 0x00, 302 &delta_codec, 303 }, | 282 0x10, 0x20, 0x40, 0x00, 0x00, 283 0x00, 284 &delta_codec, 285 }, 286 { 287 "Envy24 audio (Terratec DMX 6fire)", 288 0x153b, 0x1138, 289 0x2f, 0x80, 0xf0, 0x03, --- 6 unchanged lines hidden (view full) --- 296 "Envy24 audio (M Audio Audiophile 2496)", 297 0x1412, 0xd634, 298 0x10, 0x80, 0x72, 0x03, 299 0x04, 0xfe, 0xfb, 300 0x08, 0x02, 0x20, 0x00, 0x01, 301 0x00, 302 &delta_codec, 303 }, |
304 { 305 "Envy24 audio (M Audio Delta 66)", 306 0x1412, 0xd632, 307 0x15, 0x80, 0xf0, 0x03, 308 0x02, 0xc0, 0xfd, 309 0x10, 0x20, 0x40, 0x00, 0x00, 310 0x00, 311 &delta_codec, 312 }, 313 { 314 "Envy24 audio (M Audio Delta 44)", 315 0x1412, 0xd633, 316 0x15, 0x80, 0xf0, 0x00, 317 0x02, 0xc0, 0xfd, 318 0x10, 0x20, 0x40, 0x00, 0x00, 319 0x00, 320 &delta_codec, 321 }, 322 { 323 "Envy24 audio (M Audio Delta 1010)", 324 0x1412, 0xd630, 325 0x1f, 0x80, 0xf0, 0x03, 326 0x22, 0xd0, 0xdd, 327 0x10, 0x20, 0x40, 0x00, 0x00, 328 0x00, 329 &delta_codec, 330 }, 331 { 332 "Envy24 audio (M Audio Delta 1010LT)", 333 0x1412, 0xd63b, 334 0x1f, 0x80, 0x72, 0x03, 335 0x04, 0x7e, 0xfb, 336 0x08, 0x02, 0x70, 0x00, 0x00, 337 0x00, 338 &delta_codec, 339 }, 340 { 341 "Envy24 audio (Terratec EWX 2496)", 342 0x153b, 0x1130, 343 0x10, 0x80, 0xf0, 0x03, 344 0xc0, 0x3f, 0x3f, 345 0x10, 0x20, 0x01, 0x01, 0x00, 346 0x00, 347 &delta_codec, 348 }, |
|
304 { 305 "Envy24 audio (Generic)", 306 0, 0, 307 0x0f, 0x00, 0x01, 0x03, 308 0xff, 0x00, 0x00, 309 0x10, 0x20, 0x40, 0x00, 0x00, 310 0x00, 311 &delta_codec, /* default codec routines */ --- 2343 unchanged lines hidden --- | 349 { 350 "Envy24 audio (Generic)", 351 0, 0, 352 0x0f, 0x00, 0x01, 0x03, 353 0xff, 0x00, 0x00, 354 0x10, 0x20, 0x40, 0x00, 0x00, 355 0x00, 356 &delta_codec, /* default codec routines */ --- 2343 unchanged lines hidden --- |