Deleted Added
full compact
cmi.c (78564) cmi.c (82180)
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

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

33 * TODO: MIDI
34 *
35 * SPDIF contributed by Gerhard Gonter <gonter@whisky.wu-wien.ac.at>.
36 *
37 * This card/code does not always manage to sample at 44100 - actual
38 * rate drifts slightly between recordings (usually 0-3%). No
39 * differences visible in register dumps between times that work and
40 * those that don't.
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

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

33 * TODO: MIDI
34 *
35 * SPDIF contributed by Gerhard Gonter <gonter@whisky.wu-wien.ac.at>.
36 *
37 * This card/code does not always manage to sample at 44100 - actual
38 * rate drifts slightly between recordings (usually 0-3%). No
39 * differences visible in register dumps between times that work and
40 * those that don't.
41 *
42 * $FreeBSD: head/sys/dev/sound/pci/cmi.c 78564 2001-06-21 19:45:59Z greid $
43 */
44
45#include <dev/sound/pcm/sound.h>
46#include <dev/sound/pci/cmireg.h>
47#include <dev/sound/isa/sb.h>
48
49#include <pci/pcireg.h>
50#include <pci/pcivar.h>
51
52#include <sys/sysctl.h>
53
54#include "mixer_if.h"
55
41 */
42
43#include <dev/sound/pcm/sound.h>
44#include <dev/sound/pci/cmireg.h>
45#include <dev/sound/isa/sb.h>
46
47#include <pci/pcireg.h>
48#include <pci/pcivar.h>
49
50#include <sys/sysctl.h>
51
52#include "mixer_if.h"
53
54SND_DECLARE_FILE("$FreeBSD: head/sys/dev/sound/pci/cmi.c 82180 2001-08-23 11:30:52Z cg $");
55
56/* Supported chip ID's */
57#define CMI8338A_PCI_ID 0x010013f6
58#define CMI8338B_PCI_ID 0x010113f6
59#define CMI8738_PCI_ID 0x011113f6
60#define CMI8738B_PCI_ID 0x011213f6
61
62/* Buffer size max is 64k for permitted DMA boundaries */
63#define CMI_BUFFER_SIZE 16384

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

943 DEVMETHOD(device_resume, cmi_resume),
944 DEVMETHOD(device_suspend, cmi_suspend),
945 { 0, 0 }
946};
947
948static driver_t cmi_driver = {
949 "pcm",
950 cmi_methods,
56/* Supported chip ID's */
57#define CMI8338A_PCI_ID 0x010013f6
58#define CMI8338B_PCI_ID 0x010113f6
59#define CMI8738_PCI_ID 0x011113f6
60#define CMI8738B_PCI_ID 0x011213f6
61
62/* Buffer size max is 64k for permitted DMA boundaries */
63#define CMI_BUFFER_SIZE 16384

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

943 DEVMETHOD(device_resume, cmi_resume),
944 DEVMETHOD(device_suspend, cmi_suspend),
945 { 0, 0 }
946};
947
948static driver_t cmi_driver = {
949 "pcm",
950 cmi_methods,
951 sizeof(struct snddev_info)
951 PCM_SOFTC_SIZE
952};
953
954DRIVER_MODULE(snd_cmipci, pci, cmi_driver, pcm_devclass, 0, 0);
955MODULE_DEPEND(snd_cmipci, snd_pcm, PCM_MINVER, PCM_PREFVER, PCM_MAXVER);
956MODULE_VERSION(snd_cmipci, 1);
952};
953
954DRIVER_MODULE(snd_cmipci, pci, cmi_driver, pcm_devclass, 0, 0);
955MODULE_DEPEND(snd_cmipci, snd_pcm, PCM_MINVER, PCM_PREFVER, PCM_MAXVER);
956MODULE_VERSION(snd_cmipci, 1);