From: Takashi Iwai Subject: Clean up of ALSA kernel codes: Update Date: Fri, 28 Oct 2005 13:14:30 +0200 Message-ID: Mime-Version: 1.0 (generated by SEMI 1.14.6 - "Maruoka") Content-Type: text/plain; charset=US-ASCII Return-path: Sender: alsa-devel-admin@lists.sourceforge.net Errors-To: alsa-devel-admin@lists.sourceforge.net List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , List-Archive: To: alsa-devel@lists.sourceforge.net List-Id: alsa-devel@alsa-project.org Hi, as you may have already found, I did some clean-up works for the latest version of ALSA. The following have been already merged: - Remove vmalloc wrapper - Remove kmalloc wrappers from kernel codes - Remove snd_runtime_check() - Remove snd_timestamp_* - Put KERN_* prefix to [snd_]printk() They will be included in 2.6.15 kernel. The following items are still pending: 1. Clean up of PM codes - Removal of the central suspend/resume control Since 2.6 kernel can control the power state of each device via sysfs, it's overfluous to have a PM control function over ALSA control API. Let's remove the central PM stuff. - Rewrite PCI drivers using direct suspend/resume callbacks This one is easy. Can be merged to 2.6.15. - ISA drivers We need to rewrite the code to use platform_device for non-pnp. Since (ISA)PnP has still no suspend/resume callbacks, we may need a hack until they are properly implemented. So this can be postponed after 2.6.15. - Others Rewrite with platform_device. Can be in 2.6.15. 2. Replacement of xxx_t with struct xxx For example, "snd_card_t" will be replaced with "struct snd_card", and "snd_pcm_substream_t" will be "struct snd_pcm_substream". For out-of-kernel drivers, the definitions of xxx_t remain for a while, but will be removed in future. The work would be technically easy by using a script. Can be done in 2.6.15 timeline. 3. Removal of central memory allocator Remove the allocator in memalloc.c (snd-page-alloc module). Instead, alloc_buffer and free_buffer callbacks will be added to each PCM. But, better to wait until page-reserve-removal patch (currently on mm tree) is merged. Otherwise we would need some hacks for dma_alloc_coherent(). 4. Rewrite of SG-buffer handler Ditto, wait for the merge of page-reserve-removal patch. ==== Now, some questions reagarding 2: A. What about names without snd_ like ac97_t? Should it be "struct ac97" or "struct snd_ac97"? B. The biggest question: Does anyone have strong objection against replacement of xxx_t? Any comments welcome. Thanks, Takashi ------------------------------------------------------- This SF.Net email is sponsored by the JBoss Inc. Get Certified Today * Register for a JBoss Training Course Free Certification Exam for All Training Attendees Through End of 2005 Visit http://www.jboss.com/services/certification for more information