[alsa-devel] M-Audio Audiophile USB, native little endian (S16_LE) ?
Hi all !
I don't know if this is already known (?), but the M-Audio Audiophile USB seem to be possible to run in native S16_LE mode if initialized with device_setup=0x01 (possibly with 0x11 also, have not tested that).
This is at least the case with my rather new box (bought a couple of weeks ago).
Patch for usb/usbaudio.c (alsa-driver-1.0.14):
static int is_big_endian_format(struct snd_usb_audio *chip, struct audioformat *fp) { switch (chip->usb_id) { case USB_ID(0x0763, 0x2001): /* M-Audio Quattro: captured data only */ if (fp->endpoint & USB_DIR_IN) return 1; break; case USB_ID(0x0763, 0x2003): /* M-Audio Audiophile USB */ + // Is small endian if setup with 0x01 ! + if (device_setup[chip->index] != 0x01) return 1; break; } return 0; }
/Håkan
-----Message d'origine----- De : alsa-devel-bounces@alsa-project.org [mailto:alsa-devel-bounces@alsa-project.org] De la part de Hakan Lennestal Envoyé : dimanche 8 juillet 2007 15:36 À : alsa-devel@alsa-project.org Cc : tiwai@suse.de Objet : [alsa-devel] M-Audio Audiophile USB, native little endian (S16_LE) ?
Hi all !
I don't know if this is already known (?), but the M-Audio Audiophile USB seem to be possible to run in native S16_LE mode if initialized with device_setup=0x01 (possibly with 0x11 also, have not tested that).
No I wasn't aware of this ! How did you figure this out ?
When you say 'it is possible' to run it in S16_LE do you mean it both recognizes S16_BE and S16_LE or only S16_LE ?
Mine works with S16_BE but I must admit I haven't tested with S16_LE.
Regards, Thibault
At Mon, 9 Jul 2007 10:12:38 +0200, Thibault Le Meur wrote:
-----Message d'origine----- De : alsa-devel-bounces@alsa-project.org [mailto:alsa-devel-bounces@alsa-project.org] De la part de Hakan Lennestal Envoyé : dimanche 8 juillet 2007 15:36 À : alsa-devel@alsa-project.org Cc : tiwai@suse.de Objet : [alsa-devel] M-Audio Audiophile USB, native little endian (S16_LE) ?
Hi all !
I don't know if this is already known (?), but the M-Audio Audiophile USB seem to be possible to run in native S16_LE mode if initialized with device_setup=0x01 (possibly with 0x11 also, have not tested that).
No I wasn't aware of this ! How did you figure this out ?
When you say 'it is possible' to run it in S16_LE do you mean it both recognizes S16_BE and S16_LE or only S16_LE ?
Mine works with S16_BE but I must admit I haven't tested with S16_LE.
S16_LE support would be great if it really works stably. Could you both confirm whether the patch works fine? If it's OK, I'm willing to put it into the next upstream kernel (2.6.23).
Takashi
participants (3)
-
Hakan Lennestal
-
Takashi Iwai
-
Thibault Le Meur