From: golden <magic.lixin@gmail.com>
To: Arun Raghavan <arun@accosted.net>,
General PulseAudio Discussion
<pulseaudio-discuss@lists.freedesktop.org>
Cc: "alsa-devel@alsa-project.org" <alsa-devel@alsa-project.org>
Subject: Re: snd_pcm_htimestamp error
Date: Fri, 03 Jul 2015 14:41:54 +0800 [thread overview]
Message-ID: <55962EB2.4080903@gmail.com> (raw)
In-Reply-To: <CACuU-+iMRha=90r_Ck1zvsxO+VGvnCy2FKtk7KZahPQv17B24Q@mail.gmail.com>
Thanks, I just found the problem, when building alsa-lib,
the HAVE_CLOCK_GETTIME is not defined in config.h,
so mononic time is not supported in alsa-lib, after changed system date,
snd_pcm_htimestamp always return the time from 1970.
在 2015年07月03日 12:42, Arun Raghavan 写道:
> It looks like this might be more relevant on alsa-devel. Some more
> details on the platform might be useful.
>
> -- Arun
>
> On 2 July 2015 at 08:35, golden <magic.lixin@gmail.com> wrote:
>> Hi PulseAudio forks,
>>
>> snd_pcm_htimestamp is unstable after change the date time of OS by using
>> "date -s xxx-xxx-xx",
>> It is very strange that the time value get from snd_pcm_htimestamp is
>> always 1420588802151082308
>>
>> and here is what I get when cat the alsa infomation:
>>
>> uid=0 gid=0@nutshell:/ # cat /proc/asound/card0/pcm0p/sub0/status
>> state: RUNNING
>> owner_pid : 1339
>> trigger_time: 1420591411.800808521
>> tstamp : 1420591457.486751372
>> delay : 5040
>> avail : 3152
>> avail_max : 0
>> -----
>> hw_ptr : 2193408
>> appl_ptr : 2198448
>>
>> Does anyone met this problem before ?
>>
>> Thanks!
>>
>>
>>
>> BR,
>> Lixin
>> _______________________________________________
>> pulseaudio-discuss mailing list
>> pulseaudio-discuss@lists.freedesktop.org
>> http://lists.freedesktop.org/mailman/listinfo/pulseaudio-discuss
_______________________________________________
pulseaudio-discuss mailing list
pulseaudio-discuss@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/pulseaudio-discuss
prev parent reply other threads:[~2015-07-03 6:41 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <5594AA86.4000802@gmail.com>
2015-07-03 4:42 ` snd_pcm_htimestamp error Arun Raghavan
2015-07-03 6:41 ` golden [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=55962EB2.4080903@gmail.com \
--to=magic.lixin@gmail.com \
--cc=alsa-devel@alsa-project.org \
--cc=arun@accosted.net \
--cc=pulseaudio-discuss@lists.freedesktop.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.