o sys/i386/include/soundcard.h
Reduce synth_info.name lenght for binary compatibility. o sys/i386/isa/sound/mpu401.c Reduce mpu device number info to avoid overflow of mpu_synth_info.name. Submitted by: Akio Morita <amorita@meadow.scphys.kyoto-u.ac.jp>
This commit is contained in:
parent
e8b4c53d73
commit
4ebe777123
@ -649,7 +649,7 @@ struct sbi_instrument {
|
||||
};
|
||||
|
||||
struct synth_info { /* Read only */
|
||||
char name[33];
|
||||
char name[30];
|
||||
int device; /* 0-N. INITIALIZE BEFORE CALLING */
|
||||
int synth_type;
|
||||
#define SYNTH_TYPE_FM 0
|
||||
|
@ -1032,11 +1032,10 @@ attach_mpu401(struct address_info * hw_config)
|
||||
|
||||
snprintf(mpu_synth_info[num_midis].name,
|
||||
sizeof(mpu_synth_info[num_midis].name),
|
||||
"MPU-401 %d.%d%c Midi interface #%d",
|
||||
"MPU-401 %d.%d%c Midi interface",
|
||||
(int) (devc->version & 0xf0) >> 4,
|
||||
devc->version & 0x0f,
|
||||
revision_char,
|
||||
n_mpu_devs);
|
||||
revision_char);
|
||||
}
|
||||
|
||||
strcpy(mpu401_midi_operations[num_midis].info.name,
|
||||
|
@ -649,7 +649,7 @@ struct sbi_instrument {
|
||||
};
|
||||
|
||||
struct synth_info { /* Read only */
|
||||
char name[33];
|
||||
char name[30];
|
||||
int device; /* 0-N. INITIALIZE BEFORE CALLING */
|
||||
int synth_type;
|
||||
#define SYNTH_TYPE_FM 0
|
||||
|
Loading…
x
Reference in New Issue
Block a user