From mboxrd@z Thu Jan 1 00:00:00 1970 From: Clemens Ladisch Subject: Re: how to convert stereo capture to mono stream (hardware incompatibility) Date: Thu, 04 Sep 2008 12:58:16 +0200 Message-ID: <48BFBF48.9060306@ladisch.de> References: Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: Received: from out3.smtp.messagingengine.com (out3.smtp.messagingengine.com [66.111.4.27]) by alsa0.perex.cz (Postfix) with ESMTP id CC81B24371 for ; Thu, 4 Sep 2008 12:58:14 +0200 (CEST) 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: brunal Cc: alsa-devel@alsa-project.org List-Id: alsa-devel@alsa-project.org brunal wrote: > There is an implementation of alsa in Julius, but I can't make it > working with my USB sound card, because when alsa tries to set > channel capture to 1, I get an error from alsa. Here is the code : > > /* set number of channels */ > if ((err = snd_pcm_hw_params_set_channels(handle, hwparams, 1)) < 0) { > jlog("Error: adin_alsa: cannot set PCM channel to %d (%s)\n", 1, snd_strerror(err)); > return(FALSE); > } > Which always return FALSE. I'd guess this program uses a wrong device name. Make sure that the default device name is "default", which can automatically convert sample formats not supported by the hardware, and not "hw". HTH Clemens