/[openvortex]/alsa/pci/au88x0/au88x0_mpu401.c
ViewVC logotype

Diff of /alsa/pci/au88x0/au88x0_mpu401.c

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.5 by vizard, Sun Aug 10 20:00:34 2003 UTC revision 1.6 by mjander, Wed Sep 24 04:28:11 2003 UTC
# Line 50  int __devinit snd_vortex_midi(vortex_t * Line 50  int __devinit snd_vortex_midi(vortex_t *
50    
51  #ifdef VORTEX_MPU401_LEGACY  #ifdef VORTEX_MPU401_LEGACY
52      /* EnableHardCodedMPU401Port() */      /* EnableHardCodedMPU401Port() */
53      port  = (0x03 << 5); /* FIXME: static address. 0x330,0x331 */      /* Enable Legacy MIDI Interface port. */
54        port  = (0x03 << 5); /* FIXME: static address. 0x330 */
55          temp = (hwread(vortex->mmio, VORTEX_CTRL) & ~CTRL_MIDI_PORT) | CTRL_MIDI_EN | port;          temp = (hwread(vortex->mmio, VORTEX_CTRL) & ~CTRL_MIDI_PORT) | CTRL_MIDI_EN | port;
56          hwwrite(vortex->mmio, VORTEX_CTRL, temp);          hwwrite(vortex->mmio, VORTEX_CTRL, temp);
57  #else  #else
58      /* Enable MIDI Interface. */          /* Disable Legacy MIDI Interface port. */
59          temp = (hwread(vortex->mmio, VORTEX_CTRL) & ~CTRL_MIDI_PORT) | CTRL_MIDI_EN;          temp = (hwread(vortex->mmio, VORTEX_CTRL) & ~CTRL_MIDI_PORT) & ~CTRL_MIDI_EN;
60          hwwrite(vortex->mmio, VORTEX_CTRL, temp);          hwwrite(vortex->mmio, VORTEX_CTRL, temp);      
61  #endif  #endif
   
62          /* Mpu401UartInit() */          /* Mpu401UartInit() */
63      mode = 1;      mode = 1;
64          temp = hwread(vortex->mmio, VORTEX_CTRL2) & 0xffff00cf;          temp = hwread(vortex->mmio, VORTEX_CTRL2) & 0xffff00cf;

Legend:
Removed from v.1.5  
changed lines
  Added in v.1.6

savannah-hackers-public@gnu.org
ViewVC Help
Powered by ViewVC 1.1.26