alsa-devel.alsa-project.org archive mirror
 help / color / mirror / Atom feed
* Using the timer
@ 2011-09-21 12:55 Ilya Dmitrichenko
  2011-09-21 13:54 ` Clemens Ladisch
  0 siblings, 1 reply; 4+ messages in thread
From: Ilya Dmitrichenko @ 2011-09-21 12:55 UTC (permalink / raw)
  To: alsa-devel

Hi,

I would like to utilise the hardware timer which is in the soundcard
in an application.

I suppose that I can somehow set snd-seq-timer to use a particular
device as master
and access that via sequencer API? The particular device that I have
is Hammerfall
HDSP (snd-hdsp).

Cheers,
-- 
Ilya

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: Using the timer
  2011-09-21 12:55 Using the timer Ilya Dmitrichenko
@ 2011-09-21 13:54 ` Clemens Ladisch
       [not found]   ` <CAPhDKbFwuX_HRYYxbUiwDi=G5BU8P9j_8YVytH1bY+x03_cBuA@mail.gmail.com>
  0 siblings, 1 reply; 4+ messages in thread
From: Clemens Ladisch @ 2011-09-21 13:54 UTC (permalink / raw)
  To: Ilya Dmitrichenko; +Cc: alsa-devel

Ilya Dmitrichenko wrote:
> I would like to utilise the hardware timer which is in the soundcard
> in an application.
> 
> The particular device that I have is Hammerfall
> HDSP (snd-hdsp).

What hardware timer?


Regards,
Clemens

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: Using the timer
       [not found]   ` <CAPhDKbFwuX_HRYYxbUiwDi=G5BU8P9j_8YVytH1bY+x03_cBuA@mail.gmail.com>
@ 2011-09-22 11:57     ` Clemens Ladisch
       [not found]       ` <CAPhDKbHXBidShZ4WhLaQPtHwUT9Kw2cRX=JSfdYMB7MmK1a9Vg@mail.gmail.com>
  0 siblings, 1 reply; 4+ messages in thread
From: Clemens Ladisch @ 2011-09-22 11:57 UTC (permalink / raw)
  To: Ilya Dmitrichenko; +Cc: alsa-devel

Ilya Dmitrichenko wrote:
> On 21 September 2011 13:54, Clemens Ladisch <clemens@ladisch.de> wrote:
> > What hardware timer?
> 
> I meant the clock of the soundcard.

The HDSP does have a sample clock, but it cannot be used independently
from a running PCM stream.

Using this PCM slave timer in the sequencer is possible, but the period
length is likely to be much larger than the desired sequencer timestamp
granularity.

What exactly do you want to do?


Regards,
Clemens

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: Using the timer
       [not found]       ` <CAPhDKbHXBidShZ4WhLaQPtHwUT9Kw2cRX=JSfdYMB7MmK1a9Vg@mail.gmail.com>
@ 2011-09-22 14:45         ` Clemens Ladisch
  0 siblings, 0 replies; 4+ messages in thread
From: Clemens Ladisch @ 2011-09-22 14:45 UTC (permalink / raw)
  To: Ilya Dmitrichenko; +Cc: alsa-devel

Ilya Dmitrichenko wrote:
> So you are saying that PCM slave timer can be used in some
> way, but it would be clocked at the sampling rate, right?

We get an interrupt at every period boundary, so the timer would
run at, e.g., one 128th of the sampling rate.

> Hm, so 'snd-seq-timer' is essentially hooked to the host cpu
> clock (be that TSC/RTC/HPET) ?

In the default setting, yes.


Regards,
Clemens

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2011-09-22 14:45 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-09-21 12:55 Using the timer Ilya Dmitrichenko
2011-09-21 13:54 ` Clemens Ladisch
     [not found]   ` <CAPhDKbFwuX_HRYYxbUiwDi=G5BU8P9j_8YVytH1bY+x03_cBuA@mail.gmail.com>
2011-09-22 11:57     ` Clemens Ladisch
     [not found]       ` <CAPhDKbHXBidShZ4WhLaQPtHwUT9Kw2cRX=JSfdYMB7MmK1a9Vg@mail.gmail.com>
2011-09-22 14:45         ` Clemens Ladisch

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).