mirror of
https://github.com/alsa-project/alsa-lib.git
synced 2025-11-03 09:01:52 -05:00
Improve hw_params documentation
Signed-off-by: Takashi Iwai <tiwai@suse.de>
This commit is contained in:
parent
235aec0a75
commit
43956de710
2 changed files with 25 additions and 2 deletions
|
|
@ -809,7 +809,9 @@ int snd_pcm_hw_params_current(snd_pcm_t *pcm, snd_pcm_hw_params_t *params)
|
|||
*
|
||||
* The configuration is chosen fixing single parameters in this order:
|
||||
* first access, first format, first subformat, min channels, min rate,
|
||||
* min period time, max buffer size, min tick time
|
||||
* min period time, max buffer size, min tick time. If no mutually
|
||||
* compatible set of parameters can be chosen, a negative error code
|
||||
* will be returned.
|
||||
*
|
||||
* After this call, #snd_pcm_prepare() is called automatically and
|
||||
* the stream is brought to \c #SND_PCM_STATE_PREPARED state.
|
||||
|
|
@ -817,6 +819,9 @@ int snd_pcm_hw_params_current(snd_pcm_t *pcm, snd_pcm_hw_params_t *params)
|
|||
* The hardware parameters cannot be changed when the stream is
|
||||
* running (active). The software parameters can be changed
|
||||
* at any time.
|
||||
*
|
||||
* The configuration space will be updated to reflect the chosen
|
||||
* parameters.
|
||||
*/
|
||||
int snd_pcm_hw_params(snd_pcm_t *pcm, snd_pcm_hw_params_t *params)
|
||||
{
|
||||
|
|
@ -3183,6 +3188,9 @@ int snd_pcm_hw_params_get_fifo_size(const snd_pcm_hw_params_t *params)
|
|||
* \brief Fill params with a full configuration space for a PCM
|
||||
* \param pcm PCM handle
|
||||
* \param params Configuration space
|
||||
*
|
||||
* The configuration space will be filled with all possible ranges
|
||||
* for the PCM device.
|
||||
*/
|
||||
int snd_pcm_hw_params_any(snd_pcm_t *pcm, snd_pcm_hw_params_t *params)
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue