From mboxrd@z Thu Jan 1 00:00:00 1970 From: Himanshu Chauhan Subject: Re: Using driver service from another driver Date: Thu, 09 Nov 2006 10:36:13 +0530 Message-ID: <4552B745.60701@gmail.com> References: <4550BFBA.6050400@gmail.com> <1163029974.2823.67.camel@mindpipe> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <1163029974.2823.67.camel@mindpipe> List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: alsa-devel-bounces@lists.sourceforge.net Errors-To: alsa-devel-bounces@lists.sourceforge.net To: Lee Revell Cc: alsa-devel@lists.sourceforge.net List-Id: alsa-devel@alsa-project.org Lee Revell wrote: > On Tue, 2006-11-07 at 22:47 +0530, Himanshu Chauhan wrote: > >> Dear all, >> >> I am writing a virtual audio driver (similar to dummy.c in alsa tree). >> But I need to >> access the driver services of the soundcard installed on the system. How >> can this >> be done? Can I directly call the functions or I need to specifically >> open the >> device? >> >> This is for the first time I am doing ALSA drivers so I seek your help. >> > > EXPORT_SYMBOL() the driver functions you wish to call from the other > driver. "grep -r EXPORT_SYMBOL sound/drivers/" for examples. > > Lee > > > But then that would require changes to the other driver. So it won't work on all systems. Different systems have different sound cards. Is there any "universally applicable" way? Regards --Himanshu ------------------------------------------------------------------------- Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642