cs4281.c (168847) | cs4281.c (170521) |
---|---|
1/*- 2 * Copyright (c) 2000 Orion Hodson <O.Hodson@cs.ucl.ac.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 --- 23 unchanged lines hidden (view full) --- 32#include <dev/sound/pcm/sound.h> 33#include <dev/sound/pcm/ac97.h> 34 35#include <dev/pci/pcireg.h> 36#include <dev/pci/pcivar.h> 37 38#include <dev/sound/pci/cs4281.h> 39 | 1/*- 2 * Copyright (c) 2000 Orion Hodson <O.Hodson@cs.ucl.ac.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 --- 23 unchanged lines hidden (view full) --- 32#include <dev/sound/pcm/sound.h> 33#include <dev/sound/pcm/ac97.h> 34 35#include <dev/pci/pcireg.h> 36#include <dev/pci/pcivar.h> 37 38#include <dev/sound/pci/cs4281.h> 39 |
40SND_DECLARE_FILE("$FreeBSD: head/sys/dev/sound/pci/cs4281.c 168847 2007-04-18 18:26:41Z ariff $"); | 40SND_DECLARE_FILE("$FreeBSD: head/sys/dev/sound/pci/cs4281.c 170521 2007-06-11 00:49:46Z ariff $"); |
41 42#define CS4281_DEFAULT_BUFSZ 16384 43 44/* Max fifo size for full duplex is 64 */ 45#define CS4281_FIFO_SIZE 15 46 47/* DMA Engine Indices */ 48#define CS4281_DMA_PLAY 0 --- 371 unchanged lines hidden (view full) --- 420{ 421 struct sc_chinfo *ch = data; 422 423 switch(go) { 424 case PCMTRIG_START: 425 adcdac_prog(ch); 426 adcdac_go(ch, 1); 427 break; | 41 42#define CS4281_DEFAULT_BUFSZ 16384 43 44/* Max fifo size for full duplex is 64 */ 45#define CS4281_FIFO_SIZE 15 46 47/* DMA Engine Indices */ 48#define CS4281_DMA_PLAY 0 --- 371 unchanged lines hidden (view full) --- 420{ 421 struct sc_chinfo *ch = data; 422 423 switch(go) { 424 case PCMTRIG_START: 425 adcdac_prog(ch); 426 adcdac_go(ch, 1); 427 break; |
428 case PCMTRIG_STOP: |
|
428 case PCMTRIG_ABORT: 429 adcdac_go(ch, 0); 430 break; 431 default: 432 break; 433 } 434 435 /* return 0 if ok */ --- 546 unchanged lines hidden --- | 429 case PCMTRIG_ABORT: 430 adcdac_go(ch, 0); 431 break; 432 default: 433 break; 434 } 435 436 /* return 0 if ok */ --- 546 unchanged lines hidden --- |