All of lore.kernel.org
 help / color / mirror / Atom feed
From: Matthias Nyffenegger <matthias.nyffenegger@bluewin.ch>
To: alsa-devel@lists.sourceforge.net
Subject: DMA, substream, frame, channel - how is this all related
Date: Fri, 02 Mar 2007 22:57:39 +0100	[thread overview]
Message-ID: <45E89DD3.2080405@bluewin.ch> (raw)

Hi,

I am trying to write an alsa driver for my audiowerk8 soundcard.
The aw8 uses a Philips saa7146 chipset. There are 2 capture and
8 playback channels mapped on the saa7146's DMA as follows:

DMA1: 2xcapture
DMA2: 4xplayback
DMA3: 4xplayback

Sample format is 16bit.

Frame format is as follows:
(A number corresponds to a channel, a stereo channel-pair is embraced
by [] and 1 digit corresponds to one sample byte)

capture channels [0,1] on DMA1:        00--11--
playback channels [2,3],[4,5] on DMA2: 22443355
playback channels [6,7],[8,9] on DMA3: 66887799

I guess this is interleaved format.

Since I don't really understand the relation between DMA, substreams,
frames and channels I wonder how a alsa substreams map best to this
configuration:
1) 1 substream per DMA
   -> can alsa handle frames with more than 2 channels, and if yes, how?
2) 1 substream per stereo channel-pair
3) 1 substream per channel


Regards, Matthias




-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV

             reply	other threads:[~2007-03-02 21:57 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-03-02 21:57 Matthias Nyffenegger [this message]
2007-03-03 14:25 ` DMA, substream, frame, channel - how is this all related Giuliano Pochini

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=45E89DD3.2080405@bluewin.ch \
    --to=matthias.nyffenegger@bluewin.ch \
    --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.