Deleted Added
full compact
via8233.c (119690) via8233.c (126695)
1/*
2 * Copyright (c) 2002 Orion Hodson <orion@freebsd.org>
3 * Portions of this code derived from via82c686.c:
4 * Copyright (c) 2000 David Jones <dej@ox.org>
5 * All rights reserved.
6 *
7 * Redistribution and use in source and binary forms, with or without
8 * modification, are permitted provided that the following conditions

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

39#include <dev/sound/pcm/ac97.h>
40
41#include <dev/pci/pcireg.h>
42#include <dev/pci/pcivar.h>
43#include <sys/sysctl.h>
44
45#include <dev/sound/pci/via8233.h>
46
1/*
2 * Copyright (c) 2002 Orion Hodson <orion@freebsd.org>
3 * Portions of this code derived from via82c686.c:
4 * Copyright (c) 2000 David Jones <dej@ox.org>
5 * All rights reserved.
6 *
7 * Redistribution and use in source and binary forms, with or without
8 * modification, are permitted provided that the following conditions

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

39#include <dev/sound/pcm/ac97.h>
40
41#include <dev/pci/pcireg.h>
42#include <dev/pci/pcivar.h>
43#include <sys/sysctl.h>
44
45#include <dev/sound/pci/via8233.h>
46
47SND_DECLARE_FILE("$FreeBSD: head/sys/dev/sound/pci/via8233.c 119690 2003-09-02 17:30:40Z jhb $");
47SND_DECLARE_FILE("$FreeBSD: head/sys/dev/sound/pci/via8233.c 126695 2004-03-06 15:52:42Z matk $");
48
49#define VIA8233_PCI_ID 0x30591106
50
51#define VIA8233_REV_ID_8233PRE 0x10
52#define VIA8233_REV_ID_8233C 0x20
53#define VIA8233_REV_ID_8233 0x30
54#define VIA8233_REV_ID_8233A 0x40
55#define VIA8233_REV_ID_8235 0x50

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

838 (AC97_EXTCAP_VRA | AC97_EXTCAP_VRM | AC97_EXTCAP_DRA)) {
839 u_int16_t ext = ac97_getextmode(via->codec);
840 ext |= (via->codec_caps &
841 (AC97_EXTCAP_VRA | AC97_EXTCAP_VRM));
842 ext &= ~AC97_EXTCAP_DRA;
843 ac97_setextmode(via->codec, ext);
844 }
845
48
49#define VIA8233_PCI_ID 0x30591106
50
51#define VIA8233_REV_ID_8233PRE 0x10
52#define VIA8233_REV_ID_8233C 0x20
53#define VIA8233_REV_ID_8233 0x30
54#define VIA8233_REV_ID_8233A 0x40
55#define VIA8233_REV_ID_8235 0x50

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

838 (AC97_EXTCAP_VRA | AC97_EXTCAP_VRM | AC97_EXTCAP_DRA)) {
839 u_int16_t ext = ac97_getextmode(via->codec);
840 ext |= (via->codec_caps &
841 (AC97_EXTCAP_VRA | AC97_EXTCAP_VRM));
842 ext &= ~AC97_EXTCAP_DRA;
843 ac97_setextmode(via->codec, ext);
844 }
845
846 snprintf(status, SND_STATUSLEN, "at io 0x%lx irq %ld",
847 rman_get_start(via->reg), rman_get_start(via->irq));
846 snprintf(status, SND_STATUSLEN, "at io 0x%lx irq %ld %s",
847 rman_get_start(via->reg), rman_get_start(via->irq),PCM_KLDSTRING(snd_via8233));
848
849 /* Register */
850 if (pci_get_revid(dev) == VIA8233_REV_ID_8233A) {
851 if (pcm_register(dev, via, NMSGDCHANS, 1)) goto bad;
852 /*
853 * DXS channel is disabled. Reports from multiple users
854 * that it plays at half-speed. Do not see this behaviour
855 * on available 8233C or when emulating 8233A register set

--- 68 unchanged lines hidden ---
848
849 /* Register */
850 if (pci_get_revid(dev) == VIA8233_REV_ID_8233A) {
851 if (pcm_register(dev, via, NMSGDCHANS, 1)) goto bad;
852 /*
853 * DXS channel is disabled. Reports from multiple users
854 * that it plays at half-speed. Do not see this behaviour
855 * on available 8233C or when emulating 8233A register set

--- 68 unchanged lines hidden ---