Re: [linux-audio-user] Last attemp at USB m-audio quattro.

From: <timg@email-addr-hidden>
Date: Sat Jan 22 2005 - 16:05:55 EET

OK here we go ...;)Prom going to annoy several of you with this ;)

-- OK guys and gals,
Working on my USB quattro issue...

My .asoundrc file looks like this...(thanks to the alsa page)

++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
# quattro1 is pcm0 which has a maximum sample rate of 44100 and 16 bit stereo

           pcm.quattro1 {
                     type hw
                card 0
                device 0
             }

              ctl.quattro1 {
                     type hw
                     card 0
             }

# quattro2 is pcm1 which has a maximum sample rate of 96000 and 24 bit stereo

             pcm.quattro2 {
                     type hw
                card 0
                device 1
             }

              ctl.quattro2 {
                     type hw
                     card 0
             }

# quattro2 is pcm2 which has a maximum sample rate of 96000 and 24 bit stereo

             pcm.quattro3 {
                     type hw
                card 0
                device 2
             }

              ctl.quattro3 {
                     type hw
                     card 0
             }

#----

#
# compose 4 channels from two channel x two devices, hw:2,1 and hw:2,2
# assuming that hw:2,1 and hw:2,2 give the same condition, 24_3LE/96k
#

pcm.quattro {
        type multi;

        slaves.a.pcm "hw:0,1";
        slaves.a.channels 2;
        slaves.b.pcm "hw:0,2";
        slaves.b.channels 2;

        bindings.0.slave a;
        bindings.0.channel 0;
        bindings.1.slave a;
        bindings.1.channel 1;
        bindings.2.slave b;
        bindings.2.channel 0;
        bindings.3.slave b;
        bindings.3.channel 1;
}

ctl.quattro {
        type hw;
        card 0;
}

#
# remap 4 channels as interleaved.
# use plug instead of route here, since 24_3LE is unlikely supported by
# applications.
#
# arecord -r 44100 -c 4 -f s16_le -D q4 -d 5 /home/xxx/q4.wav

pcm.q4 {
        type plug;
        slave.pcm "quattro";
        ttable.0.0 1;
        ttable.1.1 1;
        ttable.2.2 1;
        ttable.3.3 1;
}

ctl.q4 {
        type hw;
        card 0;
}

#
# Use route plugin for applications that do support 24_3LE
# This lowers latency which the plug plugin introduces due to resampling.
#
# arecord -r 44100 -c 4 -f s16_le -D q41 -d 5 /home/xxx/q41.wav

pcm.q41 {
        type route;
        slave.pcm "quattro";
        ttable.0.0 1;
        ttable.1.1 1;
        ttable.2.2 1;
        ttable.3.3 1;

}

ctl.q41 {
        type hw;
        card 0;
}

#----
+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
When I do cat /proc/asound/cards I get this.. (any way to kill that modem
from showing up in alsa mixers)

+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
0 [Modem ]: ICH-MODEM - Intel 82801CA-ICH3 Modem
                     Intel 82801CA-ICH3 Modem at 0x2400, irq 10
1 [I82801CAICH3 ]: ICH - Intel 82801CA-ICH3
                     Intel 82801CA-ICH3 at 0x1c00, irq 10
2 [Quattro ]: USB-Audio - USB Audio Quattro
                     M Audio USB Audio Quattro at usb-00:1d.0-1, full speed
+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

My bigest dillema are ...

1> How exactly do I modify my .asoind rc file to hit the right hw devoce?
2> how do I start jackd?
3> How do start jackd in the other various modes?

By the way my lsmod looks like this.. ( I blacklisted usbaudio and others
in /etc/hotplug/blacklist)

++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Module Size Used by Not tainted
snd-pcm-oss 38984 0 (unused)
snd-mixer-oss 13656 0 [snd-pcm-oss]
snd-usb-audio 42784 0 (unused)
snd-usb-lib 8292 0 [snd-usb-audio]
uhci 27228 0 (unused)
usbcore 64204 1 [snd-usb-audio snd-usb-lib uhci]
hw_random 2872 0 (unused)
i810_rng 2784 0 (unused)
snd-intel8x0 20748 0 (unused)
gameport 1500 0 [snd-intel8x0]
snd-mpu401-uart 3808 0 [snd-intel8x0]
snd-rawmidi 13764 0 [snd-usb-lib snd-mpu401-uart]
snd-seq-device 4016 0 [snd-rawmidi]
snd-intel8x0m 9768 0 (unused)
snd-pcm 63688 0 [snd-pcm-oss snd-usb-audio snd-intel8x0
snd-intel8x0m]
snd-timer 15236 0 [snd-pcm]
snd-ac97-codec 56272 0 [snd-intel8x0 snd-intel8x0m]
snd 34244 0 [snd-pcm-oss snd-mixer-oss snd-usb-audio
snd-usb-lib snd-intel8x0 snd-mpu401-uart snd-rawmidi snd-seq-device
snd-intel8x0m snd-pcm snd-timer snd-ac97-codec]
snd-page-alloc 5036 0 [snd-mixer-oss snd-usb-audio
snd-intel8x0 snd-rawmidi snd-seq-device snd-intel8x0m snd-pcm snd-timer
snd]
soundcore 3876 13 [snd]
ds 7028 1
yenta_socket 10852 1
pcmcia_core 42116 0 [ds yenta_socket]
ide-scsi 9968 0
agpgart 46692 0 (unused)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Thank you all for so much help
ROCK ON LINUX!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
TIMG

Timothy A Gorman
IT Dept.
Petr-all Petroleum
Received on Sat Jan 22 20:15:09 2005

This archive was generated by hypermail 2.1.8 : Sat Jan 22 2005 - 20:15:10 EET