X-Git-Url: http://git.onelab.eu/?a=blobdiff_plain;f=sound%2Fsynth%2Femux%2Femux_proc.c;h=1ba68ce302793c411867a3d8a7bc0b26f837b7d0;hb=43bc926fffd92024b46cafaf7350d669ba9ca884;hp=b67bb39866710a0ad6c8fdc5627290c3c29f8cdd;hpb=5273a3df6485dc2ad6aa7ddd441b9a21970f003b;p=linux-2.6.git diff --git a/sound/synth/emux/emux_proc.c b/sound/synth/emux/emux_proc.c index b67bb3986..1ba68ce30 100644 --- a/sound/synth/emux/emux_proc.c +++ b/sound/synth/emux/emux_proc.c @@ -30,14 +30,14 @@ #ifdef CONFIG_PROC_FS static void -snd_emux_proc_info_read(snd_info_entry_t *entry, - snd_info_buffer_t *buf) +snd_emux_proc_info_read(struct snd_info_entry *entry, + struct snd_info_buffer *buf) { - snd_emux_t *emu; + struct snd_emux *emu; int i; - emu = snd_magic_cast(snd_emux_t, entry->private_data, return); - down(&emu->register_mutex); + emu = entry->private_data; + mutex_lock(&emu->register_mutex); if (emu->name) snd_iprintf(buf, "Device: %s\n", emu->name); snd_iprintf(buf, "Ports: %d\n", emu->num_ports); @@ -56,17 +56,17 @@ snd_emux_proc_info_read(snd_info_entry_t *entry, snd_iprintf(buf, "Memory Size: 0\n"); } if (emu->sflist) { - down(&emu->sflist->presets_mutex); + mutex_lock(&emu->sflist->presets_mutex); snd_iprintf(buf, "SoundFonts: %d\n", emu->sflist->fonts_size); snd_iprintf(buf, "Instruments: %d\n", emu->sflist->zone_counter); snd_iprintf(buf, "Samples: %d\n", emu->sflist->sample_counter); snd_iprintf(buf, "Locked Instruments: %d\n", emu->sflist->zone_locked); snd_iprintf(buf, "Locked Samples: %d\n", emu->sflist->sample_locked); - up(&emu->sflist->presets_mutex); + mutex_unlock(&emu->sflist->presets_mutex); } #if 0 /* debug */ if (emu->voices[0].state != SNDRV_EMUX_ST_OFF && emu->voices[0].ch >= 0) { - snd_emux_voice_t *vp = &emu->voices[0]; + struct snd_emux_voice *vp = &emu->voices[0]; snd_iprintf(buf, "voice 0: on\n"); snd_iprintf(buf, "mod delay=%x, atkhld=%x, dcysus=%x, rel=%x\n", vp->reg.parm.moddelay, @@ -103,13 +103,13 @@ snd_emux_proc_info_read(snd_info_entry_t *entry, snd_iprintf(buf, "sample_mode=%x, rate=%x\n", vp->reg.sample_mode, vp->reg.rate_offset); } #endif - up(&emu->register_mutex); + mutex_unlock(&emu->register_mutex); } -void snd_emux_proc_init(snd_emux_t *emu, snd_card_t *card, int device) +void snd_emux_proc_init(struct snd_emux *emu, struct snd_card *card, int device) { - snd_info_entry_t *entry; + struct snd_info_entry *entry; char name[64]; sprintf(name, "wavetableD%d", device); @@ -127,7 +127,7 @@ void snd_emux_proc_init(snd_emux_t *emu, snd_card_t *card, int device) emu->proc = entry; } -void snd_emux_proc_free(snd_emux_t *emu) +void snd_emux_proc_free(struct snd_emux *emu) { if (emu->proc) { snd_info_unregister(emu->proc);