Had to compile tmux and cava from source and made a .tcz package for
each, the contents of which may need to change.  This is what I have in
my .dep files for each thus far:

cava:
fftw.tcz
mylocale.tcz

tmux:
libevent.tcz
ncurses.tcs
mylocale.tcz

So far everything has been in the piCore 9.x repo (except tmux and
cava).

Changes I've made so far:
cmdline.txt - added lang=en_US.UTF-8
config.txt - added hdmi_force_hotplug=1 and hdmi_drive=2 so audio/video
would still work if Pi boots up without the stereo on (doesn't see the
hdmi otherwise)
modprobe snd_aloop (needed to create the loopback device for cava)
/usr/local/sbin/config.cfg - changed OUTPUT="default" (not sure if this
is necessary yet, still experimenting but this is working)
changed /etc/asound.conf - see below, this sends the squeezelite output
to the HDMI interface and to the loopback simultaneously, cava uses the
loopback
created /home/tc/config - cava config, start with cava -p
/home/tc/config

For the cava config file, the only thing I've changed from the example
config is to uncomment the ALSA loopback lines:

Code:
--------------------
    method = alsa
  source = hw:Loopback,1
--------------------


Here's the working /etc/asound.conf - will be edited further since I
took out some stuff pCP had in there by default.

Code:
--------------------
    
  pcm.multi {
  type route;
  slave.pcm {
  type multi;
  slaves.a.pcm "output";
  slaves.b.pcm "loopin";
  slaves.a.channels 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;
  }
  
  ttable.0.0 1;
  ttable.1.1 1;
  ttable.0.2 1;
  ttable.1.3 1;
  }
  
  pcm.!default {
  type plug
  slave.pcm "multi"
  }
  
  pcm.output {
  type hw
  card ALSA
  }
  
  pcm.loopin {
  type plug
  slave.pcm "plughw:Loopback,0,0"
  }
  
  pcm.loopout {
  type plug
  slave.pcm "plughw:Loopback,1,0"
  }
  
--------------------


------------------------------------------------------------------------
sodface's Profile: http://forums.slimdevices.com/member.php?userid=19057
View this thread: http://forums.slimdevices.com/showthread.php?t=109694

_______________________________________________
unix mailing list
[email protected]
http://lists.slimdevices.com/mailman/listinfo/unix

Reply via email to