* Wall Clock Counter
@ 2006-09-15 16:06 shane michael matthews
2006-09-15 16:28 ` Lee Revell
2006-09-15 16:46 ` Clemens Ladisch
0 siblings, 2 replies; 6+ messages in thread
From: shane michael matthews @ 2006-09-15 16:06 UTC (permalink / raw)
To: alsa-devel
[-- Attachment #1.1: Type: text/plain, Size: 635 bytes --]
Hello group,
What I want to do is read the value stored in the wall clock counter on my
sound card. Searching through the alsa documentation and source it appears
that snd_timer_read is the function I want to use. From timer.c:
"The timer implementation uses ring buffer to store information about timing
events. In this buffer is recorded count of ticks and current tick
resolution in nanoseconds." Is the 'ticks' referred to here the value in
the wall clock counter (It seems to always be set to 5 on my system)? If
anyone could point me to more documentation I would greatly appreciate it.
Help is greatly appreciated,
Shane
[-- Attachment #1.2: Type: text/html, Size: 692 bytes --]
[-- Attachment #2: Type: text/plain, Size: 373 bytes --]
-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
[-- Attachment #3: Type: text/plain, Size: 161 bytes --]
_______________________________________________
Alsa-devel mailing list
Alsa-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/alsa-devel
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: Wall Clock Counter
2006-09-15 16:06 Wall Clock Counter shane michael matthews
@ 2006-09-15 16:28 ` Lee Revell
2006-09-15 16:40 ` Lee Revell
[not found] ` <705aa3f00609151034j5a408668lf34cb095dbae582d@mail.gmail.com>
2006-09-15 16:46 ` Clemens Ladisch
1 sibling, 2 replies; 6+ messages in thread
From: Lee Revell @ 2006-09-15 16:28 UTC (permalink / raw)
To: shane michael matthews; +Cc: alsa-devel
On Fri, 2006-09-15 at 09:06 -0700, shane michael matthews wrote:
> Hello group,
>
> What I want to do is read the value stored in the wall clock counter
> on my sound card. Searching through the alsa documentation and source
> it appears that snd_timer_read is the function I want to use. From
> timer.c:
>
> "The timer implementation uses ring buffer to store information about
> timing events. In this buffer is recorded count of ticks and current
> tick resolution in nanoseconds." Is the 'ticks' referred to here the
> value in the wall clock counter (It seems to always be set to 5 on my
> system)? If anyone could point me to more documentation I would
> greatly appreciate it.
The answer to this will be hardware-specific. In order for
snd_timer_read() to work there must be a low level ALSA timer
implementation for your sound device. What soundcard do you use?
Lee
-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
^ permalink raw reply [flat|nested] 6+ messages in thread* Re: Wall Clock Counter
2006-09-15 16:28 ` Lee Revell
@ 2006-09-15 16:40 ` Lee Revell
[not found] ` <705aa3f00609151034j5a408668lf34cb095dbae582d@mail.gmail.com>
1 sibling, 0 replies; 6+ messages in thread
From: Lee Revell @ 2006-09-15 16:40 UTC (permalink / raw)
To: shane michael matthews; +Cc: alsa-devel
On Fri, 2006-09-15 at 12:28 -0400, Lee Revell wrote:
> to work
By "to work" I meant "to read the wall clock counter" - snd_timer_read
will work for other classes of timers like the system clock and per-PCM.
Lee
-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
^ permalink raw reply [flat|nested] 6+ messages in thread[parent not found: <705aa3f00609151034j5a408668lf34cb095dbae582d@mail.gmail.com>]
* Re: Wall Clock Counter
[not found] ` <705aa3f00609151034j5a408668lf34cb095dbae582d@mail.gmail.com>
@ 2006-09-15 17:38 ` shane michael matthews
2006-09-18 10:28 ` Clemens Ladisch
0 siblings, 1 reply; 6+ messages in thread
From: shane michael matthews @ 2006-09-15 17:38 UTC (permalink / raw)
To: alsa-devel
On 9/15/06, shane michael matthews <shane.michael.matthews@gmail.com> wrote:
> On 9/15/06, Lee Revell <rlrevell@joe-job.com> wrote:
> > On Fri, 2006-09-15 at 09:06 -0700, shane michael matthews wrote:
> > > Hello group,
> > >
> > > What I want to do is read the value stored in the wall clock counter
> > > on my sound card. Searching through the alsa documentation and source
> > > it appears that snd_timer_read is the function I want to use. From
> > > timer.c:
> > >
> > > "The timer implementation uses ring buffer to store information about
> > > timing events. In this buffer is recorded count of ticks and current
> > > tick resolution in nanoseconds." Is the 'ticks' referred to here the
> > > value in the wall clock counter (It seems to always be set to 5 on my
> > > system)? If anyone could point me to more documentation I would
> > > greatly appreciate it.
> >
> > The answer to this will be hardware-specific. In order for
> > snd_timer_read() to work there must be a low level ALSA timer
> > implementation for your sound device. What soundcard do you use?
> >
> > Lee
The device is:
# lspci
00:1b.0 Audio device: Intel Corporation 82801G (ICH7 Family) High
Definition Audio Controller (rev 01)
I found a manual at: http://www.intel.com/design/chipsets/manuals/307017.htm
On page 47 it discusses the wall clock.
-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
^ permalink raw reply [flat|nested] 6+ messages in thread* Re: Wall Clock Counter
2006-09-15 17:38 ` shane michael matthews
@ 2006-09-18 10:28 ` Clemens Ladisch
0 siblings, 0 replies; 6+ messages in thread
From: Clemens Ladisch @ 2006-09-18 10:28 UTC (permalink / raw)
To: alsa-devel
shane michael matthews wrote:
> > > > What I want to do is read the value stored in the wall clock counter
> > > > on my sound card. Searching through the alsa documentation and source
> > > > it appears that snd_timer_read is the function I want to use.
>
> The device is:
> 00:1b.0 Audio device: Intel Corporation 82801G (ICH7 Family) High
> Definition Audio Controller (rev 01)
ALSA timers require that the device can issue interrupts after some
specified interval. Your HDA controller cannot.
What do you want to use the wall clock counter for?
Regards,
Clemens
-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: Wall Clock Counter
2006-09-15 16:06 Wall Clock Counter shane michael matthews
2006-09-15 16:28 ` Lee Revell
@ 2006-09-15 16:46 ` Clemens Ladisch
1 sibling, 0 replies; 6+ messages in thread
From: Clemens Ladisch @ 2006-09-15 16:46 UTC (permalink / raw)
To: shane michael matthews, alsa-devel
shane michael matthews wrote:
> What I want to do is read the value stored in the wall clock counter on my
> sound card. Searching through the alsa documentation and source it appears
> that snd_timer_read is the function I want to use.
ALSA timers are interval timers. There is no device-independent API
for getting a wall clock counter value.
If you want to synchronize to a PCM device, you can use the hw_ptr value
as a wall clock counter.
HTH
Clemens
-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
^ permalink raw reply [flat|nested] 6+ messages in thread
end of thread, other threads:[~2006-09-18 10:28 UTC | newest]
Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-09-15 16:06 Wall Clock Counter shane michael matthews
2006-09-15 16:28 ` Lee Revell
2006-09-15 16:40 ` Lee Revell
[not found] ` <705aa3f00609151034j5a408668lf34cb095dbae582d@mail.gmail.com>
2006-09-15 17:38 ` shane michael matthews
2006-09-18 10:28 ` Clemens Ladisch
2006-09-15 16:46 ` Clemens Ladisch
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.