Re: How to find sampling rate supported

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Thanks Takashi. 
 
If the lib does not provide the API to read the device capabilitiess, is there a way for applications to directly read it from the Alsa kernel driver ? 


--- On Mon, 3/23/09, Takashi Iwai <tiwai@xxxxxxx> wrote:


From: Takashi Iwai <tiwai@xxxxxxx>
Subject: Re:  How to find sampling rate supported
To: "reetesh chandran" <reeteshchandran@xxxxxxxxx>
Cc: alsa-devel@xxxxxxxxxxxxxxxx
Date: Monday, March 23, 2009, 3:03 AM


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
_______________________________________________
Alsa-devel mailing list
Alsa-devel@xxxxxxxxxxxxxxxx
http://mailman.alsa-project.org/mailman/listinfo/alsa-devel



      
_______________________________________________
Alsa-devel mailing list
Alsa-devel@xxxxxxxxxxxxxxxx
http://mailman.alsa-project.org/mailman/listinfo/alsa-devel


[Index of Archives]     [ALSA User]     [Linux Audio Users]     [Kernel Archive]     [Asterisk PBX]     [Photo Sharing]     [Linux Sound]     [Video 4 Linux]     [Gimp]     [Yosemite News]

  Powered by Linux