From mboxrd@z Thu Jan 1 00:00:00 1970 From: Takashi Iwai Subject: Re: Use a plughw device inside the dmix plugin. Date: Thu, 20 Apr 2006 12:21:55 +0200 Message-ID: References: <1145443998.8025.4.camel@jazc.fedora> <1145445860.9402.1.camel@jazc.fedora> <1145446753.10487.1.camel@jazc.fedora> <1145447473.10487.8.camel@jazc.fedora> <1145519664.2998.2.camel@jazc.fedora> Mime-Version: 1.0 (generated by SEMI 1.14.6 - "Maruoka") Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Return-path: In-Reply-To: <1145519664.2998.2.camel@jazc.fedora> Sender: alsa-devel-admin@lists.sourceforge.net Errors-To: alsa-devel-admin@lists.sourceforge.net List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , List-Archive: To: Juan Zapatero Cc: alsa-devel@lists.sourceforge.net List-Id: alsa-devel@alsa-project.org At Thu, 20 Apr 2006 09:54:24 +0200, Juan Zapatero wrote: >=20 > Because what is written to the sound card is pcm, I do a little tricky > processing on the buffers and make a one channel stereo out of a mono > stream... This can be achieved by route or plug plugin of alsa-lib without changing application. > What about the hardware, it is a Intel Corporation 82801FB/FBM/FR/FW/FR= W > (ICH6 Family) AC'97 Audio Controller (rev 03). The dmix+plug is used as "default" PCM in the recent version, so it should work as it is. I still don't understand what you're trying and why it doesn't work. You'd better to show the ALSA version you're using and the PCM configuration you tried. Takashi >=20 >=20 > El mi=E9, 19-04-2006 a las 14:36 +0200, Takashi Iwai escribi=F3: > > At Wed, 19 Apr 2006 13:51:13 +0200, > > Juan Zapatero wrote: > > >=20 > > > Ok as the VoIP is intendeed to work over GPRS links, it uses as > > > configuration: > > >=20 > > > Capture: > > > -16bitLE > > > -8000Hz > > > -1 channel > > >=20 > > > Playback:although the stream is of the same type as the one capture= d and > > > sent, in playback, it's needed for other reasons to process it into= a > > > one channel stereo(meaning it is a stereo stream with audio only in= one > > > of the channels), so the configuration is: > > > -16bitLE > > > -8000Hz > > > -2 channels=20 > >=20 > > Does it mean that the appliction packs the mono stream to a > > interleaved stereo by itself or lets alsa-lib do it? > >=20 > > And what about the hardware side? The above are limitations of the > > application. The plugins are used to absorb the difference between > > the hardware and application requirements. > >=20 > >=20 > > Takashi > >=20 > >=20 > > > El mi=E9, 19-04-2006 a las 13:46 +0200, Takashi Iwai escribi=F3: > > > > At Wed, 19 Apr 2006 13:39:13 +0200, > > > > Juan Zapatero wrote: > > > > >=20 > > > > > No I don't know why 1 channel configuration is only available t= hrough > > > > > plughw, > > > >=20 > > > > That's what I don't understand. What configuration did you try? > > > >=20 > > > > > but it is, so I want to know if there is a way to force the dmi= x > > > > > plugin to work over plughw insted of hw:0,0 as actually it does= . > > > >=20 > > > > No way. Use plug _over_ dmix instead of _under_ dmix. > > > >=20 > > > >=20 > > > > Takashi > > > >=20 > > > >=20 > > > > > El mi=E9, 19-04-2006 a las 13:33 +0200, Takashi Iwai escribi=F3= : > > > > > > At Wed, 19 Apr 2006 13:24:20 +0200, > > > > > > Juan Zapatero wrote: > > > > > > >=20 > > > > > > > By doing so, I would not be able to use dmixing... > > > > > > > The problem is that capture must be configured in 1 channel= , and > > > > > > > playback in two, but, 1 channel setup can only be made thro= ugh plughw. > > > > > >=20 > > > > > > Then I don't understand your requirment at all... > > > > > >=20 > > > > > > You just want to wrap plug over dmix for channel shrink/expan= sion? > > > > > >=20 > > > > > >=20 > > > > > > Takashi > > > > > >=20 > > > > > > > El mi=E9, 19-04-2006 a las 13:19 +0200, Takashi Iwai escrib= i=F3: > > > > > > > > At Wed, 19 Apr 2006 12:53:18 +0200, > > > > > > > > Juan Zapatero wrote: > > > > > > > > >=20 > > > > > > > > > I am using a VoIP application which uses different devi= ces for capturing > > > > > > > > > and playback, because some audio processing is needed b= etween audio > > > > > > > > > reception and playback. I have configured my default to= use dmix plugin, > > > > > > > > > because it is required to be able to play different aud= io streams at > > > > > > > > > once. I can force the capture device to use 'default' p= lugin, but the > > > > > > > > > playback device only works under plughw. So, is there a= way to use a > > > > > > > > > plughw device inside the dmix plugin? > > > > > > > >=20 > > > > > > > > You can override the definition of plughw, such as > > > > > > > >=20 > > > > > > > > pcm.!plughw "default" > > > > > > > >=20 > > > > > > > > But, fixing the app would be a better option, of course. > > > > > > > >=20 > > > > > > > >=20 > > > > > > > > Takashi > > > > > > >=20 > > > > > > >=20 > > > > > > > ______________________ > > > > > > > Este mensaje, y en su caso, cualquier fichero anexo al mism= o, > > > > > > > puede contener informacion clasificada por su emisor como = confidencial > > > > > > > en el marco de su Sistema de Gestion de Seguridad de la=20 > > > > > > > Informacion siendo para uso exclusivo del destinatario, que= dando=20 > > > > > > > prohibida su divulgacion copia o distribucion a terceros si= n la=20 > > > > > > > autorizacion expresa del remitente. Si Vd. ha recibido este= mensaje=20 > > > > > > > erroneamente, se ruega lo notifique al remitente y proceda= a su borrado.=20 > > > > > > > Gracias por su colaboracion. > > > > > > > ______________________ > > > > > > > This message including any attachments may contain confiden= tial=20 > > > > > > > information, according to our Information Security Manageme= nt System, > > > > > > > and intended solely for a specific individual to whom they= are addressed. > > > > > > > Any unauthorised copy, disclosure or distribution of this = message > > > > > > > is strictly forbidden. If you have received this transmiss= ion in error, > > > > > > > please notify the sender immediately and delete it. > > > > > > > ______________________ > > > > > > >=20 > > > > > > >=20 > > > > > > > ------------------------------------------------------- > > > > > > > This SF.Net email is sponsored by xPML, a groundbreaking sc= ripting language > > > > > > > that extends applications into web and mobile media. Attend= the live webcast > > > > > > > and join the prime developer group breaking into this new c= oding territory! > > > > > > > http://sel.as-us.falkag.net/sel?cmd=3Dlnk&kid=110944&bid$17= 20&dat=121642 > > > > > > > _______________________________________________ > > > > > > > Alsa-devel mailing list > > > > > > > Alsa-devel@lists.sourceforge.net > > > > > > > https://lists.sourceforge.net/lists/listinfo/alsa-devel > > > > > > >=20 > > > > > >=20 > > > > >=20 > > > > >=20 > > > > > ______________________ > > > > > Este mensaje, y en su caso, cualquier fichero anexo al mismo, > > > > > puede contener informacion clasificada por su emisor como conf= idencial > > > > > en el marco de su Sistema de Gestion de Seguridad de la=20 > > > > > Informacion siendo para uso exclusivo del destinatario, quedand= o=20 > > > > > prohibida su divulgacion copia o distribucion a terceros sin la= =20 > > > > > autorizacion expresa del remitente. Si Vd. ha recibido este men= saje=20 > > > > > erroneamente, se ruega lo notifique al remitente y proceda a s= u borrado.=20 > > > > > Gracias por su colaboracion. > > > > > ______________________ > > > > > This message including any attachments may contain confidential= =20 > > > > > information, according to our Information Security Management S= ystem, > > > > > and intended solely for a specific individual to whom they are= addressed. > > > > > Any unauthorised copy, disclosure or distribution of this mess= age > > > > > is strictly forbidden. If you have received this transmission = in error, > > > > > please notify the sender immediately and delete it. > > > > > ______________________ > > > > >=20 > > > > >=20 > > > > > ------------------------------------------------------- > > > > > This SF.Net email is sponsored by xPML, a groundbreaking script= ing language > > > > > that extends applications into web and mobile media. Attend the= live webcast > > > > > and join the prime developer group breaking into this new codin= g territory! > > > > > http://sel.as-us.falkag.net/sel?cmd=3Dlnk&kid=110944&bid$1720&d= at=121642 > > > > > _______________________________________________ > > > > > Alsa-devel mailing list > > > > > Alsa-devel@lists.sourceforge.net > > > > > https://lists.sourceforge.net/lists/listinfo/alsa-devel > > > > >=20 > > > >=20 > > >=20 > > >=20 > > > ______________________ > > > Este mensaje, y en su caso, cualquier fichero anexo al mismo, > > > puede contener informacion clasificada por su emisor como confiden= cial > > > en el marco de su Sistema de Gestion de Seguridad de la=20 > > > Informacion siendo para uso exclusivo del destinatario, quedando=20 > > > prohibida su divulgacion copia o distribucion a terceros sin la=20 > > > autorizacion expresa del remitente. Si Vd. ha recibido este mensaje= =20 > > > erroneamente, se ruega lo notifique al remitente y proceda a su bo= rrado.=20 > > > Gracias por su colaboracion. > > > ______________________ > > > This message including any attachments may contain confidential=20 > > > information, according to our Information Security Management Syste= m, > > > and intended solely for a specific individual to whom they are add= ressed. > > > Any unauthorised copy, disclosure or distribution of this message > > > is strictly forbidden. If you have received this transmission in e= rror, > > > please notify the sender immediately and delete it. > > > ______________________ > > >=20 > >=20 > >=20 > > ------------------------------------------------------- > > This SF.Net email is sponsored by xPML, a groundbreaking scripting la= nguage > > that extends applications into web and mobile media. Attend the live = webcast > > and join the prime developer group breaking into this new coding terr= itory! > > http://sel.as-us.falkag.net/sel?cmd__________________________________= _____________ > > Alsa-devel mailing list > > Alsa-devel@lists.sourceforge.net > > https://lists.sourceforge.net/lists/listinfo/alsa-devel > >=20 >=20 >=20 > ______________________ > Este mensaje, y en su caso, cualquier fichero anexo al mismo, > puede contener informacion clasificada por su emisor como confidencial > en el marco de su Sistema de Gestion de Seguridad de la=20 > Informacion siendo para uso exclusivo del destinatario, quedando=20 > prohibida su divulgacion copia o distribucion a terceros sin la=20 > autorizacion expresa del remitente. Si Vd. ha recibido este mensaje=20 > erroneamente, se ruega lo notifique al remitente y proceda a su borrad= o.=20 > Gracias por su colaboracion. > ______________________ > This message including any attachments may contain confidential=20 > information, according to our Information Security Management System, > and intended solely for a specific individual to whom they are address= ed. > Any unauthorised copy, disclosure or distribution of this message > is strictly forbidden. If you have received this transmission in error= , > please notify the sender immediately and delete it. > ______________________ >=20 ------------------------------------------------------- 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