"SfR Fresh" - the SfR Freeware/Shareware Archive

Member "usr/lib/oss/build/apci97.c" of archive oss-linux-v4.0-1016-i386.tar.gz:


As a special service "SfR Fresh" has tried to format the requested source page into HTML format using (guessed) C and C++ source code syntax highlighting with prefixed line numbers. Alternatively you can here view or download the uninterpreted source code file. That can be also achieved for any archive member file by clicking within an archive contents listing on the first character of the file(path) respectively on the according byte size field.
    1 /*
    2  * Automatically generated file - do not edit.
    3  */
    4 #define DRIVER_NAME	apci97
    5 #define DRIVER_NICK	"apci97"
    6 #define DRIVER_STR_INFO	apci97_str_info
    7 #define DRIVER_ATTACH	apci97_attach
    8 #define DRIVER_DETACH	apci97_detach
    9 #define DRIVER_TYPE	DRV_PCI
   10 
   11 int apci_latency=0;
   12 /*
   13  * Set the latency to 32, 64, 96, 128 clocks - some APCI97 devices exhibit
   14  * garbled audio in some cases and setting the latency to higer values fixes it
   15  * Values: 32, 64, 96, 128 - Default: 64 (or defined by bios)
   16  */
   17 
   18 int apci_spdif=0;
   19 /*
   20  * Enable SPDIF port on SoundBlaster 128D or Sound Blaster Digital-4.1 models
   21  * Values: 1=Enable 0=Disable Default: 0
   22  */
   23 #include <linux/mod_devicetable.h>
   24 
   25 static struct pci_device_id id_table[] = {
   26 	{.vendor=0x1102,	.device=0x8938,	.subvendor=PCI_ANY_ID,	.subdevice=PCI_ANY_ID},
   27 	{.vendor=0x1274,	.device=0x1371,	.subvendor=PCI_ANY_ID,	.subdevice=PCI_ANY_ID},
   28 	{.vendor=0x1274,	.device=0x5880,	.subvendor=PCI_ANY_ID,	.subdevice=PCI_ANY_ID},
   29 	{.vendor=0x1274,	.device=0x8001,	.subvendor=PCI_ANY_ID,	.subdevice=PCI_ANY_ID},
   30 	{.vendor=0x1274,	.device=0x8002,	.subvendor=PCI_ANY_ID,	.subdevice=PCI_ANY_ID},
   31 	{0}
   32 };
   33 
   34 #include "module.inc"
   35 
   36 module_param(apci_latency, int, S_IRUGO);
   37 MODULE_PARM_DESC(apci_latency,
   38 "\n"
   39 "Set the latency to 32, 64, 96, 128 clocks - some APCI97 devices exhibit \n"
   40 "garbled audio in some cases and setting the latency to higer values fixes it\n"
   41 "Values: 32, 64, 96, 128 - Default: 64 (or defined by bios)\n"
   42 "\n"
   43 "\n");
   44 module_param(apci_spdif, int, S_IRUGO);
   45 MODULE_PARM_DESC(apci_spdif,
   46 "\n"
   47 "Enable SPDIF port on SoundBlaster 128D or Sound Blaster Digital-4.1 models\n"
   48 "Values: 1=Enable 0=Disable Default: 0\n"
   49 "\n");
   50 
   51