Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 16170
b: refs/heads/master
c: 607da7f
h: refs/heads/master
v: v3
  • Loading branch information
Rene Herman authored and Jaroslav Kysela committed Jan 3, 2006
1 parent 52b9876 commit 6a6ee3d
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 8 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: ea265c0a433fda15fb69b9fd733e0ea4215c216e
refs/heads/master: 607da7f834592a723797b21c2463507a44d9cfa7
11 changes: 4 additions & 7 deletions trunk/sound/pci/es1968.c
Original file line number Diff line number Diff line change
Expand Up @@ -176,7 +176,7 @@ MODULE_PARM_DESC(joystick, "Enable joystick.");

/* Values for the ESM_LEGACY_AUDIO_CONTROL */

#define ESS_ENABLE_AUDIO 0x8000
#define ESS_DISABLE_AUDIO 0x8000
#define ESS_ENABLE_SERIAL_IRQ 0x4000
#define IO_ADRESS_ALIAS 0x0020
#define MPU401_IRQ_ENABLE 0x0010
Expand All @@ -195,7 +195,7 @@ MODULE_PARM_DESC(joystick, "Enable joystick.");
#define DMA_TDMA 0x0100
#define DMA_PCPCI 0x0200
#define POST_WRITE 0x0080
#define ISA_TIMING 0x0040
#define PCI_TIMING 0x0040
#define SWAP_LR 0x0020
#define SUBTR_DECODE 0x0002

Expand Down Expand Up @@ -2193,14 +2193,11 @@ static void snd_es1968_chip_init(struct es1968 *chip)
/* Config Reg A */
pci_read_config_word(pci, ESM_CONFIG_A, &w);

/* Use TDMA for now. TDMA works on all boards, so while its
* not the most efficient its the simplest. */
w &= ~DMA_CLEAR; /* Clear DMA bits */
w |= DMA_TDMA; /* TDMA on */
w &= ~(PIC_SNOOP1 | PIC_SNOOP2); /* Clear Pic Snoop Mode Bits */
w &= ~SAFEGUARD; /* Safeguard off */
w |= POST_WRITE; /* Posted write */
w |= ISA_TIMING; /* ISA timing on */
w |= PCI_TIMING; /* PCI timing on */
/* XXX huh? claims to be reserved.. */
w &= ~SWAP_LR; /* swap left/right
seems to only have effect on SB
Expand Down Expand Up @@ -2241,7 +2238,7 @@ static void snd_es1968_chip_init(struct es1968 *chip)

pci_read_config_word(pci, ESM_LEGACY_AUDIO_CONTROL, &w);

w &= ~ESS_ENABLE_AUDIO; /* Disable Legacy Audio */
w |= ESS_DISABLE_AUDIO; /* Disable Legacy Audio */
w &= ~ESS_ENABLE_SERIAL_IRQ; /* Disable SIRQ */
w &= ~(0x1f); /* disable mpu irq/io, game port, fm, SB */

Expand Down

0 comments on commit 6a6ee3d

Please sign in to comment.