snd_pcm_htimestamp & more PCM mmap timestamping in driver

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi all,

	I just added snd_pcm_htimestamp() function to alsa-lib:

int snd_pcm_htimestamp(snd_pcm_t *pcm, snd_pcm_uframes_t *avail, 
		       snd_htimestamp_t *tstamp);

	If you have any complaints, please, do now.

	Also, I would like to change SNDRV_PCM_TSTAMP_MMAP semantics to 
SNDRV_PCM_TSTAMP_ENABLE - when hw_ptr is updated in the driver, a 
timestamp would be always grabbed to ensure that we have always a valid 
timestamp & position pair. In current implementation, if an application 
updates hw_ptr in driver (using for example PCM delay ioctl), timestamp 
grabbed in the interrupt handler won't be associated with any real ring 
buffer position which makes things complicated and not too much abstract. 
Opinions?

						Jaroslav

-----
Jaroslav Kysela <perex@xxxxxxxx>
Linux Kernel Sound Maintainer
ALSA Project, Red Hat, Inc.

_______________________________________________
Alsa-devel mailing list
Alsa-devel@xxxxxxxxxxxxxxxx
http://mailman.alsa-project.org/mailman/listinfo/alsa-devel

[Index of Archives]     [ALSA User]     [Linux Audio Users]     [Kernel Archive]     [Asterisk PBX]     [Photo Sharing]     [Linux Sound]     [Video 4 Linux]     [Gimp]     [Yosemite News]

  Powered by Linux