1/*- 2 * Copyright (c) 1999 Cameron Grant <cg@freebsd.org> 3 * Copyright (c) 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 170521 2007-06-11 00:49:46Z ariff $"); |
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}; --- 582 unchanged lines hidden (view full) --- 632 return ch->blksz; 633} 634 635static int 636sbchan_trigger(kobj_t obj, void *data, int go) 637{ 638 struct sb_chinfo *ch = data; 639 |
640 if (!PCMTRIG_COMMON(go)) |
641 return 0; 642 643 sndbuf_dma(ch->buffer, go); 644 if (go == PCMTRIG_START) 645 sb_start(ch); 646 else 647 sb_stop(ch); 648 return 0; --- 158 unchanged lines hidden --- |