From: "Martijn Sipkema" <msipkema@sipkema-digital.com>
To: Takashi Iwai <tiwai@suse.de>
Cc: alsa-devel@alsa-project.org
Subject: Re: Fw: writing audiowerk driver (philips saa7146a), some questions
Date: Fri, 31 May 2002 19:11:45 +0100 [thread overview]
Message-ID: <007b01c208ce$bcc5a5b0$0400a8c0@martijn> (raw)
In-Reply-To: s5h7klkh1ba.wl@alsa2.suse.de
> > i don't think the audiowerk is the only card capable of varipitch,
though
> > most cards don't support it, but it is a nice feature and since alsa is
> > supposed to be advanced... :)
>
> many consumer chips support in fact, too, such as emu10k1, ymfpci,
> cs46xx (also trident?) sbawe and gus have pcms using synth
so it will be added? the best would be to have a pitch range for every
nominal sample rate as in EASI
http://www.emagic.de/english/support/easi/index.html )
> > > alsa pcm engine invokes a timer interrupt to update the "tick", and
> > > this tick is determined using the rate of the runtime instance.
> > > if you change the rate value dynamically during playback, then the
> > > tick interrupt will be wrongly scheduled, and leads to wrong detection
> > > of under/overrun.
> >
> > shouldn't the driver detect under/overrun?
>
> yes. that's why i mentioned above. if you don't change rate
> value in runtime instance, then the alsa driver tries to schedule tick
> interval as if it's not changed. and this causes inconsistency
> between the real-playback and tick time, eventually leading to a bogus
> detection of under/overrun.
i am lost. a under/overrun could (should) be detected from the interrupt
handler
for the card dma channel (period interrupt), right? that would never fail.
> > would a soundcard with a bad dac (as in not accurate) also cause
> > problems?
>
> if the hardware is too inaccurate (e.g. accumulated error over more
> than HZ), then, yes. but i don't think this may happen.
i am afraid i don't understand this and i don't now where i can find
documentation
on it. how do other driver writers do this? read the source? or an API
reference?
is there no overview on the architecture? reading driver source code is not
the
easiest or fastest way to understand what's going on, if it is at all
possible to
understand without knowledge of the specific hardware.
does hardware allow to have a device specific kernel driver with an
associated
device specific user-space part? this would be much easier to implement for
me
than an alsa kernel driver i think.
--martijn
_______________________________________________________________
Don't miss the 2002 Sprint PCS Application Developer's Conference
August 25-28 in Las Vegas -- http://devcon.sprintpcs.com/adp/index.cfm
next prev parent reply other threads:[~2002-05-31 17:12 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2002-05-31 10:38 Fw: writing audiowerk driver (philips saa7146a), some questions Martijn Sipkema
2002-05-31 11:03 ` tomasz motylewski
2002-05-31 12:22 ` Martijn Sipkema
2002-05-31 11:26 ` Takashi Iwai
2002-05-31 13:05 ` Martijn Sipkema
2002-05-31 13:15 ` Takashi Iwai
2002-05-31 14:36 ` Martijn Sipkema
[not found] ` <s5h7klkh1ba.wl@alsa2.suse.de>
2002-05-31 18:11 ` Martijn Sipkema [this message]
2002-06-03 11:26 ` Bob Ham
2002-06-03 12:49 ` Fw: writing audiowerk driver (philips saa7146a),some questions Martijn Sipkema
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='007b01c208ce$bcc5a5b0$0400a8c0@martijn' \
--to=msipkema@sipkema-digital.com \
--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.