Bug 88503 - ALSA application gets no timestamp information when using pulse plugin
Summary: ALSA application gets no timestamp information when using pulse plugin
Status: RESOLVED MOVED
Alias: None
Product: PulseAudio
Classification: Unclassified
Component: alsa (show other bugs)
Version: unspecified
Hardware: Other All
: medium normal
Assignee: pulseaudio-bugs
QA Contact: pulseaudio-bugs
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2015-01-16 16:33 UTC by sqweek
Modified: 2018-07-30 10:08 UTC (History)
1 user (show)

See Also:
i915 platform:
i915 features:


Attachments

Description sqweek 2015-01-16 16:33:34 UTC
In normal ALSA operation, you can enable timestamps on an audio stream using the SND_PCM_TSTAMP_ENABLE flag to alsa_snd_pcm_sw_params_set_tstamp_mode().

Subsequently, calling alsa_snd_pcm_status_get_tstamp() (or the higher precision get_htstamp) gives timing information.

On my machine this works fine with vanilla ALSA, but once I install an asoundrc which specifies "type pulse" for pcm.!default and ctl.!default timing information is no longer available (get_tstamp and get_htstamp always return zero).
Comment 1 Raymond 2015-01-17 12:46:36 UTC
http://git.alsa-project.org/?p=alsa-lib.git;a=commitdiff;h=65ff6fdafb705b5e2e6d4b9a94a80e5de89f5de1;hp=9b716075de4f2f7f15e428ee7efaa8960ef45b9c

not sure those io plugins support time stamp or not

you have to ask this question in alsa dever mailing list
Comment 2 sqweek 2015-01-29 03:35:04 UTC
I'm not sure I've understood; judging by the discussions on alsa-devel it doesn't seem like the place for pulse questions or API queries. I sent a message anyway in case someone with the requisite wisdom had time to help, but I'm not confident I'll get a response (3 days so far).
Comment 3 Nicolas Dufresne 2015-09-23 18:24:57 UTC
I have just hit same issue here, which struct hard in GStreamer as it produce timestamp 0 which cannot be dissociated with "no timestamp".
Comment 4 Arun Raghavan 2015-09-24 05:50:24 UTC
The bug does indeed seem to be on the alsa side.

Raymond is right, and your report on alsa-discuss seems to cover what's needed.

If there's no response in a couple of days, you could ping the thread again.
Comment 5 Arun Raghavan 2015-09-24 05:54:33 UTC
Just realised how long it's been since the original mail, let me re-ping.

For reference, the thread is at: http://mailman.alsa-project.org/pipermail/alsa-devel/2015-February/087353.html
Comment 6 GitLab Migration User 2018-07-30 10:08:40 UTC
-- GitLab Migration Automatic Message --

This bug has been migrated to freedesktop.org's GitLab instance and has been closed from further activity.

You can subscribe and participate further through the new bug through this link to our GitLab instance: https://gitlab.freedesktop.org/pulseaudio/pulseaudio/issues/234.


Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.