All of lore.kernel.org
 help / color / mirror / Atom feed
From: Ludwig Schwardt <schwardt@sun.ac.za>
To: alsa-devel@lists.sourceforge.net
Subject: Writing a mini ALSA driver from scratch
Date: Wed, 25 Aug 2004 22:09:02 +0200	[thread overview]
Message-ID: <412CF1DE.1060203@sun.ac.za> (raw)
In-Reply-To: <E1BzmB2-00014C-RI@sc8-sf-list2.sourceforge.net>

Hi,

A student of mine is working on an audio capture driver for an ARM Linux 
system. The ARM (AT91RM9200) processor talks via SSC and I2S to a set of 
audio ADCs that capture 6 channels of 24-bit 192 kHz audio (no playback 
involved).

The application is real-time sound logging (latency not important). I 
figured it might save the application developers some hassles by 
presenting this capture device as a soundcard to Linux. That way it may 
simplify realtime processing by using standard callback interfaces such 
as JACK (less apps to write!).

My questions to the ALSA gurus are:

1) Is this a sound approach? (sorry, that slipped out)

2) Is it possible to write a bare-bones ALSA driver with only capturing 
functionality (no playback/mixer)? What are the bare essentials that 
make up an ALSA driver? (I'm worried about overkill)

3) Are there any existing drivers that could serve as a good template 
for a minimalist driver (I'm ignoring issues such as ISA/PCI etc.), to 
see how viable this option is? I was thinking maybe Gravis Ultrasound or 
such...

4) Is an ALSA driver even possible on ARM (dunno much about mmap and the 
like)?

Thanks in advance for any tips. I was thinking of ploughing back any 
generic stuff along the way (like the AT91 SSC support).

Ludwig Schwardt


-------------------------------------------------------
SF.Net email is sponsored by Shop4tech.com-Lowest price on Blank Media
100pk Sonic DVD-R 4x for only $29 -100pk Sonic DVD+R for only $33
Save 50% off Retail on Ink & Toner - Free Shipping and Free Gift.
http://www.shop4tech.com/z/Inkjet_Cartridges/9_108_r285

  parent reply	other threads:[~2004-08-25 20:09 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <E1BzmB2-00014C-RI@sc8-sf-list2.sourceforge.net>
2004-08-25  8:03 ` low latency: which is the best distro-kernel-alsa version combo? Michele Spinolo
2004-08-25 20:09 ` Ludwig Schwardt [this message]
2004-08-25 21:16   ` Writing a mini ALSA driver from scratch 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=412CF1DE.1060203@sun.ac.za \
    --to=schwardt@sun.ac.za \
    --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.