From: Heikki Lindholm <holindho@cs.helsinki.fi>
To: Takashi Iwai <tiwai@suse.de>
Cc: alsa-devel@alsa-project.org
Subject: Re: alsa timestamps
Date: Tue, 20 Nov 2007 16:54:32 +0200 [thread overview]
Message-ID: <4742F528.3030905@cs.helsinki.fi> (raw)
In-Reply-To: <s5habp9gg9c.wl%tiwai@suse.de>
Takashi Iwai kirjoitti:
> At Mon, 19 Nov 2007 15:41:46 +0200,
> Heikki Lindholm wrote:
>> Jaroslav Kysela kirjoitti:
>>> On Mon, 19 Nov 2007, Heikki Lindholm wrote:
>>>
>>>> Heikki Lindholm kirjoitti:
>>>>> Hello list,
>>>>>
>>>>> I took up some old dusty code of mine that uses snd_pcm_state followed
>>>>> by snd_pcm_status_get_tstamp when in capture mode. The code used to
>>>>> work, but now the returned timestamps are all zeroes. Is there some API
>>>>> change done recently or is the whole timestamping deprecated or
>>>>> something? I've tried with different drivers on ubuntu's alsa .14 and
>>>>> gentoo's .14. I've also tried mmap'ed and r/w modes, and I'm setting the
>>>>> TSTAMP_MMAP sw param.
>>>> I figured out that this doesn't happen when using hw:x,y devices. Is it
>>>> a documented feature that some (software?) devices don't fill in timestamps?
>>> I think that it should be fixed. Could you send us 'snd_pcm_dump()' for a
>>> non-working device? It's probably ommited code in direct pcm plugins (dmix
>>> & etc.).
>> Here goes. The driver is snd_aoa. It seems as if the timestamp mode
>> isn't propagated to the hw device.
>
> AFAIK, the time-stamp mode isn't handled properly with direct plugins
> because of its nature. Since the direct plugins share the same PCM
> hardware instance with multiple processes, you cannot change the
> parameter arbitrarily from a single client.
>
> We may implement an emulation in alsa-lib instead, though...
For the time being, is there any other way of determining whether a pcm
supports time stamps than just trying out and seeing if zero is all that
comes out?
-- Heikki Lindholm
next prev parent reply other threads:[~2007-11-20 14:54 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-11-19 7:38 alsa timestamps Heikki Lindholm
2007-11-19 12:54 ` Heikki Lindholm
2007-11-19 13:07 ` Jaroslav Kysela
2007-11-19 13:41 ` Heikki Lindholm
2007-11-20 14:09 ` Takashi Iwai
2007-11-20 14:54 ` Heikki Lindholm [this message]
2007-11-20 14:43 ` Takashi Iwai
2007-11-20 16:07 ` Heikki Lindholm
2007-11-21 10:33 ` Takashi Iwai
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=4742F528.3030905@cs.helsinki.fi \
--to=holindho@cs.helsinki.fi \
--cc=alsa-devel@alsa-project.org \
--cc=tiwai@suse.de \
/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.