mirror of
https://github.com/alsa-project/alsa-lib.git
synced 2025-11-04 13:30:08 -05:00
Impemented snd_pcm_htimestamp() function.
This commit is contained in:
parent
309a274454
commit
2c1318803f
19 changed files with 182 additions and 14 deletions
|
|
@ -244,6 +244,13 @@ static snd_pcm_sframes_t snd_pcm_null_avail_update(snd_pcm_t *pcm)
|
|||
return pcm->buffer_size;
|
||||
}
|
||||
|
||||
static int snd_pcm_null_htimestamp(snd_pcm_t *pcm ATTRIBUTE_UNUSED,
|
||||
snd_pcm_uframes_t *avail ATTRIBUTE_UNUSED,
|
||||
snd_htimestamp_t *tstamp ATTRIBUTE_UNUSED)
|
||||
{
|
||||
return -EIO;
|
||||
}
|
||||
|
||||
static int snd_pcm_null_hw_refine(snd_pcm_t *pcm ATTRIBUTE_UNUSED, snd_pcm_hw_params_t *params)
|
||||
{
|
||||
int err = snd_pcm_hw_refine_soft(pcm, params);
|
||||
|
|
@ -312,6 +319,7 @@ static snd_pcm_fast_ops_t snd_pcm_null_fast_ops = {
|
|||
.readn = snd_pcm_null_readn,
|
||||
.avail_update = snd_pcm_null_avail_update,
|
||||
.mmap_commit = snd_pcm_null_mmap_commit,
|
||||
.htimestamp = snd_pcm_null_htimestamp,
|
||||
};
|
||||
|
||||
/**
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue