From: Andreas Pape Date: Fri, 25 Nov 2016 11:36:37 +0000 (+0530) Subject: pcm: file: Add htimestamp operation in plugin file X-Git-Tag: v1.1.3~13 X-Git-Url: https://git.alsa-project.org/?a=commitdiff_plain;h=f8d07a7354a3fee1e30073aa7ac2efb89ef4e782;p=alsa-lib.git pcm: file: Add htimestamp operation in plugin file PCM operation htimestamp is not implemented in plugin file. Calling snd_pcm_htimestamp() on a plugin file crashes. This scenario is considered now. Signed-off-by: Andreas Pape Signed-off-by: Joshua Frkuska Signed-off-by: Takashi Iwai --- diff --git a/src/pcm/pcm_file.c b/src/pcm/pcm_file.c index ae58c531..6ed39633 100644 --- a/src/pcm/pcm_file.c +++ b/src/pcm/pcm_file.c @@ -706,6 +706,7 @@ static const snd_pcm_fast_ops_t snd_pcm_file_fast_ops = { .readi = snd_pcm_file_readi, .readn = snd_pcm_file_readn, .avail_update = snd_pcm_generic_avail_update, + .htimestamp = snd_pcm_generic_htimestamp, .mmap_commit = snd_pcm_file_mmap_commit, .poll_descriptors_count = snd_pcm_generic_poll_descriptors_count, .poll_descriptors = snd_pcm_generic_poll_descriptors,