]> git.alsa-project.org Git - alsa-lib.git/commitdiff
pcm: file: Add htimestamp operation in plugin file
authorAndreas Pape <apape@de.adit-jv.com>
Fri, 25 Nov 2016 11:36:37 +0000 (17:06 +0530)
committerTakashi Iwai <tiwai@suse.de>
Mon, 28 Nov 2016 19:18:19 +0000 (20:18 +0100)
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 <apape@de.adit-jv.com>
Signed-off-by: Joshua Frkuska <joshua_frkuska@mentor.com>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
src/pcm/pcm_file.c

index ae58c531360e35864c3898c750a6234609be1f7a..6ed396332c2823dbf8049ebb7b31f09d32fa20e3 100644 (file)
@@ -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,