Deleted Added
full compact
es137x.c (50733) es137x.c (52046)
1/*
2 * Support the ENSONIQ AudioPCI board based on the ES1370 and Codec
3 * AK4531.
4 *
5 * Copyright (c) 1999 Cameron Grant <gandalf@vilnya.demon.co.uk>
6 * Copyright (c) 1998 by Joachim Kuebart. All rights reserved.
7 *
8 * Redistribution and use in source and binary forms, with or without

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

32 * INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
33 * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
34 * SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
35 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT,
36 * STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
37 * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED
38 * OF THE POSSIBILITY OF SUCH DAMAGE.
39 *
1/*
2 * Support the ENSONIQ AudioPCI board based on the ES1370 and Codec
3 * AK4531.
4 *
5 * Copyright (c) 1999 Cameron Grant <gandalf@vilnya.demon.co.uk>
6 * Copyright (c) 1998 by Joachim Kuebart. All rights reserved.
7 *
8 * Redistribution and use in source and binary forms, with or without

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

32 * INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
33 * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
34 * SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
35 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT,
36 * STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
37 * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED
38 * OF THE POSSIBILITY OF SUCH DAMAGE.
39 *
40 * $FreeBSD: head/sys/dev/sound/pci/es137x.c 50733 1999-09-01 06:58:27Z peter $
40 * $FreeBSD: head/sys/dev/sound/pci/es137x.c 52046 1999-10-09 03:50:27Z imp $
41 */
42
43#include "pci.h"
44#include "pcm.h"
45
46#include <dev/pcm/sound.h>
47#include <dev/pcm/pci/es1370.h>
48

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

481 if (es_init(es) == -1) {
482 device_printf(dev, "unable to initialize the card\n");
483 goto bad;
484 }
485 mixer_init(d, &es_mixer, es);
486
487 irqid = 0;
488 irq = bus_alloc_resource(dev, SYS_RES_IRQ, &irqid,
41 */
42
43#include "pci.h"
44#include "pcm.h"
45
46#include <dev/pcm/sound.h>
47#include <dev/pcm/pci/es1370.h>
48

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

481 if (es_init(es) == -1) {
482 device_printf(dev, "unable to initialize the card\n");
483 goto bad;
484 }
485 mixer_init(d, &es_mixer, es);
486
487 irqid = 0;
488 irq = bus_alloc_resource(dev, SYS_RES_IRQ, &irqid,
489 0, ~0, 1, RF_ACTIVE);
489 0, ~0, 1, RF_ACTIVE | RF_SHAREABLE);
490 if (!irq
491 || bus_setup_intr(dev, irq, INTR_TYPE_TTY, es_intr, es, &ih)) {
492 device_printf(dev, "unable to map interrupt\n");
493 goto bad;
494 }
495
496 if (bus_dma_tag_create(/*parent*/NULL, /*alignment*/2, /*boundary*/0,
497 /*lowaddr*/BUS_SPACE_MAXADDR_32BIT,

--- 46 unchanged lines hidden ---
490 if (!irq
491 || bus_setup_intr(dev, irq, INTR_TYPE_TTY, es_intr, es, &ih)) {
492 device_printf(dev, "unable to map interrupt\n");
493 goto bad;
494 }
495
496 if (bus_dma_tag_create(/*parent*/NULL, /*alignment*/2, /*boundary*/0,
497 /*lowaddr*/BUS_SPACE_MAXADDR_32BIT,

--- 46 unchanged lines hidden ---