From: Takashi Iwai Subject: Re: Re: Alsa mix in HW Date: Tue, 23 Aug 2005 19:14:42 +0200 Message-ID: References: <42EBAE72.9090608@e4a.it> <4306EA27.7060000@netvigator.com> <430B4485.9030300@netvigator.com> Mime-Version: 1.0 (generated by SEMI 1.14.6 - "Maruoka") Content-Type: text/plain; charset=US-ASCII Return-path: In-Reply-To: <430B4485.9030300@netvigator.com> 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: Raymond Cc: alsa-devel@lists.sourceforge.net List-Id: alsa-devel@alsa-project.org At Tue, 23 Aug 2005 23:45:09 +0800, Raymond wrote: > > Takashi Iwai wrote: > > At Sat, 20 Aug 2005 16:30:31 +0800, > > Raymond wrote: > > > >> > >> > >>Do "SNDRV_PCM_RATE_CONTINUOUS" in snd_hardware_t mean that sample rate > >>can be any integer between .rate_min and .rate_max ? > > > > > > Basically, yes. A driver might add another restriction but in such a > > case it should use RATE_KNOT instead. > > > > Is there any quick way to check the device "hw:x,x" support > "SNDRV_PCM_RATE_CONTINUOUS" without running > snd_pcm_hw_param_test_rate() (rate_max-rate_min+1) times ? No specific method, so far. As a practical test, you can try some strage rates instead of all values. > Are the following result normal when using the following fuctions on > device "plughw:x,x" ? > > rate_min=4000 for snd_pcm_hw_params_get_rate_min() > rate_max=-1 for snd_pcm_hw_params_get_rate_max() Judging the plug layer from such values is not recommended at all. If you want to skip the software SRC, set 0 to snd_pcm_hw_params_set_rate_resample(). Takashi ------------------------------------------------------- SF.Net email is Sponsored by the Better Software Conference & EXPO September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf