mirror of
https://github.com/alsa-project/alsa-lib.git
synced 2025-10-31 22:25:35 -04:00
Impemented snd_pcm_htimestamp() function.
This commit is contained in:
parent
309a274454
commit
2c1318803f
19 changed files with 182 additions and 14 deletions
|
|
@ -636,6 +636,13 @@ static snd_pcm_sframes_t snd_pcm_ioplug_avail_update(snd_pcm_t *pcm)
|
|||
return (snd_pcm_sframes_t)avail;
|
||||
}
|
||||
|
||||
static int snd_pcm_ioplug_htimestamp(snd_pcm_t *pcm ATTRIBUTE_UNUSED,
|
||||
snd_pcm_uframes_t *avail ATTRIBUTE_UNUSED,
|
||||
snd_htimestamp_t *tstamp ATTRIBUTE_UNUSED)
|
||||
{
|
||||
return -EIO; /* not implemented yet */
|
||||
}
|
||||
|
||||
static int snd_pcm_ioplug_nonblock(snd_pcm_t *pcm, int nonblock)
|
||||
{
|
||||
ioplug_priv_t *io = pcm->private_data;
|
||||
|
|
@ -774,6 +781,7 @@ static snd_pcm_fast_ops_t snd_pcm_ioplug_fast_ops = {
|
|||
.readn = snd_pcm_ioplug_readn,
|
||||
.avail_update = snd_pcm_ioplug_avail_update,
|
||||
.mmap_commit = snd_pcm_ioplug_mmap_commit,
|
||||
.htimestamp = snd_pcm_ioplug_htimestamp,
|
||||
.poll_descriptors_count = snd_pcm_ioplug_poll_descriptors_count,
|
||||
.poll_descriptors = snd_pcm_ioplug_poll_descriptors,
|
||||
.poll_revents = snd_pcm_ioplug_poll_revents,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue