9fans - fans of the OS Plan 9 from Bell Labs
 help / color / mirror / Atom feed
From: Tristan Plumb <9p-st@imu.li>
To: 9fans@9fans.net
Subject: [9fans] kw audio -- /dev/audio and friends
Date: Tue, 26 Oct 2010 10:06:41 -0400	[thread overview]
Message-ID: <2577c8.0aa552af.tqKm.mx@tumtum.plumbweb.net> (raw)

i've been working on an an audio driver for the kirkwood for a while now,
indeed it's been working well for a while now. at this point i'm mostly
struggling to figure out the mixer/controls/codec filesystem interface.

if any of this is incorrect, please correct me.

the soundblaster driver has audio for data and volume for control:
name [in l r] [out l r]

usb/audio has audio and audioin for data and audioctl for control:
name (in|out) val min [max [res]]
with writes looking like volume

as yet, i have audio and audioin with audioctl and audioinctl:
name min max( val)+
writes:
name( val)+

mostly this just feels better to me. it has both single and multiple
values, it can handle cards with more than one channel in or out (not
that i'm working with one), and it's simple. but it doesn't indicate
card-wide controls (i have a few), and it's yet another incompatable
interface.

do any of you folks have opinions on these interfaces? i would like to
use a simple and extendible interface for the kirkwood driver, and am
willing to convert the soundblaster and usb drivers and sound programs
(though i don't have the hardware to test).

tristan

--
All original matter is hereby placed immediately under the public domain.



             reply	other threads:[~2010-10-26 14:06 UTC|newest]

Thread overview: 16+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-10-26 14:06 Tristan Plumb [this message]
2010-10-26 14:31 ` Russ Cox
2010-10-26 14:49   ` erik quanstrom
2010-10-27 12:30 ` Tristan Plumb
2010-10-27 12:50   ` Lucio De Re
2010-10-27 13:29   ` erik quanstrom
2010-10-27 14:15     ` Tristan Plumb
2010-10-27 18:58       ` Anthony Sorace
2010-10-27 20:07         ` Skip Tavakkolian
2010-10-27 21:05           ` David Leimbach
2010-10-28  0:11           ` Tristan Plumb
2010-10-28  3:01             ` Anthony Sorace
2010-10-28  7:53               ` yy
2010-10-28 12:38                 ` Tristan Plumb
2010-10-28 13:07                   ` Gorka Guardiola
2010-10-28 13:26                     ` Tristan Plumb

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=2577c8.0aa552af.tqKm.mx@tumtum.plumbweb.net \
    --to=9p-st@imu.li \
    --cc=9fans@9fans.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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).