From: Takashi Iwai Subject: Re: Accessing alsa device in kernel space. Date: Tue, 07 Aug 2007 11:34:06 +0200 Message-ID: References: <200708051911.23667.anarsoul@gmail.com> <200708062229.46691.anarsoul@gmail.com> Mime-Version: 1.0 (generated by SEMI 1.14.6 - "Maruoka") Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: Received: from mx2.suse.de (mx2.suse.de [195.135.220.15]) by alsa0.perex.cz (Postfix) with ESMTP id 570DF103878 for ; Tue, 7 Aug 2007 11:34:07 +0200 (CEST) In-Reply-To: <200708062229.46691.anarsoul@gmail.com> List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: alsa-devel-bounces@alsa-project.org Errors-To: alsa-devel-bounces@alsa-project.org To: Vasily Khoruzhick Cc: alsa-devel@alsa-project.org List-Id: alsa-devel@alsa-project.org 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