t4dwave.c (56108) | t4dwave.c (56249) |
---|---|
1/* 2 * Copyright (c) 1999 Cameron Grant <gandalf@vilnya.demon.co.uk> 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 --- 9 unchanged lines hidden (view full) --- 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 24 * SUCH DAMAGE. 25 * | 1/* 2 * Copyright (c) 1999 Cameron Grant <gandalf@vilnya.demon.co.uk> 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 --- 9 unchanged lines hidden (view full) --- 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 24 * SUCH DAMAGE. 25 * |
26 * $FreeBSD: head/sys/dev/sound/pci/t4dwave.c 56108 2000-01-16 12:05:07Z cg $ | 26 * $FreeBSD: head/sys/dev/sound/pci/t4dwave.c 56249 2000-01-18 17:13:43Z cg $ |
27 */ 28 29#include "pci.h" 30#include "pcm.h" 31 32#include <dev/sound/pcm/sound.h> 33#include <dev/sound/pcm/ac97.h> 34#include <dev/sound/pci/t4dwave.h> --- 591 unchanged lines hidden (view full) --- 626 goto bad; 627 } 628 629 if (tr_init(tr) == -1) { 630 device_printf(dev, "unable to initialize the card\n"); 631 goto bad; 632 } 633 | 27 */ 28 29#include "pci.h" 30#include "pcm.h" 31 32#include <dev/sound/pcm/sound.h> 33#include <dev/sound/pcm/ac97.h> 34#include <dev/sound/pci/t4dwave.h> --- 591 unchanged lines hidden (view full) --- 626 goto bad; 627 } 628 629 if (tr_init(tr) == -1) { 630 device_printf(dev, "unable to initialize the card\n"); 631 goto bad; 632 } 633 |
634 codec = ac97_create(tr, tr_rdcd, tr_wrcd); | 634 codec = ac97_create(dev, tr, tr_rdcd, tr_wrcd); |
635 if (codec == NULL) goto bad; 636 mixer_init(d, &ac97_mixer, codec); 637 638 tr->irqid = 0; 639 tr->irq = bus_alloc_resource(dev, SYS_RES_IRQ, &tr->irqid, 640 0, ~0, 1, RF_ACTIVE | RF_SHAREABLE); 641 if (!tr->irq || 642 bus_setup_intr(dev, tr->irq, INTR_TYPE_TTY, tr_intr, tr, &tr->ih)) { --- 51 unchanged lines hidden --- | 635 if (codec == NULL) goto bad; 636 mixer_init(d, &ac97_mixer, codec); 637 638 tr->irqid = 0; 639 tr->irq = bus_alloc_resource(dev, SYS_RES_IRQ, &tr->irqid, 640 0, ~0, 1, RF_ACTIVE | RF_SHAREABLE); 641 if (!tr->irq || 642 bus_setup_intr(dev, tr->irq, INTR_TYPE_TTY, tr_intr, tr, &tr->ih)) { --- 51 unchanged lines hidden --- |