patch-2.3.43 linux/drivers/sound/trident.c

Next file: linux/drivers/sound/via82cxxx.c
Previous file: linux/drivers/sound/soundcard.c
Back to the patch index
Back to the overall index

diff -u --recursive --new-file v2.3.42/linux/drivers/sound/trident.c linux/drivers/sound/trident.c
@@ -29,6 +29,8 @@
  *	Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
  *
  *  History
+ *  v0.11.1 Jan 28 2000 Ollie Lho
+ *	small bug in setting sample rate for 4d-nx (reported by Aaron)
  *  v0.11 Jan 27 2000 Ollie Lho
  *	DMA bug, scheduler latency, second try
  *  v0.10 Jan 24 2000 Ollie Lho
@@ -61,7 +63,6 @@
  *	"Channel Binding" ioctl extension
  */
       
-#include <linux/config.h>
 #include <linux/module.h>
 #include <linux/version.h>
 #include <linux/string.h>
@@ -81,16 +82,12 @@
 #include <asm/uaccess.h>
 #include <asm/hardirq.h>
 
-#ifdef CONFIG_APM
-#include <linux/apm_bios.h>
-#endif
-
 #include "trident.h"
 #include "ac97_codec.h"
 
 #undef DEBUG
 
-#define DRIVER_VERSION "0.11"
+#define DRIVER_VERSION "0.11.1"
 
 /* magic numbers to protect our data structures */
 #define TRIDENT_CARD_MAGIC	0x5072696E /* "Prin" */
@@ -527,7 +524,7 @@
 		break;
 	case PCI_DEVICE_ID_TRIDENT_4DWAVE_NX:
 		data[0] = (channel->delta << 24);
-		data[2] = ((channel->delta << 24) & 0xff000000) | (channel->eso & 0x00ffffff);
+		data[2] = ((channel->delta << 16) & 0xff000000) | (channel->eso & 0x00ffffff);
 		data[3] = channel->fm_vol & 0xffff;
 		break;
 	default:
@@ -1837,19 +1834,14 @@
 }
 
 static /*const*/ struct file_operations trident_audio_fops = {
-	&trident_llseek,
-	&trident_read,
-	&trident_write,
-	NULL,	/* readdir */
-	&trident_poll,
-	&trident_ioctl,
-	&trident_mmap,
-	&trident_open,
-	NULL,	/* flush */
-	&trident_release,
-	NULL,	/* fsync */
-	NULL,	/* fasync */
-	NULL,	/* lock */
+	llseek:		trident_llseek,
+	read:		trident_read,
+	write:		trident_write,
+	poll:		trident_poll,
+	ioctl:		trident_ioctl,
+	mmap:		trident_mmap,
+	open:		trident_open,
+	release:	trident_release,
 };
 
 /* trident specific AC97 functions */
@@ -1999,19 +1991,10 @@
 }
 
 static /*const*/ struct file_operations trident_mixer_fops = {
-	&trident_llseek,
-	NULL,  /* read */
-	NULL,  /* write */
-	NULL,  /* readdir */
-	NULL,  /* poll */
-	&trident_ioctl_mixdev,
-	NULL,  /* mmap */
-	&trident_open_mixdev,
-	NULL,	/* flush */
-	&trident_release_mixdev,
-	NULL,  /* fsync */
-	NULL,  /* fasync */
-	NULL,  /* lock */
+	llseek:		trident_llseek,
+	ioctl:		trident_ioctl_mixdev,
+	open:		trident_open_mixdev,
+	release:	trident_release_mixdev,
 };
 
 /* AC97 codec initialisation. */

FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)