Wall Clock Counter
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
-------------------------------------------------------------------------
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
_______________________________________________
Alsa-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/alsa-devel
Quoted 7 lines · shane michael matthews
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_readis the function I want to use. Fromtimer.c:
Quoted 6 lines
"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
Quoted 1 line · Lee Revell
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
A message that is not in the archive (sent off-list or not yet received): [email protected]
Quoted 16 lines · shane michael matthews
Quoted 15 lines · Lee Revell
Quoted 13 lines · shane michael matthews
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_readis the function I want to use. Fromtimer.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.
Quoted 5 lines
Quoted 5 lines
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
Quoted 7 lines · shane michael matthews
Quoted 3 lines
Quoted 3 lines
Quoted 3 lines
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_readis 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
Quoted 3 lines · shane michael matthews
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_readis 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