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, WHETHER IN 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 THE POSSIBILITY OF 24 * SUCH DAMAGE. 25 * |
26 * $FreeBSD: head/sys/dev/sound/pci/aureal.c 55204 1999-12-29 03:46:54Z 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/aureal.h> --- 313 unchanged lines hidden (view full) --- 348 return blocksize; 349} 350 351static int 352auchan_trigger(void *data, int go) 353{ 354 struct au_chinfo *ch = data; 355 struct au_info *au = ch->parent; |
356 if (go == PCMTRIG_EMLDMAWR) return 0; |
357 if (ch->dir == PCMDIR_PLAY) { 358 au_setadb(au, 0x11, (go)? 1 : 0); 359 if (!go) { 360 au_wr(au, 0, 0xf800, 0, 4); 361 au_wr(au, 0, 0xf804, 0, 4); 362 au_delroute(au, 0x58); 363 au_delroute(au, 0x59); 364 } --- 325 unchanged lines hidden --- |