From: Takashi Iwai Subject: Re: Use a plughw device inside the dmix plugin. Date: Wed, 19 Apr 2006 14:36:09 +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> 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: <1145447473.10487.8.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 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 captured an= d > 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 Does it mean that the appliction packs the mono stream to a interleaved stereo by itself or lets alsa-lib do it? 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. Takashi > 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 throu= gh > > > 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 dmix > > > 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, an= d > > > > > playback in two, but, 1 channel setup can only be made through = plughw. > > > >=20 > > > > Then I don't understand your requirment at all... > > > >=20 > > > > You just want to wrap plug over dmix for channel shrink/expansion= ? > > > >=20 > > > >=20 > > > > Takashi > > > >=20 > > > > > El mi=E9, 19-04-2006 a las 13:19 +0200, Takashi Iwai escribi=F3= : > > > > > > At Wed, 19 Apr 2006 12:53:18 +0200, > > > > > > Juan Zapatero wrote: > > > > > > >=20 > > > > > > > I am using a VoIP application which uses different devices = for capturing > > > > > > > and playback, because some audio processing is needed betwe= en audio > > > > > > > reception and playback. I have configured my default to use= dmix plugin, > > > > > > > because it is required to be able to play different audio s= treams at > > > > > > > once. I can force the capture device to use 'default' plugi= n, 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 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 > > > ------------------------------------------------------- > > > This SF.Net email is sponsored by xPML, a groundbreaking scripting = language > > > that extends applications into web and mobile media. Attend the liv= e webcast > > > and join the prime developer group breaking into this new coding te= rritory! > > > http://sel.as-us.falkag.net/sel?cmd=3Dlnk&kid=110944&bid$1720&dat=12= 1642 > > > _______________________________________________ > > > 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 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 ------------------------------------------------------- This SF.Net email is sponsored by xPML, a groundbreaking scripting language that extends applications into web and mobile media. Attend the live webcast and join the prime developer group breaking into this new coding territory! http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642