mirror of
https://github.com/alsa-project/alsa-lib.git
synced 2025-11-05 13:30:00 -05:00
Implement missing htimestamp callbacks
Implemented the missing htimestamp callbacks for ioplug, rate and null plugins.
This commit is contained in:
parent
77849672cd
commit
91fc64cefb
5 changed files with 50 additions and 20 deletions
|
|
@ -244,13 +244,6 @@ 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);
|
||||
|
|
@ -319,7 +312,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,
|
||||
.htimestamp = snd_pcm_generic_real_htimestamp,
|
||||
};
|
||||
|
||||
/**
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue