From: Takashi Iwai Subject: Re: [alsa-cvslog] CVS: alsa-kernel/pci/ca0106 ca_midi.c,... Date: Fri, 21 Oct 2005 15:07:10 +0200 Message-ID: References: <4358D4F1.6020602@superbug.co.uk> Mime-Version: 1.0 (generated by SEMI 1.14.6 - "Maruoka") Content-Type: text/plain; charset=US-ASCII Return-path: In-Reply-To: <4358D4F1.6020602@superbug.co.uk> 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: James Courtier-Dutton Cc: Tilman Kranz , James Courtier-Dutton , alsa-devel@lists.sourceforge.net List-Id: alsa-devel@alsa-project.org At Fri, 21 Oct 2005 12:45:53 +0100, James Courtier-Dutton wrote: > > Takashi Iwai wrote: > > > > >But, what is the reason to call them indirectly via pointers at all? > >The routine is just for ca0106, so no complex abstraction is > >necessary. > > > > > >Takashi > > > > > > > > > The same ca_midi.c file should work with the emu10k1x, sb live, sb > audigy1/2. > Once this midi code is tested well, we can then share the code amongst > all the different modules. > So the indirection is for that purpose. For such a purpose, we can merge it to mpu401_uart.c, instead. Many codes are same, and mpu401_uart has already indirect read/write function pointers. Only additional irq_enable/disable callbacks would be required. Takashi ------------------------------------------------------- This SF.Net email is sponsored by: Power Architecture Resource Center: Free content, downloads, discussions, and more. http://solutions.newsforge.com/ibmarch.tmpl