Kernel: 2.4.17 Module: es1371.c Harware tested: SB 16 PCI (CT5880+STAC9721/3) Purpose of the patch: Add /proc/driver/es1371/{card}/ac97 Revision of the patch: 2 IMPORTANT: This mail contains some text repeated in the mail about the patch in trident.c module. The repetition is because the mail goes to different maintainers. This (2nd iteration) patch fixes what Alan pointed out in previous patch: I blindly forgot to remove the proc entries when removing the module. This revision also logs a warning if the proc entries couldn't be created. I consider it a warning because the sound is fully functional without it. If any of the entries fails to be created it isn't a problem because the remove routine will try to remove all the entries. I also followed Tommy Reynolds suggestion about using vmalloc/vfree for the temporal buffer. Note the size of the buffer is unknown because the PCI ID could change their size. Q1: Should I wrap all the stuff with the "define label" used to indicate that proc support was enabled in the kernel? emu10k1 (the module I took as reference) doesn't do it. Q2: As this entry gives important information about the codec and the code is in ac97_codec module (it means the overhead imposed to the other modules is small) I think all the modules using codecs should register it. Now: should we move the code that creates the entries to ac97_codec to simplify the other modules? SET -- Salvador Eduardo Tropea (SET). (Electronics Engineer) Visit my home page: http://welcome.to/SetSoft or http://www.geocities.com/SiliconValley/Vista/6552/ Alternative e-mail: set@computer.org set@ieee.org Address: Curapaligue 2124, Caseros, 3 de Febrero Buenos Aires, (1678), ARGENTINA Phone: +(5411) 4759 0013