From: Patrick Shirkey Subject: Re: M-Audio Qattro USB Date: Tue, 18 Jan 2005 11:47:57 +0100 Message-ID: <1106045277.41ece95d0c3b3@www3.webhosting.cx> References: Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Return-path: Received: from www3.webhosting.cx (www3.webhosting.cx [207.44.248.26]) by alsa.alsa-project.org (ALSA's E-mail Delivery System) with ESMTP id 8989B25C for ; Tue, 18 Jan 2005 11:48:09 +0100 (MET) In-Reply-To: Sender: alsa-devel-admin@lists.sourceforge.net Errors-To: alsa-devel-admin@lists.sourceforge.net List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , List-Archive: To: Clemens Ladisch Cc: Michael Hoffer , alsa-devel@alsa-project.org List-Id: alsa-devel@alsa-project.org That's interesting. I have been unable to get inputs to work with jackd using a recent cvs. I= 'll update now. Regards. Quoting Clemens Ladisch : > Patrick Shirkey wrote: > > > Quoting Michael Hoffer : > > > > > bash-2.05b$ arecord -D quattro -f S24_3LE -r 96000 -c 2 -d 10 test.= raw > > > Recording WAVE 'test.raw' : Signed 24 bit Little Endian in 3bytes, = Rate > 96000 > > > Hz, Stereo > > > arecord: set_params:854: Sample format non available > > What sample formats appear in /proc/asound/cardX/stream0, 1? > > > It's possible the alsa drivers you are using had a broken implementat= ion. > > I just committed a patch against 1.0.8 which should improve the > behaviour in some cases (I don't know if it is related to this > problem). > > > Clemens > > -- > Index: alsa-kernel/usb/usbaudio.h > =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D > RCS file: /cvsroot/alsa/alsa-kernel/usb/usbaudio.h,v > retrieving revision 1.35 > retrieving revision 1.36 > diff -u -r1.35 -r1.36 > --- alsa-kernel/usb/usbaudio.h 30 Sep 2004 10:11:25 -0000 1.35 > +++ alsa-kernel/usb/usbaudio.h 17 Jan 2005 17:41:38 -0000 1.36 > @@ -157,6 +157,7 @@ > #define QUIRK_MIDI_STANDARD_INTERFACE 6 > #define QUIRK_AUDIO_EDIROL_UA700_UA25 7 > #define QUIRK_AUDIO_EDIROL_UA1000 8 > +#define QUIRK_IGNORE_INTERFACE 9 > > typedef struct snd_usb_audio_quirk snd_usb_audio_quirk_t; > typedef struct snd_usb_midi_endpoint_info snd_usb_midi_endpoint_info_t= ; > @@ -190,6 +191,8 @@ > > /* for QUIRK_AUDIO_EDIROL_UA700_UA25/UA1000, data is NULL */ > > +/* for QUIRK_IGNORE_INTERFACE, data is null */ > + > /* > */ > > Index: alsa-kernel/usb/usbaudio.c > =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D > RCS file: /cvsroot/alsa/alsa-kernel/usb/usbaudio.c,v > retrieving revision 1.113 > retrieving revision 1.114 > diff -u -r1.113 -r1.114 > --- alsa-kernel/usb/usbaudio.c 16 Dec 2004 16:12:51 -0000 1.113 > +++ alsa-kernel/usb/usbaudio.c 17 Jan 2005 17:41:34 -0000 1.114 > @@ -2977,6 +2977,8 @@ > return create_ua700_ua25_quirk(chip, iface); > case QUIRK_AUDIO_EDIROL_UA1000: > return create_ua1000_quirk(chip, iface); > + case QUIRK_IGNORE_INTERFACE: > + return 0; > default: > snd_printd(KERN_ERR "invalid quirk type %d\n", quirk->type); > return -ENXIO; > Index: alsa-kernel/usb/usbquirks.h > =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D > RCS file: /cvsroot/alsa/alsa-kernel/usb/usbquirks.h,v > retrieving revision 1.38 > retrieving revision 1.39 > diff -u -r1.38 -r1.39 > --- alsa-kernel/usb/usbquirks.h 30 Sep 2004 10:11:25 -0000 1.38 > +++ alsa-kernel/usb/usbquirks.h 17 Jan 2005 17:41:38 -0000 1.39 > @@ -876,6 +876,22 @@ > * but captured samples are big-endian (see usbaudio.c). > */ > { > + .ifnum =3D 0, > + .type =3D QUIRK_IGNORE_INTERFACE > + }, > + { > + .ifnum =3D 1, > + .type =3D QUIRK_IGNORE_INTERFACE > + }, > + { > + .ifnum =3D 2, > + .type =3D QUIRK_IGNORE_INTERFACE > + }, > + { > + .ifnum =3D 3, > + .type =3D QUIRK_IGNORE_INTERFACE > + }, > + { > .ifnum =3D 4, > .type =3D QUIRK_AUDIO_STANDARD_INTERFACE > }, > @@ -884,6 +900,10 @@ > .type =3D QUIRK_AUDIO_STANDARD_INTERFACE > }, > { > + .ifnum =3D 6, > + .type =3D QUIRK_IGNORE_INTERFACE > + }, > + { > .ifnum =3D 7, > .type =3D QUIRK_AUDIO_STANDARD_INTERFACE > }, > @@ -936,11 +956,56 @@ > .driver_info =3D (unsigned long) & (const snd_usb_audio_quirk_t) { > .vendor_name =3D "M-Audio", > .product_name =3D "OmniStudio", > - .ifnum =3D 9, > - .type =3D QUIRK_MIDI_MIDIMAN, > - .data =3D & (const snd_usb_midi_endpoint_info_t) { > - .out_cables =3D 0x0001, > - .in_cables =3D 0x0001 > + .ifnum =3D QUIRK_ANY_INTERFACE, > + .type =3D QUIRK_COMPOSITE, > + .data =3D & (const snd_usb_audio_quirk_t[]) { > + { > + .ifnum =3D 0, > + .type =3D QUIRK_IGNORE_INTERFACE > + }, > + { > + .ifnum =3D 1, > + .type =3D QUIRK_IGNORE_INTERFACE > + }, > + { > + .ifnum =3D 2, > + .type =3D QUIRK_IGNORE_INTERFACE > + }, > + { > + .ifnum =3D 3, > + .type =3D QUIRK_IGNORE_INTERFACE > + }, > + { > + .ifnum =3D 4, > + .type =3D QUIRK_AUDIO_STANDARD_INTERFACE > + }, > + { > + .ifnum =3D 5, > + .type =3D QUIRK_AUDIO_STANDARD_INTERFACE > + }, > + { > + .ifnum =3D 6, > + .type =3D QUIRK_IGNORE_INTERFACE > + }, > + { > + .ifnum =3D 7, > + .type =3D QUIRK_AUDIO_STANDARD_INTERFACE > + }, > + { > + .ifnum =3D 8, > + .type =3D QUIRK_AUDIO_STANDARD_INTERFACE > + }, > + { > + .ifnum =3D 9, > + .type =3D QUIRK_MIDI_MIDIMAN, > + .data =3D & (const snd_usb_midi_endpoint_info_t) { > + .out_cables =3D 0x0001, > + .in_cables =3D 0x0001 > + } > + }, > + { > + .ifnum =3D -1 > + } > } > } > }, > > -- Patrick Shirkey - Boost Hardware Ltd. Http://www.boosthardware.com Http://www.djcj.org/ - The Linux Audio Users guide Http://www.djcj.org/gigs - Gigs Guide Korea =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D Being on stage with the band in front of crowds shouting, "Get off! No! We want normal music!", I think that was more like acting than anything I've ever done. Goldie, 8 Nov, 2002 The Scotsman ------------------------------------------------------- The SF.Net email is sponsored by: Beat the post-holiday blues Get a FREE limited edition SourceForge.net t-shirt from ThinkGeek. It's fun and FREE -- well, almost....http://www.thinkgeek.com/sfshirt