From: K.Fetscher@t-online.de
To: alsa-devel@lists.sourceforge.net
Subject: New ALSA Driver
Date: Tue, 8 Mar 2005 21:46:24 +0100 [thread overview]
Message-ID: <200503082146.24634.k.fetscher@fetron.de> (raw)
Hi,
I wan't to program an ALSA driver for my custom ARM based Cirrus-EP9312 board.
The driver starts with the initialisation of the hardware, with
snd_card_new(...), snd_pcm_new(...), the request for the DMA-Controller,
programming snd_pcm_set_ops(...) and
snd_pcm_lib_preallocate_pages_for_all(...).
After that, I can see the card in the /proc/asound/card0/... filesystem.
When I start playing a song with aplay, ALSA calls hw_params(..), prepare(..)
and trigger(..) with command SNDRV_PCM_TRIGGER_START. After that, all stops
until I make a CTRL C (after that, it terminates with hw_free and close). Is
it correct, that runtime->dma_addr is 0 (runtime->size is 1000 and
runtime->period is 400) ?
I have looked into some drivers for the parameters of
snd_pcm_lib_preallocate_pages_for_all(...). There are different types for the
DMA type and I don't know, which is the correct type (at the moment, I use
SNDRV_DMA_TYPE_CONTINUOUS).
Thanks
Klaus
-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now.
http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click
next reply other threads:[~2005-03-08 20:46 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2005-03-08 20:46 K.Fetscher [this message]
2005-03-08 20:59 ` New ALSA Driver Lee Revell
2005-03-08 21:26 ` James Courtier-Dutton
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=200503082146.24634.k.fetscher@fetron.de \
--to=k.fetscher@t-online.de \
--cc=alsa-devel@lists.sourceforge.net \
/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.