From mboxrd@z Thu Jan 1 00:00:00 1970 From: Takashi Iwai Subject: Re: Mono to stereo ? Date: Fri, 28 Mar 2003 11:02:52 +0100 Sender: alsa-devel-admin@lists.sourceforge.net Message-ID: References: <3E83BE0E.4070406@embedded.cl> Mime-Version: 1.0 (generated by SEMI 1.14.4 - "Hosorogi") Content-Type: text/plain; charset=US-ASCII Return-path: In-Reply-To: <3E83BE0E.4070406@embedded.cl> Errors-To: alsa-devel-admin@lists.sourceforge.net List-Help: List-Post: List-Subscribe: , List-Unsubscribe: , List-Archive: To: Manuel Jander Cc: alsa-devel@lists.sourceforge.net List-Id: alsa-devel@alsa-project.org At Thu, 27 Mar 2003 23:14:22 -0400, Manuel Jander wrote: > > Hi, > > Paul Davis wrote: > > >>When an application opens a mono substream, the sound has to > >>be sent to one channel only or must the low level driver > >>transparently convert it to stereo ? > >> > >> > > > >one channel only. > > > >in ALSA, low level drivers do not do any kind of format > >conversion. that is accomplished (if necessary) by code running in > >user-space, typically part of alsa-lib. the low level driver simply > >advertises the capabilities of the hardware, provides ways to use > >those capabilities, and lets the midlevel code and alsa-lib do the rest. > > > > > > ...but, if you are doing mono playback, your sound driver has to setup > your soundcard to playback on both channels the same mono channel. The > Vortex > driver (still not in the main branch) for example splits the mono signal > on its internal > mixer into 2 identical signals which are feed one into each CODEC channels. no, please don't do that. in the ALSA, instead of the lowlevel driver, alsa-lib (and oss-emulation module) will do this job. the driver is supposed to inform exactly what it supports. in this case, both channels_min and channels_max will be 2. the difference of configuration will be absorbed by the plug-in of alsa-lib and oss-emulation module. ciao, Takashi ------------------------------------------------------- This SF.net email is sponsored by: The Definitive IT and Networking Event. Be There! NetWorld+Interop Las Vegas 2003 -- Register today! http://ads.sourceforge.net/cgi-bin/redirect.pl?keyn0001en