diff options
author | Krzysztof Helt <krzysztof.h1@wp.pl> | 2009-01-21 02:19:27 -0500 |
---|---|---|
committer | Takashi Iwai <tiwai@suse.de> | 2009-01-21 02:37:04 -0500 |
commit | c9864fd30a28aceef5293f28559c4a2f5a20d7d5 (patch) | |
tree | 66a1af7903a11cb15d43ad473cb8c5b1e76d3ade /sound/isa | |
parent | 9ef344f89ac41116d4ab138b0941c784a3ab8cf4 (diff) |
ALSA: sscape: use common MPU401 macros
Remove local macros which redefines the
common ones.
Signed-off-by: Krzysztof Helt <krzysztof.h1@wp.pl>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
Diffstat (limited to 'sound/isa')
-rw-r--r-- | sound/isa/sscape.c | 12 |
1 files changed, 4 insertions, 8 deletions
diff --git a/sound/isa/sscape.c b/sound/isa/sscape.c index 6a7f842b9627..681e2237acb7 100644 --- a/sound/isa/sscape.c +++ b/sound/isa/sscape.c | |||
@@ -89,9 +89,6 @@ MODULE_DEVICE_TABLE(pnp_card, sscape_pnpids); | |||
89 | #endif | 89 | #endif |
90 | 90 | ||
91 | 91 | ||
92 | #define MPU401_IO(i) ((i) + 0) | ||
93 | #define MIDI_DATA_IO(i) ((i) + 0) | ||
94 | #define MIDI_CTRL_IO(i) ((i) + 1) | ||
95 | #define HOST_CTRL_IO(i) ((i) + 2) | 92 | #define HOST_CTRL_IO(i) ((i) + 2) |
96 | #define HOST_DATA_IO(i) ((i) + 3) | 93 | #define HOST_DATA_IO(i) ((i) + 3) |
97 | #define ODIE_ADDR_IO(i) ((i) + 4) | 94 | #define ODIE_ADDR_IO(i) ((i) + 4) |
@@ -327,7 +324,7 @@ static int host_write_ctrl_unsafe(unsigned io_base, unsigned char data, | |||
327 | */ | 324 | */ |
328 | static inline int verify_mpu401(const struct snd_mpu401 * mpu) | 325 | static inline int verify_mpu401(const struct snd_mpu401 * mpu) |
329 | { | 326 | { |
330 | return ((inb(MIDI_CTRL_IO(mpu->port)) & 0xc0) == 0x80); | 327 | return ((inb(MPU401C(mpu)) & 0xc0) == 0x80); |
331 | } | 328 | } |
332 | 329 | ||
333 | /* | 330 | /* |
@@ -335,7 +332,7 @@ static inline int verify_mpu401(const struct snd_mpu401 * mpu) | |||
335 | */ | 332 | */ |
336 | static inline void initialise_mpu401(const struct snd_mpu401 * mpu) | 333 | static inline void initialise_mpu401(const struct snd_mpu401 * mpu) |
337 | { | 334 | { |
338 | outb(0, MIDI_DATA_IO(mpu->port)); | 335 | outb(0, MPU401D(mpu)); |
339 | } | 336 | } |
340 | 337 | ||
341 | /* | 338 | /* |
@@ -1191,12 +1188,11 @@ static int __devinit create_sscape(int dev, struct snd_card *card) | |||
1191 | } | 1188 | } |
1192 | #define MIDI_DEVNUM 0 | 1189 | #define MIDI_DEVNUM 0 |
1193 | if (sscape->type != SSCAPE_VIVO) { | 1190 | if (sscape->type != SSCAPE_VIVO) { |
1194 | err = create_mpu401(card, MIDI_DEVNUM, | 1191 | err = create_mpu401(card, MIDI_DEVNUM, xport, mpu_irq[dev]); |
1195 | MPU401_IO(xport), mpu_irq[dev]); | ||
1196 | if (err < 0) { | 1192 | if (err < 0) { |
1197 | printk(KERN_ERR "sscape: Failed to create " | 1193 | printk(KERN_ERR "sscape: Failed to create " |
1198 | "MPU-401 device at 0x%x\n", | 1194 | "MPU-401 device at 0x%x\n", |
1199 | MPU401_IO(xport)); | 1195 | xport); |
1200 | goto _release_dma; | 1196 | goto _release_dma; |
1201 | } | 1197 | } |
1202 | 1198 | ||