mirror of
https://github.com/alsa-project/alsa-lib.git
synced 2025-11-05 13:30:00 -05:00
pcm: Add sw_params API functions to get/set timestamp type
For obtaining / changing the timestamp type, add the corresponding sw_params accessor API functions together with the public definitions of timestamp types. This patch only adds the functions and defines but doesn't bring the functional changes yet. Signed-off-by: Takashi Iwai <tiwai@suse.de>
This commit is contained in:
parent
5250a8e212
commit
0d393c29a2
4 changed files with 64 additions and 0 deletions
|
|
@ -2258,6 +2258,7 @@ static int snd_pcm_sw_params_default(snd_pcm_t *pcm, snd_pcm_sw_params_t *params
|
|||
assert(pcm && params);
|
||||
assert(pcm->setup);
|
||||
params->tstamp_mode = SND_PCM_TSTAMP_NONE;
|
||||
params->tstamp_type = pcm->tstamp_type;
|
||||
params->period_step = 1;
|
||||
params->sleep_min = 0;
|
||||
params->avail_min = pcm->period_size;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue