From: James Courtier-Dutton <James@superbug.demon.co.uk>
To: ALSA development <alsa-devel@alsa-project.org>
Subject: DMA feature question.
Date: Sat, 26 Jun 2004 15:44:32 +0100 [thread overview]
Message-ID: <40DD8BD0.40705@superbug.demon.co.uk> (raw)
I have a sound card that requires access to 2 DMA areas per substream.
1) Is for the audio samples buffer. I can already do that with:
err = snd_pcm_lib_preallocate_pages(substream, SNDRV_DMA_TYPE_DEV,
snd_dma_pci_data(emu->pci), 32*1024, 32*1024);
2) Is for a table of periods..
This table will contain:-
{ u32 Pointer_into_samples_buffer,
u32 number_of_bytes }
So, each record in the table is 8 bytes long, and identify each period
in the buffer.
So, the table will contain a list of the different periods.
So, if there are 8 periods, the table will have 8 entries, each 8 bytes
long, so I will need a DMA map for 64 bytes.
Is there any way to use the snd_pcm_lib_preallocate_pages() for this
"table or periods".
If not, I will just have to make (1) a bit bigger, and place the "table
of periods" in there.
Cheers
James
-------------------------------------------------------
This SF.Net email sponsored by Black Hat Briefings & Training.
Attend Black Hat Briefings & Training, Las Vegas July 24-29 -
digital self defense, top technical experts, no vendor pitches,
unmatched networking opportunities. Visit www.blackhat.com
next reply other threads:[~2004-06-26 13:42 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2004-06-26 14:44 James Courtier-Dutton [this message]
2004-06-28 15:57 ` DMA feature question Takashi Iwai
2004-06-28 17:32 ` James Courtier-Dutton
2004-06-28 16:48 ` Takashi Iwai
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=40DD8BD0.40705@superbug.demon.co.uk \
--to=james@superbug.demon.co.uk \
--cc=alsa-devel@alsa-project.org \
/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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox