"Unknown field slaves" with virtual multi-channel device

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

 



Hi there,

I'm trying to set up a virtual multi-channel device as per this documentation:

http://www.alsa-project.org/main/index.php/Asoundrc#Virtual_multi_channel_devices

I've adapted the example for my hardware and put it in
/etc/asound.conf (included inline below).

When I try to test the configuration with aplay, this happens:

$ arecord -f S16_LE -r 44100 -c 12 -D multi | aplay -f S16_LE -r 44100
-c 12 -D multi
ALSA lib pcm_hw.c:1466:(_snd_pcm_hw_open) Unknown field slaves
arecord: main:682: audio open error: Invalid argument
ALSA lib pcm_hw.c:1466:(_snd_pcm_hw_open) Unknown field slaves
aplay: main:682: audio open error: Invalid argument

I am surprised by the error message, because the example at
alsa-project.org made use of the slaves keyword.

Any guidance would be appreciated. Yes, I know to expect drift between
the physical devices when I get it working. :-)

Thanks,
Sheldon.

# /etc/asound.conf
pcm.multi {
  type multi;
  slaves.a.pcm "hw:0,0";
  slaves.a.channels 6;
  slaves.b.pcm "hw:1,0";
  slaves.b.channels 6;
  bindings.0.slave a;
  bindings.0.channel 0;
  bindings.1.slave a;
  bindings.1.channel 1;
  bindings.2.slave a;
  bindings.2.channel 2;
  bindings.3.slave a;
  bindings.3.channel 3;
  bindings.4.slave a;
  bindings.4.channel 4;
  bindings.5.slave a;
  bindings.5.channel 5;
  bindings.6.slave b;
  bindings.6.channel 0;
  bindings.7.slave b;
  bindings.7.channel 1;
  bindings.8.slave b;
  bindings.8.channel 2;
  bindings.9.slave b;
  bindings.9.channel 3;
  bindings.10.slave b;
  bindings.10.channel 4;
  bindings.11.slave b;
  bindings.11.channel 5;
}

pcm.multi {
  type hw;
  card 0;
}

pcm.ttable {
  type route;
  slave.pcm "multi";
  slave.channels 12;
  ttable.0.0 1;
  ttable.1.1 1;
  ttable.2.2 2;
  ttable.3.3 3;
  ttable.4.4 4;
  ttable.5.5 5;
  ttable.6.6 6;
  ttable.7.7 7;
  ttable.8.8 8;
  ttable.9.9 9;
  ttable.10.10 10;
  ttable.11.11 11;
}

ctl.ttable {
  type hw;
  card 0;
}

------------------------------------------------------------------------------
Free Next-Gen Firewall Hardware Offer
Buy your Sophos next-gen firewall before the end March 2013 
and get the hardware for free! Learn more.
http://p.sf.net/sfu/sophos-d2d-feb
_______________________________________________
Alsa-user mailing list
Alsa-user@xxxxxxxxxxxxxxxxxxxxx
https://lists.sourceforge.net/lists/listinfo/alsa-user


[Index of Archives]     [ALSA Devel]     [Linux Audio Users]     [Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [Yosemite Photos]     [KDE Users]     [Fedora Tools]

  Powered by Linux