* Re: fix for missing symbol in snd-ymfpci.o
[not found] <200207201425.KAA12713@bromo.msbb.uc.edu>
@ 2002-07-22 11:21 ` Takashi Iwai
2002-07-24 10:17 ` Calling snd_pcm_oss_write directly Shaju Abraham
0 siblings, 1 reply; 7+ messages in thread
From: Takashi Iwai @ 2002-07-22 11:21 UTC (permalink / raw)
To: Jack Howarth; +Cc: alsa-devel
Hi Jack,
At Sat, 20 Jul 2002 10:25:23 -0400 (EDT),
Jack Howarth wrote:
>
> Takashi,
> Please check the following patch into the alsa cvs.
> Currently alsa-kernel/pci/ymfpci/ymfpci_main.c relies on
> the linux/vmalloc.h header being implicitly included by
> other headers which isn't true on ppc. Without this patch
> the vmalloc inline isn't defined and a missing symbol for
> vmalloc results in snd-ymfpci.o. Thanks in advance.
thanks, applied.
Takashi
-------------------------------------------------------
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf
^ permalink raw reply [flat|nested] 7+ messages in thread* Calling snd_pcm_oss_write directly.
2002-07-22 11:21 ` fix for missing symbol in snd-ymfpci.o Takashi Iwai
@ 2002-07-24 10:17 ` Shaju Abraham
2002-07-24 11:39 ` Paul Davis
2002-07-24 18:10 ` Calling snd_pcm_oss_write directly Jaroslav Kysela
0 siblings, 2 replies; 7+ messages in thread
From: Shaju Abraham @ 2002-07-24 10:17 UTC (permalink / raw)
To: Takashi Iwai; +Cc: alsa-devel
Hi all,
I am in a situation where I intend to call snd_pcm_oss_write
directly.
What exactly happens is - the open and all the initial ioctl calls are
done by the oss application. But the write call of the oss application
is not done but it is done by some other task.
So what I do is, when snd_pcm_oss_open gets called, I store the
-- struct file *file -- in my own pointer, say, gfile.
Then I use this pointer, -gfile- in snd_pcm_oss_write() when I call the
function directly. But apparently this much is not enough. The direct
write call crashes. If you can please tell me what else needs to be
done for the call to get through, it will be of great help.
--Shaju Abraham
-------------------------------------------------------
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf
^ permalink raw reply [flat|nested] 7+ messages in thread* Re: Calling snd_pcm_oss_write directly.
2002-07-24 10:17 ` Calling snd_pcm_oss_write directly Shaju Abraham
@ 2002-07-24 11:39 ` Paul Davis
2002-07-24 14:49 ` Inserting modules on the run Shaju Abraham
2002-07-24 18:10 ` Calling snd_pcm_oss_write directly Jaroslav Kysela
1 sibling, 1 reply; 7+ messages in thread
From: Paul Davis @ 2002-07-24 11:39 UTC (permalink / raw)
To: Shaju Abraham; +Cc: Takashi Iwai, alsa-devel
> I am in a situation where I intend to call snd_pcm_oss_write
>directly.
AFAIK, this is not a supported use of the alsa-lib API. There is no
guarantee that your application will continue to work in future
versions of alsa-lib.
>What exactly happens is - the open and all the initial ioctl calls are
>done by the oss application. But the write call of the oss application
>is not done but it is done by some other task.
there is still no reason to be using snd_pcm_<type>_<function> directly.
if you insist on using the OSS API (a big error, IMHO) then you can
just use the OSS API in the other task.
--p
-------------------------------------------------------
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf
^ permalink raw reply [flat|nested] 7+ messages in thread
* Inserting modules on the run.
2002-07-24 11:39 ` Paul Davis
@ 2002-07-24 14:49 ` Shaju Abraham
2002-07-24 23:54 ` Patrick Shirkey
0 siblings, 1 reply; 7+ messages in thread
From: Shaju Abraham @ 2002-07-24 14:49 UTC (permalink / raw)
To: Paul Davis; +Cc: Takashi Iwai, alsa-devel
Hi all,
This is about OSS emulation by ALSA. When I modprobe my sound
card, I find that the snd-pcm-oss.o and mixer-oss.o modules are not there
in the modules list.
But when an OSS application is run, how does ALSA insert these two modules
on the fly? Supposing I have manually inserted these two modules before
hand and if ALSA again tries to insmod them, what will happen? could the
system crash 'cos of this?
Whenever ALSA is inserting the abv two modules on the run, it should be
possible for me to insert my own module along with the two mentioned abv,
isn't it? Can u pls tell me where in the ALSA src code this piece of
action is happening and how to insert my own module on the run.
--shaju abraham
-------------------------------------------------------
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf
^ permalink raw reply [flat|nested] 7+ messages in thread* Re: Inserting modules on the run.
2002-07-24 14:49 ` Inserting modules on the run Shaju Abraham
@ 2002-07-24 23:54 ` Patrick Shirkey
0 siblings, 0 replies; 7+ messages in thread
From: Patrick Shirkey @ 2002-07-24 23:54 UTC (permalink / raw)
To: Shaju Abraham; +Cc: alsa-devel
Shaju Abraham wrote:
> Hi all,
> This is about OSS emulation by ALSA. When I modprobe my sound
> card, I find that the snd-pcm-oss.o and mixer-oss.o modules are not there
> in the modules list.
>
> But when an OSS application is run, how does ALSA insert these two modules
> on the fly? Supposing I have manually inserted these two modules before
> hand and if ALSA again tries to insmod them, what will happen? could the
> system crash 'cos of this?
>
> Whenever ALSA is inserting the abv two modules on the run, it should be
> possible for me to insert my own module along with the two mentioned abv,
> isn't it? Can u pls tell me where in the ALSA src code this piece of
> action is happening and how to insert my own module on the run.
>
You should use the /etc/modules.conf file
There is a lot of information on how to use this in the alsa-wiki and
alsa howto.
see the documentation link on the alsa webpage.
> --shaju abraham
>
>
>
> -------------------------------------------------------
> This sf.net email is sponsored by:ThinkGeek
> Welcome to geek heaven.
> http://thinkgeek.com/sf
> _______________________________________________
> Alsa-devel mailing list
> Alsa-devel@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/alsa-devel
>
>
--
Patrick Shirkey - Boost Hardware Ltd.
For the discerning hardware connoisseur
Http://www.boosthardware.com
Http://www.boosthardware.com/LAU/guide/
========================================
-------------------------------------------------------
This sf.net email is sponsored by: Jabber - The world's fastest growing
real-time communications platform! Don't just IM. Build it in!
http://www.jabber.com/osdn/xim
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: Calling snd_pcm_oss_write directly.
2002-07-24 10:17 ` Calling snd_pcm_oss_write directly Shaju Abraham
2002-07-24 11:39 ` Paul Davis
@ 2002-07-24 18:10 ` Jaroslav Kysela
1 sibling, 0 replies; 7+ messages in thread
From: Jaroslav Kysela @ 2002-07-24 18:10 UTC (permalink / raw)
To: Shaju Abraham; +Cc: Takashi Iwai, alsa-devel@lists.sourceforge.net
On Wed, 24 Jul 2002, Shaju Abraham wrote:
> Hi all,
> I am in a situation where I intend to call snd_pcm_oss_write
> directly.
>
> What exactly happens is - the open and all the initial ioctl calls are
> done by the oss application. But the write call of the oss application
> is not done but it is done by some other task.
>
> So what I do is, when snd_pcm_oss_open gets called, I store the
> -- struct file *file -- in my own pointer, say, gfile.
>
> Then I use this pointer, -gfile- in snd_pcm_oss_write() when I call the
> function directly. But apparently this much is not enough. The direct
> write call crashes. If you can please tell me what else needs to be
> done for the call to get through, it will be of great help.
Why you do these very ugly things? It seems that you're calling internal
functions of the OSS emulation in the kernel space.
Jaroslav
-----
Jaroslav Kysela <perex@suse.cz>
Linux Kernel Sound Maintainer
ALSA Project http://www.alsa-project.org
SuSE Linux http://www.suse.com
-------------------------------------------------------
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf
^ permalink raw reply [flat|nested] 7+ messages in thread
[parent not found: <200207241129.g6OBTIbt000943@multitech.co.in>]
* Re: Calling snd_pcm_oss_write directly.
[not found] <200207241129.g6OBTIbt000943@multitech.co.in>
@ 2002-07-24 14:27 ` Shaju Abraham
0 siblings, 0 replies; 7+ messages in thread
From: Shaju Abraham @ 2002-07-24 14:27 UTC (permalink / raw)
To: Paul Davis; +Cc: Takashi Iwai, alsa-devel
Hi all,
I took the advice and used write() from the other task. It
promptly returned with < 0 error.
I do not know how the oss emulation in ALSA happens, so I do not know what
exactly went wrong.
Any more suggestions are welcome.
Again, continuing my experiment with calling snd_pcm_oss_write
directly, I traced the crash to few fns called from fn snd_pcm_prepare in
pcm_native.c . These fns seem to be making few ioctls like
..._IOCTL_PREPARE and ..._IOCTL_DRAIN. (more fns name ..ioctl than
ioctl() call itself). what are these fns doing and is it normal that they
are called after snd_pcm_oss_write has already been called.
--shaju abraham
Paul Davis wrote:
> > I am in a situation where I intend to call snd_pcm_oss_write
> >directly.
>
> AFAIK, this is not a supported use of the alsa-lib API. There is no
> guarantee that your application will continue to work in future
> versions of alsa-lib.
>
> >What exactly happens is - the open and all the initial ioctl calls are
> >done by the oss application. But the write call of the oss application
> >is not done but it is done by some other task.
>
> there is still no reason to be using snd_pcm_<type>_<function> directly.
>
> if you insist on using the OSS API (a big error, IMHO) then you can
> just use the OSS API in the other task.
>
> --p
-------------------------------------------------------
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf
^ permalink raw reply [flat|nested] 7+ messages in thread
end of thread, other threads:[~2002-07-24 23:54 UTC | newest]
Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
[not found] <200207201425.KAA12713@bromo.msbb.uc.edu>
2002-07-22 11:21 ` fix for missing symbol in snd-ymfpci.o Takashi Iwai
2002-07-24 10:17 ` Calling snd_pcm_oss_write directly Shaju Abraham
2002-07-24 11:39 ` Paul Davis
2002-07-24 14:49 ` Inserting modules on the run Shaju Abraham
2002-07-24 23:54 ` Patrick Shirkey
2002-07-24 18:10 ` Calling snd_pcm_oss_write directly Jaroslav Kysela
[not found] <200207241129.g6OBTIbt000943@multitech.co.in>
2002-07-24 14:27 ` Shaju Abraham
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.