* Using driver service from another driver
@ 2006-11-07 17:17 Himanshu Chauhan
2006-11-08 16:08 ` Takashi Iwai
2006-11-08 23:52 ` Lee Revell
0 siblings, 2 replies; 7+ messages in thread
From: Himanshu Chauhan @ 2006-11-07 17:17 UTC (permalink / raw)
To: alsa-devel
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.
Thanks
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
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: Using driver service from another driver
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 23:52 ` Lee Revell
1 sibling, 1 reply; 7+ messages in thread
From: Takashi Iwai @ 2006-11-08 16:08 UTC (permalink / raw)
To: Himanshu Chauhan; +Cc: alsa-devel
At Tue, 07 Nov 2006 22:47:46 +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?
The question is too ambiguous to answer. Could you elaborate what you
want to achieve? Something like output <-> input loopback?
Takashi
-------------------------------------------------------------------------
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
^ permalink raw reply [flat|nested] 7+ messages in thread
* Using driver service from another driver
@ 2006-11-08 16:15 Himanshu Chauhan
0 siblings, 0 replies; 7+ messages in thread
From: Himanshu Chauhan @ 2006-11-08 16:15 UTC (permalink / raw)
To: alsa-devel
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.
Thanks
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
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: Using driver service from another driver
2006-11-08 16:08 ` Takashi Iwai
@ 2006-11-08 16:26 ` Himanshu Chauhan
2006-11-08 22:16 ` Sampo Savolainen
0 siblings, 1 reply; 7+ messages in thread
From: Himanshu Chauhan @ 2006-11-08 16:26 UTC (permalink / raw)
To: Takashi Iwai; +Cc: alsa-devel
Takashi Iwai wrote:
> At Tue, 07 Nov 2006 22:47:46 +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?
>>
>
> The question is too ambiguous to answer. Could you elaborate what you
> want to achieve? Something like output <-> input loopback?
>
>
> Takashi
>
>
Okay. I am writing a dummy driver from which the application play and
record.
Suppose, mplayer is playing some movie and the audio is going to this dummy
driver and Audacity is running which is recording from this dummy driver
(the stream coming from mplayer). But as no actual device is there, user
can't listen to what is being played or recorded. I want a playthru like
thing
so that whatever data audacity is getting for recording can also be
directed to an actual sound card driver from within the kernel.
So that user can listen to whatever is being played by mplayer and
is being recorded by audacity.
Same thing can be achieved by enabling playthru in audacity but I
wish to do it in kernel mode using services of a driver for which
actual hardware is present in the system.
--Himanshu
--
=============================
Himanshu Chauhan
System Software Engineer
inDSP Audio Technologies
341 Nila
Technopark
Trivandram, Kerala
M:(+91)-(999)-(518)-(5989)
=============================
-------------------------------------------------------------------------
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
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: Using driver service from another driver
2006-11-08 16:26 ` Himanshu Chauhan
@ 2006-11-08 22:16 ` Sampo Savolainen
0 siblings, 0 replies; 7+ messages in thread
From: Sampo Savolainen @ 2006-11-08 22:16 UTC (permalink / raw)
To: Himanshu Chauhan; +Cc: Takashi Iwai, alsa-devel
On Wed, 2006-11-08 at 21:56 +0530, Himanshu Chauhan wrote:
> Okay. I am writing a dummy driver from which the application play and
> record.
> Suppose, mplayer is playing some movie and the audio is going to this dummy
> driver and Audacity is running which is recording from this dummy driver
> (the stream coming from mplayer). But as no actual device is there, user
> can't listen to what is being played or recorded. I want a playthru like
> thing
> so that whatever data audacity is getting for recording can also be
> directed to an actual sound card driver from within the kernel.
> So that user can listen to whatever is being played by mplayer and
> is being recorded by audacity.
For inter-application audio plumbing, jackd (http://www.jackaudio.org)
is the way to go.
And for exporting audio out of mplayer:
mplayer -ao pcm:file=out.wav -vo null [inputfile]
I'd say writing a device driver to do this task is like trying to squash
a fly with an expensive vase.
Sampo
-------------------------------------------------------------------------
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
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: Using driver service from another driver
2006-11-07 17:17 Using driver service from another driver Himanshu Chauhan
2006-11-08 16:08 ` Takashi Iwai
@ 2006-11-08 23:52 ` Lee Revell
2006-11-09 5:06 ` Himanshu Chauhan
1 sibling, 1 reply; 7+ messages in thread
From: Lee Revell @ 2006-11-08 23:52 UTC (permalink / raw)
To: Himanshu Chauhan; +Cc: alsa-devel
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
-------------------------------------------------------------------------
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
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: Using driver service from another driver
2006-11-08 23:52 ` Lee Revell
@ 2006-11-09 5:06 ` Himanshu Chauhan
0 siblings, 0 replies; 7+ messages in thread
From: Himanshu Chauhan @ 2006-11-09 5:06 UTC (permalink / raw)
To: Lee Revell; +Cc: alsa-devel
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
^ permalink raw reply [flat|nested] 7+ messages in thread
end of thread, other threads:[~2006-11-09 5:06 UTC | newest]
Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
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
-- strict thread matches above, loose matches on Subject: below --
2006-11-08 16:15 Himanshu Chauhan
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.