Deleted Added
full compact
sb8.c (119853) sb8.c (126695)
1/*
2 * Copyright (c) 1999 Cameron Grant <cg@freebsd.org>
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.

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

33
34#include <dev/sound/isa/sb.h>
35#include <dev/sound/chip.h>
36
37#include <isa/isavar.h>
38
39#include "mixer_if.h"
40
1/*
2 * Copyright (c) 1999 Cameron Grant <cg@freebsd.org>
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.

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

33
34#include <dev/sound/isa/sb.h>
35#include <dev/sound/chip.h>
36
37#include <isa/isavar.h>
38
39#include "mixer_if.h"
40
41SND_DECLARE_FILE("$FreeBSD: head/sys/dev/sound/isa/sb8.c 119853 2003-09-07 16:28:03Z cg $");
41SND_DECLARE_FILE("$FreeBSD: head/sys/dev/sound/isa/sb8.c 126695 2004-03-06 15:52:42Z matk $");
42
43#define SB_DEFAULT_BUFSZ 4096
44
45static u_int32_t sb_fmt[] = {
46 AFMT_U8,
47 0
48};
49static struct pcmchan_caps sb200_playcaps = {4000, 23000, sb_fmt, 0};

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

725 /*maxsize*/sb->bufsize, /*nsegments*/1,
726 /*maxsegz*/0x3ffff, /*flags*/0,
727 /*lockfunc*/busdma_lock_mutex, /*lockarg*/&Giant,
728 &sb->parent_dmat) != 0) {
729 device_printf(dev, "unable to create dma tag\n");
730 goto no;
731 }
732
42
43#define SB_DEFAULT_BUFSZ 4096
44
45static u_int32_t sb_fmt[] = {
46 AFMT_U8,
47 0
48};
49static struct pcmchan_caps sb200_playcaps = {4000, 23000, sb_fmt, 0};

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

725 /*maxsize*/sb->bufsize, /*nsegments*/1,
726 /*maxsegz*/0x3ffff, /*flags*/0,
727 /*lockfunc*/busdma_lock_mutex, /*lockarg*/&Giant,
728 &sb->parent_dmat) != 0) {
729 device_printf(dev, "unable to create dma tag\n");
730 goto no;
731 }
732
733 snprintf(status, SND_STATUSLEN, "at io 0x%lx irq %ld drq %ld bufsz %u",
734 rman_get_start(sb->io_base), rman_get_start(sb->irq), rman_get_start(sb->drq), sb->bufsize);
733 snprintf(status, SND_STATUSLEN, "at io 0x%lx irq %ld drq %ld bufsz %u %s",
734 rman_get_start(sb->io_base), rman_get_start(sb->irq),
735 rman_get_start(sb->drq), sb->bufsize, PCM_KLDSTRING(snd_sb8));
735
736 if (pcm_register(dev, sb, 1, 1))
737 goto no;
738 pcm_addchan(dev, PCMDIR_REC, &sbchan_class, sb);
739 pcm_addchan(dev, PCMDIR_PLAY, &sbchan_class, sb);
740
741 pcm_setstatus(dev, status);
742

--- 45 unchanged lines hidden ---
736
737 if (pcm_register(dev, sb, 1, 1))
738 goto no;
739 pcm_addchan(dev, PCMDIR_REC, &sbchan_class, sb);
740 pcm_addchan(dev, PCMDIR_PLAY, &sbchan_class, sb);
741
742 pcm_setstatus(dev, status);
743

--- 45 unchanged lines hidden ---