9fans - fans of the OS Plan 9 from Bell Labs
 help / color / mirror / Atom feed
From: rog@vitanuova.com
To: 9fans@cse.psu.edu
Subject: [9fans] usb audio
Date: Fri, 21 Feb 2003 18:02:16 +0000	[thread overview]
Message-ID: <a9d149fc65c213559c703d64275367b6@vitanuova.com> (raw)

i just got my new xitel hifi-link (on presotto's recommendation), and
hacked madplay so that it sets the speed and number of channels
appropriately to the mp3 file.

only problem is that doing this when the /dev/audio is already open
reliably crashes the kernel.
(first i get a write error from usbaudio:
	writing ep 4 1 w 4 44100 to #U/usb0/1/ctl: permission denied,
then the kernel panics with "fault: xxx")

i've now fixed it so it closes /dev/audio before writing to audioctl
and then reopens it, but it doesn't seem like this should be
necessary.

the other thing is i'd really like usbaudio to attach to the correct
usb port automatically: is there enough information provided by the
usb device to automatically identify an audio device (currently i look
at the output of usbd -v, or have a look in /dev/usb0)?

those issues aside, it works very nicely, thanks...  i can finally
play mp3 files. (mind you, i've only got two so far!)

i guess the next step is a little audio plumbing client that knows how
to stop one stream and start another when a new plumbing request comes
in; then the world is my jukebox.



             reply	other threads:[~2003-02-21 18:02 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2003-02-21 18:02 rog [this message]
2003-02-21 18:02 ` Russ Cox
2003-02-21 18:33 ` Fco.J.Ballesteros
2003-02-21 18:43 ` Scott Schwartz
2003-02-21 18:55 rog
2004-08-07 14:01 [9fans] USB audio Sape Mullender
2004-11-06  3:25 Jack Johnson

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=a9d149fc65c213559c703d64275367b6@vitanuova.com \
    --to=rog@vitanuova.com \
    --cc=9fans@cse.psu.edu \
    /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).