Alsa-Devel Archive on lore.kernel.org
 help / color / mirror / Atom feed
From: Himanshu Chauhan <hs.chauhan@gmail.com>
To: Lee Revell <rlrevell@joe-job.com>
Cc: alsa-devel@lists.sourceforge.net
Subject: Re: Using driver service from another driver
Date: Thu, 09 Nov 2006 10:36:13 +0530	[thread overview]
Message-ID: <4552B745.60701@gmail.com> (raw)
In-Reply-To: <1163029974.2823.67.camel@mindpipe>

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

  reply	other threads:[~2006-11-09  5:06 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-11-07 17:17 Using driver service from another driver Himanshu Chauhan
2006-11-08 16:08 ` Takashi Iwai
2006-11-08 16:26   ` Himanshu Chauhan
2006-11-08 22:16     ` Sampo Savolainen
2006-11-08 23:52 ` Lee Revell
2006-11-09  5:06   ` Himanshu Chauhan [this message]
  -- strict thread matches above, loose matches on Subject: below --
2006-11-08 16:15 Himanshu Chauhan

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=4552B745.60701@gmail.com \
    --to=hs.chauhan@gmail.com \
    --cc=alsa-devel@lists.sourceforge.net \
    --cc=rlrevell@joe-job.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox