All of lore.kernel.org
 help / color / mirror / Atom feed
From: Lee Revell <rlrevell@joe-job.com>
To: andi@lisas.de
Cc: alsa-devel@lists.sourceforge.net
Subject: Re: timer/sequencer driver issues: pulling my grey hair out
Date: Tue, 18 Oct 2005 23:33:52 -0400	[thread overview]
Message-ID: <1129692832.8910.51.camel@mindpipe> (raw)
In-Reply-To: <20051018210040.GB27858@rhlx01.fht-esslingen.de>

On Tue, 2005-10-18 at 23:00 +0200, Andreas Mohr wrote:
> - why is the program configuring a dangerously low sticks value of 1?
>   Is it due to a remaining misdeclaration of my timer attributes
> somewhere, or is it because of this program being stupid in its timer
> parameter choice?

Sorry, no idea.  The timer API is the one part of ALSA that is still
quite poorly documented.  Does the timer test utility that comes with
alsa-lib work?

> - it's a very good idea to get rid of the "stupid" *hidden* sticks
> bending in snd_emu10k1_timer_start(), right? Preferrably use an
> intelligent communication instead that makes sure that the program
> uses an sticks value that won't cause IRQ overload?
> 

I just copied this code over from the OSS driver.  I have no reason to
think it's correct.  All the information we have on the emu10k1's
interval timer comes from these comment by some anonymous Creative
engineer in emu10k1.h:

263 #define TIMER                   0x1a            /* Timer terminal count register                */
264                                                 /* NOTE: After the rate is changed, a maximum   */
265                                                 /* of 1024 sample periods should be allowed     */
266                                                 /* before the new rate is guaranteed accurate.  */
267 #define TIMER_RATE_MASK         0x000003ff      /* Timer interrupt rate in sample periods       */
268                                                 /* 0 == 1024 periods, [1..4] are not useful     */

Lee



-------------------------------------------------------
This SF.Net email is sponsored by:
Power Architecture Resource Center: Free content, downloads, discussions,
and more. http://solutions.newsforge.com/ibmarch.tmpl

  reply	other threads:[~2005-10-19  3:33 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-10-18 21:00 timer/sequencer driver issues: pulling my grey hair out Andreas Mohr
2005-10-19  3:33 ` Lee Revell [this message]
2005-10-19  6:52   ` Andreas Mohr
2005-10-19  7:56 ` Clemens Ladisch

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=1129692832.8910.51.camel@mindpipe \
    --to=rlrevell@joe-job.com \
    --cc=alsa-devel@lists.sourceforge.net \
    --cc=andi@lisas.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.