Deleted Added
full compact
fm801.c (142890) fm801.c (154127)
1/*-
2 * Copyright (c) 2000 Dmitry Dicky diwil@dataart.com
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

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

24 * SUCH DAMAGE.
25 */
26
27#include <dev/sound/pcm/sound.h>
28#include <dev/sound/pcm/ac97.h>
29#include <dev/pci/pcireg.h>
30#include <dev/pci/pcivar.h>
31
1/*-
2 * Copyright (c) 2000 Dmitry Dicky diwil@dataart.com
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

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

24 * SUCH DAMAGE.
25 */
26
27#include <dev/sound/pcm/sound.h>
28#include <dev/sound/pcm/ac97.h>
29#include <dev/pci/pcireg.h>
30#include <dev/pci/pcivar.h>
31
32SND_DECLARE_FILE("$FreeBSD: head/sys/dev/sound/pci/fm801.c 142890 2005-03-01 08:58:06Z imp $");
32SND_DECLARE_FILE("$FreeBSD: head/sys/dev/sound/pci/fm801.c 154127 2006-01-09 06:05:25Z ariff $");
33
34#define PCI_VENDOR_FORTEMEDIA 0x1319
35#define PCI_DEVICE_FORTEMEDIA1 0x08011319
36#define PCI_DEVICE_FORTEMEDIA2 0x08021319 /* ??? have no idea what's this... */
37
38#define FM_PCM_VOLUME 0x00
39#define FM_FM_VOLUME 0x02
40#define FM_I2S_VOLUME 0x04

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

109 AFMT_U8,
110 AFMT_STEREO | AFMT_U8,
111 AFMT_S16_LE,
112 AFMT_STEREO | AFMT_S16_LE,
113 0
114};
115
116static struct pcmchan_caps fm801ch_caps = {
33
34#define PCI_VENDOR_FORTEMEDIA 0x1319
35#define PCI_DEVICE_FORTEMEDIA1 0x08011319
36#define PCI_DEVICE_FORTEMEDIA2 0x08021319 /* ??? have no idea what's this... */
37
38#define FM_PCM_VOLUME 0x00
39#define FM_FM_VOLUME 0x02
40#define FM_I2S_VOLUME 0x04

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

109 AFMT_U8,
110 AFMT_STEREO | AFMT_U8,
111 AFMT_S16_LE,
112 AFMT_STEREO | AFMT_S16_LE,
113 0
114};
115
116static struct pcmchan_caps fm801ch_caps = {
117 4000, 48000,
117 5500, 48000,
118 fmts, 0
119};
120
121struct fm801_info;
122
123struct fm801_chinfo {
124 struct fm801_info *parent;
125 struct pcm_channel *channel;

--- 641 unchanged lines hidden ---
118 fmts, 0
119};
120
121struct fm801_info;
122
123struct fm801_chinfo {
124 struct fm801_info *parent;
125 struct pcm_channel *channel;

--- 641 unchanged lines hidden ---