mirror of
https://git.FreeBSD.org/ports.git
synced 2024-11-23 00:43:28 +00:00
- Update to 4.2 build2007.
- Release maintainership to the ports pool.
This commit is contained in:
parent
8631204fe0
commit
c9fc13e852
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=305319
@ -6,13 +6,12 @@
|
||||
#
|
||||
|
||||
PORTNAME= oss
|
||||
DISTVERSION= 4.2-build2006
|
||||
PORTREVISION= 3
|
||||
DISTVERSION= 4.2-build2007
|
||||
CATEGORIES= audio kld
|
||||
MASTER_SITES= http://www.opensound.com/developer/sources/stable/bsd/
|
||||
DISTNAME= ${PORTNAME}-v${DISTVERSION}-src-bsd
|
||||
|
||||
MAINTAINER= jkim@FreeBSD.org
|
||||
MAINTAINER= ports@FreeBSD.org
|
||||
COMMENT= Open Sound System
|
||||
|
||||
LICENSE= BSD
|
||||
|
@ -1,2 +1,2 @@
|
||||
SHA256 (oss-v4.2-build2006-src-bsd.tar.bz2) = 21bec9ab80a1084be6b6627162a22cf671ae2e44d27e86db2544216d94fbcede
|
||||
SIZE (oss-v4.2-build2006-src-bsd.tar.bz2) = 1640079
|
||||
SHA256 (oss-v4.2-build2007-src-bsd.tar.bz2) = 083b6f4b09c01fa1677cb9518ba8c1de8e3661ac760ec67f40cefec977aaa340
|
||||
SIZE (oss-v4.2-build2007-src-bsd.tar.bz2) = 1628850
|
||||
|
@ -1,52 +0,0 @@
|
||||
--- kernel/OS/FreeBSD/os_freebsd.c 2012-02-02 17:46:03.000000000 -0500
|
||||
+++ kernel/OS/FreeBSD/os_freebsd.c 2012-02-20 12:58:46.000000000 -0500
|
||||
@@ -16,6 +16,7 @@
|
||||
#include "midi_core.h"
|
||||
#include <oss_pci.h>
|
||||
#include <sys/conf.h>
|
||||
+#include <sys/module.h>
|
||||
#include <sys/proc.h>
|
||||
#include <sys/sx.h>
|
||||
#include <sys/mman.h>
|
||||
@@ -315,7 +316,7 @@
|
||||
|
||||
if (cards[cardnum]->name != NULL)
|
||||
strncpy (ci->longname, cards[cardnum]->name, 128);
|
||||
- ci->shortname[127] = 0;
|
||||
+ ci->longname[127] = 0;
|
||||
|
||||
if (cards[cardnum]->nick != NULL)
|
||||
strncpy (ci->shortname, cards[cardnum]->nick, 16);
|
||||
@@ -413,8 +414,19 @@
|
||||
|
||||
if (!(flags & CHDEV_VIRTUAL) && (name != NULL))
|
||||
{
|
||||
+#if __FreeBSD_version >= 900023
|
||||
+ bsd_cdev =
|
||||
+ make_dev_credf (MAKEDEV_CHECKNAME, &oss_cdevsw, num, NULL,
|
||||
+ UID_ROOT, GID_WHEEL, 0666, name, 0);
|
||||
+ if (bsd_cdev == NULL)
|
||||
+ {
|
||||
+ cmn_err (CE_WARN, "Cannot allocate device node /dev/%s\n", name);
|
||||
+ return;
|
||||
+ }
|
||||
+#else
|
||||
bsd_cdev =
|
||||
make_dev (&oss_cdevsw, num, UID_ROOT, GID_WHEEL, 0666, name, 0);
|
||||
+#endif
|
||||
cdev->info = bsd_cdev;
|
||||
}
|
||||
}
|
||||
@@ -604,6 +616,12 @@
|
||||
{
|
||||
oss_device_t *osdev;
|
||||
|
||||
+ if (module_lookupbyname("sound") != NULL)
|
||||
+ {
|
||||
+ cmn_err (CE_WARN, "Open Sound System conflicts with FreeBSD driver\n");
|
||||
+ cmn_err (CE_CONT, "Please remove sound(4) from kernel or unload it\n");
|
||||
+ return EBUSY;
|
||||
+ }
|
||||
if ((osdev = PMALLOC (NULL, sizeof (*osdev))) == NULL)
|
||||
{
|
||||
return ENOSPC;
|
@ -1,146 +0,0 @@
|
||||
--- kernel/drv/oss_hdaudio/.devices Wed Jul 20 03:52:16 2011 +0300
|
||||
+++ kernel/drv/oss_hdaudio/.devices Tue Feb 07 05:25:23 2012 +0200
|
||||
@@ -2,13 +2,15 @@
|
||||
oss_hdaudio pci8086,27d8 Intel High Definition Audio (ICH7)
|
||||
oss_hdaudio pci8086,269a Intel High Definition Audio (ESB2)
|
||||
oss_hdaudio pci8086,284b Intel High Definition Audio (ICH8)
|
||||
-oss_hdaudio pci8086,293e Intel High Definition Audio (P35)
|
||||
-oss_hdaudio pci8086,293f Intel High Definition Audio (ICH9)
|
||||
+oss_hdaudio pci8086,293e Intel High Definition Audio (ICH9)
|
||||
+oss_hdaudio pci8086,293f Intel High Definition Audio (ICH9_B)
|
||||
oss_hdaudio pci8086,3a3e Intel High Definition Audio (ICH10)
|
||||
-oss_hdaudio pci8086,3a6e Intel High Definition Audio (ICH10)
|
||||
+oss_hdaudio pci8086,3a6e Intel High Definition Audio (ICH10_B)
|
||||
oss_hdaudio pci8086,3b56 Intel High Definition Audio (PCH)
|
||||
-oss_hdaudio pci8086,3b57 Intel High Definition Audio (PCH)
|
||||
+oss_hdaudio pci8086,3b57 Intel High Definition Audio (PCH_B)
|
||||
oss_hdaudio pci8086,1c20 Intel High Definition Audio (CPT)
|
||||
+oss_hdaudio pci8086,1d20 Intel High Definition Audio (PBG)
|
||||
+oss_hdaudio pci8086,1e20 Intel High Definition Audio (PPT)
|
||||
oss_hdaudio pci8086,811b Intel High Definition Audio (SCH)
|
||||
oss_hdaudio pci10de,26c Nvidia High Definition Audio (MCP51)
|
||||
oss_hdaudio pci10de,371 Nvidia High Definition Audio (MCP55)
|
||||
@@ -21,6 +23,7 @@
|
||||
oss_hdaudio pci10de,ac0 Nvidia High Definition Audio (MCP79)
|
||||
oss_hdaudio pci1002,437b ATI High Definition Audio (SB450)
|
||||
oss_hdaudio pci1002,4383 ATI High Definition Audio (SB600)
|
||||
+oss_hdaudio pci1022,780d AMD High Definition Audio (Hudson)
|
||||
oss_hdaudio pci1106,3288 VIA High Definition Audio
|
||||
oss_hdaudio pci1039,7502 SiS High Definition Audio
|
||||
oss_hdaudio pci10b9,5461 ULI High Definition Audio
|
||||
--- kernel/drv/oss_hdaudio/oss_hdaudio.c Sat Jan 28 17:37:44 2012 +0200
|
||||
+++ kernel/drv/oss_hdaudio/oss_hdaudio.c Tue Feb 07 05:25:23 2012 +0200
|
||||
@@ -27,14 +27,16 @@
|
||||
#define INTEL_DEVICE_ICH7 0x27d8
|
||||
#define INTEL_DEVICE_ESB2 0x269a
|
||||
#define INTEL_DEVICE_ICH8 0x284b
|
||||
-#define INTEL_DEVICE_ICH9 0x293f
|
||||
-#define INTEL_DEVICE_ICH10 0x3a3e
|
||||
-#define INTEL_DEVICE_ICH10_B 0x3a6e
|
||||
-#define INTEL_DEVICE_CPT 0x1c20
|
||||
-#define INTEL_DEVICE_PCH 0x3b56
|
||||
-#define INTEL_DEVICE_PCH2 0x3b57
|
||||
-#define INTEL_DEVICE_SCH 0x811b
|
||||
-#define INTEL_DEVICE_P35 0x293e
|
||||
+#define INTEL_DEVICE_ICH9 0x293e
|
||||
+#define INTEL_DEVICE_ICH9_B 0x293f
|
||||
+#define INTEL_DEVICE_ICH10 0x3a3e
|
||||
+#define INTEL_DEVICE_ICH10_B 0x3a6e
|
||||
+#define INTEL_DEVICE_PCH 0x3b56
|
||||
+#define INTEL_DEVICE_PCH_B 0x3b57
|
||||
+#define INTEL_DEVICE_CPT 0x1c20
|
||||
+#define INTEL_DEVICE_PBG 0x1d20
|
||||
+#define INTEL_DEVICE_PPT 0x1e20
|
||||
+#define INTEL_DEVICE_SCH 0x811b
|
||||
|
||||
#define NVIDIA_VENDOR_ID 0x10de
|
||||
#define NVIDIA_DEVICE_MCP51 0x026c
|
||||
@@ -51,6 +53,9 @@
|
||||
#define ATI_DEVICE_SB450 0x437b
|
||||
#define ATI_DEVICE_SB600 0x4383
|
||||
|
||||
+#define AMD_VENDOR_ID 0x1022
|
||||
+#define AMD_DEVICE_HUDSON 0x780d
|
||||
+
|
||||
#define VIA_VENDOR_ID 0x1106
|
||||
#define VIA_DEVICE_HDA 0x3288
|
||||
|
||||
@@ -1769,33 +1774,6 @@
|
||||
pci_read_config_word (osdev, PCI_VENDOR_ID, &vendor);
|
||||
pci_read_config_word (osdev, PCI_DEVICE_ID, &device);
|
||||
|
||||
-#if 0
|
||||
- // This check is not necessary because the kernel has already checked
|
||||
- // the vendor&device ID
|
||||
-
|
||||
- if ((vendor != INTEL_VENDOR_ID && vendor != NVIDIA_VENDOR_ID &&
|
||||
- vendor != ATI_VENDOR_ID && vendor != SIS_VENDOR_ID &&
|
||||
- vendor != VIA_VENDOR_ID && vendor != ULI_VENDOR_ID) ||
|
||||
- (device != INTEL_DEVICE_ICH6 && device != INTEL_DEVICE_ICH7 &&
|
||||
- device != INTEL_DEVICE_ESB2 && device != INTEL_DEVICE_ICH8 &&
|
||||
- device != INTEL_DEVICE_ICH9 && device != INTEL_DEVICE_P35 &&
|
||||
- device != INTEL_DEVICE_ICH10 && device != INTEL_DEVICE_ICH10_B &&
|
||||
- device != INTEL_DEVICE_PCH &&
|
||||
- device != NVIDIA_DEVICE_MCP51 && device != NVIDIA_DEVICE_MCP55 &&
|
||||
- device != NVIDIA_DEVICE_MCP61 && device != NVIDIA_DEVICE_MCP61A &&
|
||||
- device != NVIDIA_DEVICE_MCP65 && device != NVIDIA_DEVICE_MCP67 &&
|
||||
- device != NVIDIA_DEVICE_MCP73 && device != NVIDIA_DEVICE_MCP78S &&
|
||||
- device != NVIDIA_DEVICE_MCP79 &&
|
||||
- device != VIA_DEVICE_HDA &&
|
||||
- device != SIS_DEVICE_HDA &&
|
||||
- device != ULI_DEVICE_HDA &&
|
||||
- device != ATI_DEVICE_SB450 && device != ATI_DEVICE_SB600))
|
||||
-
|
||||
- {
|
||||
- return 0;
|
||||
- }
|
||||
-#endif
|
||||
-
|
||||
pci_read_config_byte (osdev, PCI_REVISION_ID, &pci_revision);
|
||||
pci_read_config_word (osdev, PCI_COMMAND, &pci_command);
|
||||
pci_read_config_irq (osdev, PCI_INTERRUPT_LINE, &pci_irq_line);
|
||||
@@ -1822,6 +1800,9 @@
|
||||
|
||||
switch (device)
|
||||
{
|
||||
+ case INTEL_DEVICE_CPT:
|
||||
+ case INTEL_DEVICE_PBG:
|
||||
+ case INTEL_DEVICE_PPT:
|
||||
case INTEL_DEVICE_SCH:
|
||||
pci_read_config_word (osdev, 0x78, &devctl);
|
||||
DDB (cmn_err (CE_CONT, " DEVC register content 0x%04x\n", devctl);)
|
||||
@@ -1834,12 +1815,11 @@
|
||||
case INTEL_DEVICE_ESB2:
|
||||
case INTEL_DEVICE_ICH8:
|
||||
case INTEL_DEVICE_ICH9:
|
||||
- case INTEL_DEVICE_P35:
|
||||
+ case INTEL_DEVICE_ICH9_B:
|
||||
case INTEL_DEVICE_ICH10:
|
||||
case INTEL_DEVICE_ICH10_B:
|
||||
case INTEL_DEVICE_PCH:
|
||||
- case INTEL_DEVICE_PCH2:
|
||||
- case INTEL_DEVICE_CPT:
|
||||
+ case INTEL_DEVICE_PCH_B:
|
||||
devc->chip_name = "Intel HD Audio";
|
||||
break;
|
||||
|
||||
@@ -1868,6 +1848,10 @@
|
||||
pci_write_config_byte (osdev, 0x42, (btmp & 0xf8) | 0x2);
|
||||
break;
|
||||
|
||||
+ case AMD_DEVICE_HUDSON:
|
||||
+ devc->chip_name = "AMD HD Audio";
|
||||
+ break;
|
||||
+
|
||||
case VIA_DEVICE_HDA:
|
||||
devc->chip_name = "VIA HD Audio";
|
||||
break;
|
||||
@@ -1888,7 +1872,7 @@
|
||||
break;
|
||||
|
||||
default:
|
||||
- devc->chip_name = "High definition audio device";
|
||||
+ devc->chip_name = "Azalia High Definition audio device";
|
||||
}
|
||||
|
||||
pci_read_config_dword (osdev, PCI_MEM_BASE_ADDRESS_0, &devc->membar_addr);
|
@ -1,16 +0,0 @@
|
||||
--- kernel/framework/vmix_core/vmix_core.c Wed Oct 20 04:11:22 2010 +0300
|
||||
+++ kernel/framework/vmix_core/vmix_core.c Fri Feb 17 00:25:21 2012 +0200
|
||||
@@ -1691,8 +1691,11 @@
|
||||
&vmix_driver,
|
||||
sizeof (audiodrv_t),
|
||||
opts,
|
||||
- AFMT_S16_NE | AFMT_S32_NE |
|
||||
- AFMT_FLOAT, mixer, -1)) < 0)
|
||||
+#ifdef CONFIG_OSS_VMIX_FLOAT
|
||||
+ AFMT_FLOAT |
|
||||
+#endif
|
||||
+ AFMT_S16_NE | AFMT_S32_NE,
|
||||
+ mixer, -1)) < 0)
|
||||
{
|
||||
return portc->audio_dev;
|
||||
}
|
Loading…
Reference in New Issue
Block a user