From: Takashi Iwai <tiwai@suse.de>
To: Patrick Shirkey <pshirkey@boosthardware.com>
Cc: alsa-devel@lists.sourceforge.net
Subject: Re: Experimental USB audio support
Date: Mon, 03 Jun 2002 17:35:58 +0200 [thread overview]
Message-ID: <s5hhekkfk81.wl@alsa2.suse.de> (raw)
In-Reply-To: <3CFB0439.8E0367E7@boosthardware.com>
[-- Attachment #1: Type: text/plain, Size: 1519 bytes --]
At Mon, 03 Jun 2002 14:52:57 +0900,
Patrick Shirkey wrote:
>
> Takashi Iwai wrote:
> >
> > At Fri, 31 May 2002 20:55:01 +0900,
> > Patrick Shirkey wrote:
> > >
> > > Takashi Iwai wrote:
> > > >
> > > > now a new version is cvs. it dumps the descriptor at
> > > > /proc/asound/cardX/descriptor. if the cvs servers is not sync'ed,
> > > > please let me know. i'll send you a patch.
> > > >
> > >
> > > With this patch there is *alot * more info in lsusb. Excellent work.
> >
> > as you already know, it's not me but the update of usb modules :)
> >
> > anyway, could you check again whether the driver works?
> > just taking a look at the lsusb output, the device has no mixer units.
> > there are only input/output terminals.
> > so, don't be bothered even if you see no mixer controls.
> >
> > Takashi
>
> So far I cannot get sound out using
>
> cat /bin/bash > dev/dsp2
> aplay -D hw:2,0 -f cd some.wav
>
> both return with device does not exist or similar
please apply the attached patch and build the modules with
--with-debug=detect option. if a pcm is to be created, then it shouls
something. or it will show an error message and the reason.
sorry, i have no time today - will take a deeper look at tomorrow.
btw, creation of pcm devices is independent from mixer devices.
so, i'm wondering why, too...
the descriptor info is necessary to build and look up pcms and
controls for alsa. basically the usb descriptor includes _all_
necessary information to get the driver work.
ciao,
Takashi
[-- Attachment #2: usb-msg-fix.dif --]
[-- Type: application/octet-stream, Size: 2239 bytes --]
Index: alsa-driver/usb/usbaudio.c
===================================================================
RCS file: /suse/tiwai/cvs/alsa/alsa-driver/usb/usbaudio.c,v
retrieving revision 1.5
diff -u -r1.5 usbaudio.c
--- alsa-driver/usb/usbaudio.c 31 May 2002 17:00:48 -0000 1.5
+++ alsa-driver/usb/usbaudio.c 3 Jun 2002 15:31:58 -0000
@@ -1256,6 +1256,9 @@
subs->formats |= SNDRV_PCM_FMTBIT_MU_LAW;
pcm_format = SNDRV_PCM_FORMAT_MU_LAW;
break;
+ default:
+ snd_printk(KERN_INFO "%d:%u:%d : unsupported format type %d\n", format);
+ break;
}
if (pcm_format < 0)
@@ -1513,20 +1516,20 @@
for (i = 0; i < p1[7]; i++) {
j = p1[8 + i];
if (j >= config->bNumInterfaces) {
- snd_printk(KERN_DEBUG "%d:%u:%d : does not exist\n",
+ snd_printk(KERN_ERR "%d:%u:%d : does not exist\n",
dev->devnum, ctrlif, j);
continue;
}
iface = &config->interface[j];
if (iface->altsetting[0].bInterfaceClass != USB_CLASS_AUDIO ||
iface->altsetting[0].bInterfaceSubClass != 2) {
- snd_printk(KERN_DEBUG "non-supported interface %d\n", iface->altsetting[0].bInterfaceClass);
+ snd_printdd(KERN_ERR "%d:%u:%d: skipping non-supported interface %d\n", dev->devnum, ctrlif, j, iface->altsetting[0].bInterfaceClass);
/* skip non-supported classes */
continue;
}
if (iface->num_altsetting < 2) {
- snd_printk(KERN_DEBUG "%d:%u:%d : no valid interface.\n",
- dev->devnum, ctrlif, j);
+ snd_printdd(KERN_ERR "%d:%u:%d: skipping - no valid interface.\n",
+ dev->devnum, ctrlif, j);
continue;
}
if (iface->altsetting[0].bNumEndpoints > 0) {
@@ -1549,11 +1552,13 @@
ep to be ep1, which seems to be the case */
if (iface->altsetting[1].endpoint[0].bEndpointAddress & USB_DIR_IN) {
if (numifin < USB_MAXINTERFACES) {
+ snd_printdd(KERN_INFO "adding an input interface %d:%u:%j\n", dev->devnum, ctrlif, j);
ifin[numifin++] = j;
usb_driver_claim_interface(&usb_audio_driver, iface, (void *)-1);
}
} else {
if (numifout < USB_MAXINTERFACES) {
+ snd_printdd(KERN_INFO "adding an output interface %d:%u:%j\n", dev->devnum, ctrlif, j);
ifout[numifout++] = j;
usb_driver_claim_interface(&usb_audio_driver, iface, (void *)-1);
}
next prev parent reply other threads:[~2002-06-03 15:35 UTC|newest]
Thread overview: 25+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <s5hy9e2hk02.wl@alsa2.suse.de>
2002-05-30 4:12 ` Experimental USB audio support Patrick Shirkey
2002-05-30 4:16 ` Patrick Shirkey
2002-05-31 8:45 ` Takashi Iwai
2002-05-30 5:15 ` Patrick Shirkey
2002-05-31 8:03 ` Takashi Iwai
2002-05-31 9:23 ` Patrick Shirkey
2002-05-31 9:38 ` Takashi Iwai
2002-05-31 10:51 ` Takashi Iwai
2002-05-31 11:09 ` Patrick Shirkey
2002-05-31 11:55 ` Patrick Shirkey
2002-05-31 13:38 ` Takashi Iwai
2002-06-03 5:52 ` Patrick Shirkey
2002-06-03 15:35 ` Takashi Iwai [this message]
2002-05-31 12:02 ` Patrick Shirkey
2002-05-31 12:07 ` Patrick Shirkey
2002-05-31 9:31 ` Patrick Shirkey
2002-05-31 9:41 ` Takashi Iwai
2002-05-31 10:48 ` Takashi Iwai
2002-05-31 11:14 ` Patrick Shirkey
2002-05-31 13:44 ` Takashi Iwai
2002-05-30 5:49 ` Patrick Shirkey
2002-05-30 8:17 ` tpeltone
[not found] ` <001401c20747$642f5050$57c05c90@Witter>
2002-05-31 8:47 ` [Alsa-user] " Takashi Iwai
[not found] ` <1022849629.589.2.camel@coldpack>
2002-05-31 17:33 ` Takashi Iwai
2002-05-29 18:44 Takashi Iwai
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=s5hhekkfk81.wl@alsa2.suse.de \
--to=tiwai@suse.de \
--cc=alsa-devel@lists.sourceforge.net \
--cc=pshirkey@boosthardware.com \
/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.