* Sound card DMA questions.
@ 2004-07-20 1:18 James Courtier-Dutton
2004-07-20 7:39 ` Giuliano Pochini
0 siblings, 1 reply; 2+ messages in thread
From: James Courtier-Dutton @ 2004-07-20 1:18 UTC (permalink / raw)
To: alsa-devel
With DMA accesses, one has a sound card connected to a PCI bus, which is
then connected to the RAM.
The sound card will schedule a DMA transfer.
My questions are:
1) What size is the DMA transfer?
2) Are the min/max limits on how many bytes can be passed on a transfer?
3) When does the transfer happen. At period boundarys or when ?
4) What triggers a user land poll() to return. An irq based
snd_period_elapsed() call, or something else?
And finally,
5) if I am reverse engineering a card, how can I discover these min/max
values?
James
-------------------------------------------------------
This SF.Net email is sponsored by BEA Weblogic Workshop
FREE Java Enterprise J2EE developer tools!
Get your free copy of BEA WebLogic Workshop 8.1 today.
http://ads.osdn.com/?ad_id=4721&alloc_id=10040&op=click
^ permalink raw reply [flat|nested] 2+ messages in thread
* RE: Sound card DMA questions.
2004-07-20 1:18 Sound card DMA questions James Courtier-Dutton
@ 2004-07-20 7:39 ` Giuliano Pochini
0 siblings, 0 replies; 2+ messages in thread
From: Giuliano Pochini @ 2004-07-20 7:39 UTC (permalink / raw)
To: James Courtier-Dutton; +Cc: alsa-devel
On 20-Jul-2004 James Courtier-Dutton wrote:
> With DMA accesses, one has a sound card connected to a PCI bus, which
> is then connected to the RAM.
>
> The sound card will schedule a DMA transfer.
>
> My questions are:
> 1) What size is the DMA transfer?
It's defined by the driver.
> 2) Are the min/max limits on how many bytes can be passed on a transfer?
Usually, no. There may be limits defined by DMA-able region and
card's capabilities.
> 3) When does the transfer happen. At period boundarys or when ?
DMA transfers are managed entirely by the card once the driver
starts them. You should ask the manufacturer for these infos. Btw
they're not important from the driver's viewpoint.
> 4) What triggers a user land poll() to return. An irq based
> snd_period_elapsed() call, or something else?
_elapsed() doesn't require to be called from inside irq handler.
> 5) if I am reverse engineering a card, how can I discover these
> min/max values?
There isn't a standard procedure to reverse engeneer something.
--
Giuliano.
-------------------------------------------------------
This SF.Net email is sponsored by BEA Weblogic Workshop
FREE Java Enterprise J2EE developer tools!
Get your free copy of BEA WebLogic Workshop 8.1 today.
http://ads.osdn.com/?ad_id=4721&alloc_id=10040&op=click
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2004-07-20 7:39 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2004-07-20 1:18 Sound card DMA questions James Courtier-Dutton
2004-07-20 7:39 ` Giuliano Pochini
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.