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 <apape@de.adit-jv.com>
Signed-off-by: Joshua Frkuska <joshua_frkuska@mentor.com>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
This commit is contained in:
Andreas Pape 2016-11-25 17:06:37 +05:30 committed by Takashi Iwai
parent 876563c824
commit f8d07a7354

View file

@ -706,6 +706,7 @@ static const snd_pcm_fast_ops_t snd_pcm_file_fast_ops = {
.readi = snd_pcm_file_readi, .readi = snd_pcm_file_readi,
.readn = snd_pcm_file_readn, .readn = snd_pcm_file_readn,
.avail_update = snd_pcm_generic_avail_update, .avail_update = snd_pcm_generic_avail_update,
.htimestamp = snd_pcm_generic_htimestamp,
.mmap_commit = snd_pcm_file_mmap_commit, .mmap_commit = snd_pcm_file_mmap_commit,
.poll_descriptors_count = snd_pcm_generic_poll_descriptors_count, .poll_descriptors_count = snd_pcm_generic_poll_descriptors_count,
.poll_descriptors = snd_pcm_generic_poll_descriptors, .poll_descriptors = snd_pcm_generic_poll_descriptors,