From mboxrd@z Thu Jan 1 00:00:00 1970 From: Michael Trimarchi Subject: Re: [Q] playing / recording mono on a stereo-only hardware Date: Tue, 02 Feb 2010 15:59:40 +0100 Message-ID: <4B683DDC.5030209@gandalf.sssup.it> References: <4B645E51.900@gandalf.sssup.it> <4B683B48.1030707@gandalf.sssup.it> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: Received: from sssup.it (ms01.sssup.it [193.205.80.99]) by alsa0.perex.cz (Postfix) with ESMTP id 978BB24413 for ; Tue, 2 Feb 2010 15:59:51 +0100 (CET) In-Reply-To: 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: Guennadi Liakhovetski Cc: alsa-devel@alsa-project.org List-Id: alsa-devel@alsa-project.org Guennadi Liakhovetski wrote: > (re-adding the list) > > On Tue, 2 Feb 2010, Michael Trimarchi wrote: > > >> Hi, >> >> Guennadi Liakhovetski wrote: >> >>> On Sat, 30 Jan 2010, Michael Trimarchi wrote: >>> >>> >>> >>>> Guennadi Liakhovetski wrote: >>>> >>>> >>>>> Hi >>>>> >>>>> I know this question belongs rather to alsa-users, and I did ask it >>>>> there, >>>>> but got no solution so far. Maybe someone here can help. >>>>> >>>>> The recently posted SuperH SIU driver only supports stereo playback and >>>>> capture (channels_min = channels_max = 2). Is there a way to tell >>>>> alsa-lib >>>>> to duplicate the mono-channel during playback and to mix recorded >>>>> channels >>>>> (or use one of them), if mono recording is requested? >>>>> >>>>> >>>> I'm not an expert but I think that you can use plughw support of alsa-lib >>>> >>>> pcm.record { >>>> type plug >>>> slave { >>>> pcm record_hw >>>> } >>>> route_policy average >>>> rate_converter "linear" >>>> } >>>> >>>> I think that automatically change rate and channel for supporting mono >>>> channel >>>> too >>>> >>>> >>> Thanks for the snippet, but, I'm afraid, it didn't help either. >>> >>> >> Sorry can you explain a little bit more why it doesn't help you? >> > > I certainly gladly would explain this, if only I knew... It just doesn't > change anything. Are you using it anywhere? If yes, with which hardware > configuration and software (alsa-lib) versions? > alsa-lib 1.0.16 #define BUILD_PCM_PLUGIN_RATE "1" #define BUILD_PCM_PLUGIN_ROUTE "1" Hardware android openmoko gta02. Test it with arecord 1 month ago Android Michael > Thanks > Guennadi > --- > Guennadi Liakhovetski, Ph.D. > Freelance Open-Source Software Developer > http://www.open-technology.de/ > _______________________________________________ > Alsa-devel mailing list > Alsa-devel@alsa-project.org > http://mailman.alsa-project.org/mailman/listinfo/alsa-devel > >