From mboxrd@z Thu Jan 1 00:00:00 1970 From: Takashi Iwai Subject: Re: alsa hw params on SB Pro Date: Thu, 10 Feb 2005 18:17:25 +0100 Message-ID: References: <20050208053606.GB8616@dbz.icequake.net> Mime-Version: 1.0 (generated by SEMI 1.14.5 - "Awara-Onsen") Content-Type: text/plain; charset=US-ASCII Return-path: In-Reply-To: <20050208053606.GB8616@dbz.icequake.net> 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: Ryan Underwood Cc: alsa-devel@lists.sourceforge.net List-Id: alsa-devel@alsa-project.org At Mon, 7 Feb 2005 23:36:06 -0600, Ryan Underwood wrote: > > Hi, > > I seem to have the following problem. On snd-sb8 with a SBPro (which is > capable of stereo), the best stereo playback mode is 22KHz - going above > 22KHz implies that the output will be only one channel. > > If I call snd_pcm_hw_params_set_channels_near with argument of 2 > channels, I get 2 channels as requested. But then I call > snd_pcm_hw_params_set_rate_near with argument of 44100, and have 44100 > returned. Thus I end up with a hwparams that the hardware is not > capable of. > > Is there a reason the second call returns 44100 instead of 22050? > Conversely, calling _set_rate_near first and having 44100 returned > should mean that I only get 1 channel returned from _set_channels_near. > Isn't this the point of _near functions after all? > > This is with libasound 1.0.8 and drivers version 1.0.8+2 from debian > (kernel 2.4.27). Looking at sb8_main.c, the driver seems to try tighter the hw constraint when channels=2 is set. If this doesn't work, this might be a bug of hw params configurator. Takashi ------------------------------------------------------- SF email is sponsored by - The IT Product Guide Read honest & candid reviews on hundreds of IT Products from real users. Discover which products truly live up to the hype. Start reading now. http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click