All of lore.kernel.org
 help / color / mirror / Atom feed
* M-Audio Qattro USB
@ 2005-01-17 21:44 Michael Hoffer
  2005-01-18  6:16 ` Patrick Shirkey
  0 siblings, 1 reply; 4+ messages in thread
From: Michael Hoffer @ 2005-01-17 21:44 UTC (permalink / raw)
  To: alsa-devel

HI!

I read the Install-Howto for snd-usb-audio on www.alsa-project.org. I use
Gentoo-Linux (kernel 2.6.9). I have the feeling that the .asoundrc file had
no effect on my system. 

When I tried to record with a samplerate of 96000 Hz
audacity could not open the sounddevice. With 48000 Hz it worked 
fine in audacity. 

With arecord I get the following error message. It doesn't make a difference 
if I use other sample rates or sample formates.
arecord gives the following output:

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

Thanks for your help!


-------------------------------------------------------
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

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: M-Audio Qattro USB
  2005-01-17 21:44 M-Audio Qattro USB Michael Hoffer
@ 2005-01-18  6:16 ` Patrick Shirkey
  2005-01-18  9:16   ` Clemens Ladisch
  0 siblings, 1 reply; 4+ messages in thread
From: Patrick Shirkey @ 2005-01-18  6:16 UTC (permalink / raw)
  To: Michael Hoffer; +Cc: alsa-devel

Hi,

It's possible the alsa drivers you are using had a broken implementation.

what is the ouput of:

cat /proc/asound/version



Quoting Michael Hoffer <info@michaelhoffer.de>:

> HI!
>
> I read the Install-Howto for snd-usb-audio on www.alsa-project.org. I use
> Gentoo-Linux (kernel 2.6.9). I have the feeling that the .asoundrc file had
> no effect on my system.
>
> When I tried to record with a samplerate of 96000 Hz
> audacity could not open the sounddevice. With 48000 Hz it worked
> fine in audacity.
>
> With arecord I get the following error message. It doesn't make a difference
> if I use other sample rates or sample formates.
> arecord gives the following output:
>
> 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
>
> Thanks for your help!
>
>
> -------------------------------------------------------
> 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
> _______________________________________________
> Alsa-devel mailing list
> Alsa-devel@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/alsa-devel
>


 --
 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
 ========================================

 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

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: M-Audio Qattro USB
  2005-01-18  6:16 ` Patrick Shirkey
@ 2005-01-18  9:16   ` Clemens Ladisch
  2005-01-18 10:47     ` Patrick Shirkey
  0 siblings, 1 reply; 4+ messages in thread
From: Clemens Ladisch @ 2005-01-18  9:16 UTC (permalink / raw)
  To: Patrick Shirkey; +Cc: Michael Hoffer, alsa-devel

Patrick Shirkey wrote:

> Quoting Michael Hoffer <info@michaelhoffer.de>:
>
> > 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 implementation.

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
===================================================================
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
===================================================================
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
===================================================================
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 = 0,
+				.type = QUIRK_IGNORE_INTERFACE
+			},
+			{
+				.ifnum = 1,
+				.type = QUIRK_IGNORE_INTERFACE
+			},
+			{
+				.ifnum = 2,
+				.type = QUIRK_IGNORE_INTERFACE
+			},
+			{
+				.ifnum = 3,
+				.type = QUIRK_IGNORE_INTERFACE
+			},
+			{
 				.ifnum = 4,
 				.type = QUIRK_AUDIO_STANDARD_INTERFACE
 			},
@@ -884,6 +900,10 @@
 				.type = QUIRK_AUDIO_STANDARD_INTERFACE
 			},
 			{
+				.ifnum = 6,
+				.type = QUIRK_IGNORE_INTERFACE
+			},
+			{
 				.ifnum = 7,
 				.type = QUIRK_AUDIO_STANDARD_INTERFACE
 			},
@@ -936,11 +956,56 @@
 	.driver_info = (unsigned long) & (const snd_usb_audio_quirk_t) {
 		.vendor_name = "M-Audio",
 		.product_name = "OmniStudio",
-		.ifnum = 9,
-		.type = QUIRK_MIDI_MIDIMAN,
-		.data = & (const snd_usb_midi_endpoint_info_t) {
-			.out_cables = 0x0001,
-			.in_cables  = 0x0001
+		.ifnum = QUIRK_ANY_INTERFACE,
+		.type = QUIRK_COMPOSITE,
+		.data = & (const snd_usb_audio_quirk_t[]) {
+			{
+				.ifnum = 0,
+				.type = QUIRK_IGNORE_INTERFACE
+			},
+			{
+				.ifnum = 1,
+				.type = QUIRK_IGNORE_INTERFACE
+			},
+			{
+				.ifnum = 2,
+				.type = QUIRK_IGNORE_INTERFACE
+			},
+			{
+				.ifnum = 3,
+				.type = QUIRK_IGNORE_INTERFACE
+			},
+			{
+				.ifnum = 4,
+				.type = QUIRK_AUDIO_STANDARD_INTERFACE
+			},
+			{
+				.ifnum = 5,
+				.type = QUIRK_AUDIO_STANDARD_INTERFACE
+			},
+			{
+				.ifnum = 6,
+				.type = QUIRK_IGNORE_INTERFACE
+			},
+			{
+				.ifnum = 7,
+				.type = QUIRK_AUDIO_STANDARD_INTERFACE
+			},
+			{
+				.ifnum = 8,
+				.type = QUIRK_AUDIO_STANDARD_INTERFACE
+			},
+			{
+				.ifnum = 9,
+				.type = QUIRK_MIDI_MIDIMAN,
+				.data = & (const snd_usb_midi_endpoint_info_t) {
+					.out_cables = 0x0001,
+					.in_cables  = 0x0001
+				}
+			},
+			{
+				.ifnum = -1
+			}
 		}
 	}
 },



-------------------------------------------------------
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

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: M-Audio Qattro USB
  2005-01-18  9:16   ` Clemens Ladisch
@ 2005-01-18 10:47     ` Patrick Shirkey
  0 siblings, 0 replies; 4+ messages in thread
From: Patrick Shirkey @ 2005-01-18 10:47 UTC (permalink / raw)
  To: Clemens Ladisch; +Cc: Michael Hoffer, alsa-devel

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 <clemens@ladisch.de>:

> Patrick Shirkey wrote:
>
> > Quoting Michael Hoffer <info@michaelhoffer.de>:
> >
> > > 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 implementation.
>
> 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
> ===================================================================
> 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
> ===================================================================
> 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
> ===================================================================
> 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 = 0,
> +				.type = QUIRK_IGNORE_INTERFACE
> +			},
> +			{
> +				.ifnum = 1,
> +				.type = QUIRK_IGNORE_INTERFACE
> +			},
> +			{
> +				.ifnum = 2,
> +				.type = QUIRK_IGNORE_INTERFACE
> +			},
> +			{
> +				.ifnum = 3,
> +				.type = QUIRK_IGNORE_INTERFACE
> +			},
> +			{
>  				.ifnum = 4,
>  				.type = QUIRK_AUDIO_STANDARD_INTERFACE
>  			},
> @@ -884,6 +900,10 @@
>  				.type = QUIRK_AUDIO_STANDARD_INTERFACE
>  			},
>  			{
> +				.ifnum = 6,
> +				.type = QUIRK_IGNORE_INTERFACE
> +			},
> +			{
>  				.ifnum = 7,
>  				.type = QUIRK_AUDIO_STANDARD_INTERFACE
>  			},
> @@ -936,11 +956,56 @@
>  	.driver_info = (unsigned long) & (const snd_usb_audio_quirk_t) {
>  		.vendor_name = "M-Audio",
>  		.product_name = "OmniStudio",
> -		.ifnum = 9,
> -		.type = QUIRK_MIDI_MIDIMAN,
> -		.data = & (const snd_usb_midi_endpoint_info_t) {
> -			.out_cables = 0x0001,
> -			.in_cables  = 0x0001
> +		.ifnum = QUIRK_ANY_INTERFACE,
> +		.type = QUIRK_COMPOSITE,
> +		.data = & (const snd_usb_audio_quirk_t[]) {
> +			{
> +				.ifnum = 0,
> +				.type = QUIRK_IGNORE_INTERFACE
> +			},
> +			{
> +				.ifnum = 1,
> +				.type = QUIRK_IGNORE_INTERFACE
> +			},
> +			{
> +				.ifnum = 2,
> +				.type = QUIRK_IGNORE_INTERFACE
> +			},
> +			{
> +				.ifnum = 3,
> +				.type = QUIRK_IGNORE_INTERFACE
> +			},
> +			{
> +				.ifnum = 4,
> +				.type = QUIRK_AUDIO_STANDARD_INTERFACE
> +			},
> +			{
> +				.ifnum = 5,
> +				.type = QUIRK_AUDIO_STANDARD_INTERFACE
> +			},
> +			{
> +				.ifnum = 6,
> +				.type = QUIRK_IGNORE_INTERFACE
> +			},
> +			{
> +				.ifnum = 7,
> +				.type = QUIRK_AUDIO_STANDARD_INTERFACE
> +			},
> +			{
> +				.ifnum = 8,
> +				.type = QUIRK_AUDIO_STANDARD_INTERFACE
> +			},
> +			{
> +				.ifnum = 9,
> +				.type = QUIRK_MIDI_MIDIMAN,
> +				.data = & (const snd_usb_midi_endpoint_info_t) {
> +					.out_cables = 0x0001,
> +					.in_cables  = 0x0001
> +				}
> +			},
> +			{
> +				.ifnum = -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
 ========================================

 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

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2005-01-18 10:48 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-01-17 21:44 M-Audio Qattro USB Michael Hoffer
2005-01-18  6:16 ` Patrick Shirkey
2005-01-18  9:16   ` Clemens Ladisch
2005-01-18 10:47     ` Patrick Shirkey

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.