Skip to content

Commit

Permalink
pcm: clarify documentation on some hw params related functions
Browse files Browse the repository at this point in the history
Closes: #369
Signed-off-by: Zeno Endemann <zeno.endemann@mailbox.org>
Signed-off-by: Jaroslav Kysela <perex@perex.cz>
  • Loading branch information
z-s-e authored and perexg committed Dec 8, 2023
1 parent caab680 commit 454638e
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions src/pcm/pcm.c
Original file line number Diff line number Diff line change
Expand Up @@ -894,6 +894,7 @@ int snd_pcm_info(snd_pcm_t *pcm, snd_pcm_info_t *info)
* \param pcm PCM handle
* \param params Configuration space definition container
* \return 0 on success otherwise a negative error code
* \retval -EBADFD no hardware configuration is set
*/
int snd_pcm_hw_params_current(snd_pcm_t *pcm, snd_pcm_hw_params_t *params)
{
Expand Down Expand Up @@ -960,6 +961,8 @@ int snd_pcm_hw_params(snd_pcm_t *pcm, snd_pcm_hw_params_t *params)
/** \brief Remove PCM hardware configuration and free associated resources
* \param pcm PCM handle
* \return 0 on success otherwise a negative error code
*
* The function will also report success if no configuration is set.
*/
int snd_pcm_hw_free(snd_pcm_t *pcm)
{
Expand Down Expand Up @@ -3929,6 +3932,11 @@ int snd_pcm_hw_params_get_fifo_size(const snd_pcm_hw_params_t *params)
*
* The configuration space will be filled with all possible ranges
* for the PCM device.
*
* Note that the configuration space may be constrained by the
* currently installed configuration on the PCM device. To remove
* any constrains, free the configuration with #snd_pcm_hw_free
* first.
*/
int snd_pcm_hw_params_any(snd_pcm_t *pcm, snd_pcm_hw_params_t *params)
{
Expand Down

0 comments on commit 454638e

Please sign in to comment.