Re: Cannot set -C and -P devices using qjackctl

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



At Tue, 10 Jul 2012 16:17:47 -0400,
Paul Davis wrote:
> you should be selecting the device for JACK to use from the "interface" selector at the upper
> right of the setup dialog's options panel.

OK, understand, but I also need to specify a merged ALSA device for playback in order to get 4 channels of output on the USB device.

Not trying to be difficult, but ultimately I will need -Chw:1 -Pft4, where ft4 is defined in my .asoundrc. Not sure how to do it properly, if -C and -P are not the right way.

Maybe merge the input channels into the ft4 device? I hesitate because it was rather painful sifting through .asoundrc examples online, and I don't recall seeing one that brought input and output together into one device -- usually they're output only.

I've attached my .asoundrc for reference. Thanks!

hjh


--
James Harkins /// dewdrop world
jamshark70@xxxxxxxxxxxxxxxxx
http://www.dewdrop-world.net

"Come said the Muse,
Sing me a song no poet has yet chanted,
Sing me the universal."  -- Whitman

blog: http://www.dewdrop-world.net/words
audio clips: http://www.dewdrop-world.net/audio
more audio: http://soundcloud.com/dewdrop_world/tracks

# https://wiki.archlinux.org/index.php/PulseAudio/Examples#PulseAudio_through_JACK_the_new_new_way
# Not sure if I need this

pcm.pulse {
    type pulse
}

ctl.pulse {
    type pulse
}

pcm.!default {
    type pulse
}
ctl.!default {
    type pulse
}




# http://wiki.linuxquestions.org/wiki/M-Audio_Quattro#Configuring_Alsa_with_.2Froot.2F.asoundrc

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

   	pcm.ftpro1 {
             	type hw
                card 1
		device 0
     	}
 
      	ctl.ftpro1 {
             	type hw
             	card 1 
     	}
	
# ftpro2 is pcm1

     	pcm.ftpro2 {
             	type hw
                card 1
		device 1
     	}
 
      	ctl.ftpro2 {
             	type hw
             	card 1 
     	}


#----	

#
# 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.ftpro {
        type multi;

        slaves.a.pcm "hw:1,0";
        slaves.a.channels 2;
        slaves.b.pcm "hw:1,1";
        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.ftpro {
        type hw;
        card 1;
}


#
# 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.ft4 {
        type route;
        slave.pcm "ftpro";
        ttable.0.0 1;
        ttable.1.1 1;
        ttable.2.2 1;
        ttable.3.3 1;
}



ctl.ft4 {
        type hw;
        card 1;
}

_______________________________________________
Linux-audio-user mailing list
Linux-audio-user@xxxxxxxxxxxxxxxxxxxx
http://lists.linuxaudio.org/listinfo/linux-audio-user

[Index of Archives]     [Linux Sound]     [ALSA Users]     [Pulse Audio]     [ALSA Devel]     [Sox Users]     [Linux Media]     [Kernel]     [Photo Sharing]     [Gimp]     [Yosemite News]     [Linux Media]

  Powered by Linux