mirror of
https://github.com/alsa-project/alsa-lib.git
synced 2025-11-04 13:30:08 -05:00
Removed card type from devices info. Added card number to devices info. Completed encapsulation of PCM API. Removed snd_pcm_card(). All copy functions now have the form copy(dst, src).
This commit is contained in:
parent
8e9a23acb5
commit
de19407578
58 changed files with 560 additions and 382 deletions
|
|
@ -20,10 +20,6 @@
|
|||
*/
|
||||
|
||||
#include "pcm_local.h"
|
||||
#define SND_INTERVAL_INLINE
|
||||
#define SND_MASK_INLINE
|
||||
#include "interval.h"
|
||||
#include "mask.h"
|
||||
|
||||
static inline int hw_is_mask(int var)
|
||||
{
|
||||
|
|
@ -2334,3 +2330,53 @@ int snd_pcm_sw_params(snd_pcm_t *pcm, snd_pcm_sw_params_t *params)
|
|||
return 0;
|
||||
}
|
||||
|
||||
size_t snd_pcm_hw_params_sizeof()
|
||||
{
|
||||
return sizeof(snd_pcm_hw_params_t);
|
||||
}
|
||||
|
||||
int snd_pcm_hw_params_malloc(snd_pcm_hw_params_t **paramsp)
|
||||
{
|
||||
*paramsp = malloc(sizeof(snd_pcm_hw_params_t));
|
||||
if (!*paramsp)
|
||||
return -ENOMEM;
|
||||
return 0;
|
||||
}
|
||||
|
||||
int snd_pcm_hw_params_free(snd_pcm_hw_params_t *params)
|
||||
{
|
||||
free(params);
|
||||
}
|
||||
|
||||
|
||||
void snd_pcm_hw_params_copy(snd_pcm_hw_params_t *dst,
|
||||
const snd_pcm_hw_params_t *src)
|
||||
{
|
||||
*dst = *src;
|
||||
}
|
||||
|
||||
size_t snd_pcm_sw_params_sizeof()
|
||||
{
|
||||
return sizeof(snd_pcm_sw_params_t);
|
||||
}
|
||||
|
||||
int snd_pcm_sw_params_malloc(snd_pcm_sw_params_t **paramsp)
|
||||
{
|
||||
*paramsp = malloc(sizeof(snd_pcm_sw_params_t));
|
||||
if (!*paramsp)
|
||||
return -ENOMEM;
|
||||
return 0;
|
||||
}
|
||||
|
||||
int snd_pcm_sw_params_free(snd_pcm_sw_params_t *params)
|
||||
{
|
||||
free(params);
|
||||
}
|
||||
|
||||
|
||||
void snd_pcm_sw_params_copy(snd_pcm_sw_params_t *dst,
|
||||
const snd_pcm_sw_params_t *src)
|
||||
{
|
||||
*dst = *src;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue