From: Takashi Iwai Subject: Re: How to find sampling rate supported Date: Mon, 23 Mar 2009 11:03:26 +0100 Message-ID: References: <820648.74204.qm@web30001.mail.mud.yahoo.com> Mime-Version: 1.0 (generated by SEMI 1.14.6 - "Maruoka") Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: Received: from mx2.suse.de (cantor2.suse.de [195.135.220.15]) by alsa0.perex.cz (Postfix) with ESMTP id 6CEFD2434F for ; Mon, 23 Mar 2009 11:03:26 +0100 (CET) In-Reply-To: <820648.74204.qm@web30001.mail.mud.yahoo.com> 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: reetesh chandran Cc: alsa-devel@alsa-project.org List-Id: alsa-devel@alsa-project.org At Sun, 22 Mar 2009 09:00:00 -0700 (PDT), reetesh chandran wrote: > > Hi all, > > I am new to the group and to Alsa. > > For our project, we have to find the max sampling rate and other pcm hardware parameters that the connected USB headset supports. I looked at the alsa library, but could not find an API which returned this information. > > I found snd_pcm_hw_params_test_* function to test a specific value is supported, but I was wondering if there was a way to query the device to get the values. The min / max can be obtained via *_get_rate_min() and *_get_rate_max(), at least. The other detailed information can't be get except for testing the explicit value via *_test_rate(), so far. HTH, Takashi