All of lore.kernel.org
 help / color / mirror / Atom feed
* Accessing alsa device in kernel space.
@ 2007-08-05 16:11 Vasily Khoruzhick
  2007-08-06 14:25 ` Takashi Iwai
  0 siblings, 1 reply; 4+ messages in thread
From: Vasily Khoruzhick @ 2007-08-05 16:11 UTC (permalink / raw)
  To: alsa-devel

Hi, how to access to alsa device from kernel space?
I want to create driver for virtual soundcard, that will perform mixing and 
rate converting in kernelspace, and put result in real hardware. But I found 
no documentation how to open alsa device in kernel space :(

Best regards,
Vasily.

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: Accessing alsa device in kernel space.
  2007-08-05 16:11 Accessing alsa device in kernel space Vasily Khoruzhick
@ 2007-08-06 14:25 ` Takashi Iwai
  2007-08-06 19:29   ` Vasily Khoruzhick
  0 siblings, 1 reply; 4+ messages in thread
From: Takashi Iwai @ 2007-08-06 14:25 UTC (permalink / raw)
  To: Vasily Khoruzhick; +Cc: alsa-devel

At Sun, 5 Aug 2007 19:11:23 +0300,
Vasily Khoruzhick wrote:
> 
> Hi, how to access to alsa device from kernel space?
> I want to create driver for virtual soundcard, that will perform mixing and 
> rate converting in kernelspace, and put result in real hardware. But I found 
> no documentation how to open alsa device in kernel space :(

You shouldn't do it.  It'd be horribly messy.
If you'd like to access the device files of other hardwares, simply
use the user-space solution.


Takashi

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: Accessing alsa device in kernel space.
  2007-08-06 14:25 ` Takashi Iwai
@ 2007-08-06 19:29   ` Vasily Khoruzhick
  2007-08-07  9:34     ` Takashi Iwai
  0 siblings, 1 reply; 4+ messages in thread
From: Vasily Khoruzhick @ 2007-08-06 19:29 UTC (permalink / raw)
  To: Takashi Iwai, alsa-devel

On 6 August 2007 you wrote:
> At Sun, 5 Aug 2007 19:11:23 +0300,
>
> Vasily Khoruzhick wrote:
> > Hi, how to access to alsa device from kernel space?
> > I want to create driver for virtual soundcard, that will perform mixing
> > and rate converting in kernelspace, and put result in real hardware. But
> > I found no documentation how to open alsa device in kernel space :(
>
> You shouldn't do it.  It'd be horribly messy.
> If you'd like to access the device files of other hardwares, simply
> use the user-space solution.
>
>
> Takashi

Btw, why there's oss-emulation in kernel? AFAIK it can't use pcm-plugins (e.g. 
dmix), so oss-applications that try to play through /dev/dsp can't produce 
any sound, or they block soundcard and other programs can't use it.

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: Accessing alsa device in kernel space.
  2007-08-06 19:29   ` Vasily Khoruzhick
@ 2007-08-07  9:34     ` Takashi Iwai
  0 siblings, 0 replies; 4+ messages in thread
From: Takashi Iwai @ 2007-08-07  9:34 UTC (permalink / raw)
  To: Vasily Khoruzhick; +Cc: alsa-devel

At Mon, 6 Aug 2007 22:29:46 +0300,
Vasily Khoruzhick wrote:
> 
> On 6 August 2007 you wrote:
> > At Sun, 5 Aug 2007 19:11:23 +0300,
> >
> > Vasily Khoruzhick wrote:
> > > Hi, how to access to alsa device from kernel space?
> > > I want to create driver for virtual soundcard, that will perform mixing
> > > and rate converting in kernelspace, and put result in real hardware. But
> > > I found no documentation how to open alsa device in kernel space :(
> >
> > You shouldn't do it.  It'd be horribly messy.
> > If you'd like to access the device files of other hardwares, simply
> > use the user-space solution.
> >
> >
> > Takashi
> 
> Btw, why there's oss-emulation in kernel? AFAIK it can't use pcm-plugins (e.g. 
> dmix), so oss-applications that try to play through /dev/dsp can't produce 
> any sound, or they block soundcard and other programs can't use it.

Because the OSS API _requires_ the kernel device file.
We have user-space aoss wrapper, too.


Takashi

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2007-08-07  9:34 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-08-05 16:11 Accessing alsa device in kernel space Vasily Khoruzhick
2007-08-06 14:25 ` Takashi Iwai
2007-08-06 19:29   ` Vasily Khoruzhick
2007-08-07  9:34     ` Takashi Iwai

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.