Update of /cvsroot/alsa/alsa-kernel/pci/emu10k1 In directory sc8-pr-cvs1:/tmp/cvs-serv10022/pci/emu10k1
Modified Files: emufx.c Log Message: - added support for user control elements (untested) - fixed locking for snd_ctl_remove() function Index: emufx.c =================================================================== RCS file: /cvsroot/alsa/alsa-kernel/pci/emu10k1/emufx.c,v retrieving revision 1.42 retrieving revision 1.43 diff -u -r1.42 -r1.43 --- emufx.c 17 Oct 2003 15:39:52 -0000 1.42 +++ emufx.c 21 Oct 2003 17:40:14 -0000 1.43 @@ -1009,13 +1009,16 @@ unsigned int i; snd_ctl_elem_id_t *_id, id; snd_emu10k1_fx8010_ctl_t *ctl; + snd_card_t *card = emu->card; for (i = 0, _id = icode->gpr_del_controls; i < icode->gpr_del_control_count; i++, _id++) { snd_runtime_check(copy_from_user(&id, _id, sizeof(id)) == 0, continue); + down_write(&card->controls_rwsem); ctl = snd_emu10k1_look_for_ctl(emu, &id); - snd_runtime_check(ctl == NULL, continue); - snd_ctl_remove(emu->card, ctl->kcontrol); + if (ctl) + snd_ctl_remove(card, ctl->kcontrol); + up_write(&card->controls_rwsem); } } ------------------------------------------------------- This SF.net email is sponsored by OSDN developer relations Here's your chance to show off your extensive product knowledge We want to know what you know. Tell us and you have a chance to win $100 http://www.zoomerang.com/survey.zgi?HRPT1X3RYQNC5V4MLNSV3E54 _______________________________________________ Alsa-cvslog mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/alsa-cvslog