Hi Tim

Yes, I found it all rather confusing when I first started looking at it,
but it's not too bad.

So, the default asound.conf looks like


Code:
--------------------
    
  # default - Generated by piCorePlayer
  pcm.!default {
  type plug
  slave.pcm "hw:0,0"
  }
  
  pcm.pcpinput {
  type hw
  card Headphones
  device 0
  }
  
  
  
  #---ALSA EQ Below--------
  pcm.sound_device {
  type plug
  slave.pcm {
  type hw
  card Headphones
  device 0
  }
  }
  
  ctl.equal {
  type equal;
  controls "/home/tc/.alsaequal.bin"
  library "/usr/local/lib/ladspa/caps.so"
  }
  
  pcm.plugequal {
  type equal;
  slave.pcm "sound_device";
  controls "/home/tc/.alsaequal.bin"
  library "/usr/local/lib/ladspa/caps.so"
  }
  
  pcm.equal {
  type plug;
  slave.pcm plugequal;
  }
  
--------------------


The first bit


Code:
--------------------
    pcm.!default {
  type plug
  slave.pcm "hw:0,0"
  }
  
--------------------


creates a default device for alsa to use if no device is specified.  The
UI in the Extras\asound modifies this device.  BTW, that's why is says
that the entry for output on the squeezelite page must be blank - so
that default is used.

However, I think it's easier if you're going to edit asound anyway, to
create a new device specifically for mono.  So, take the default
asound.conf (use the above maybe if you've messed around with it to
start from scratch), edit it and add


Code:
--------------------
    
  pcm.HifiBerryDevice {
  type plug
  slave.pcm {
  type hw
  card sndrpihifiberry;
  device 0
  }
  }
  
  pcm.HifiBerryMono {
  type plug;
  slave.pcm HifiBerryDevice;
        ttable {
  0.0 0.5           # L(0) to L(0) at 0.5 volume
  1.0 0.5           # R(1) to L(0) at 0.5 volume
  
  0.1 0.5           # L(0) to R(1) at 0.5 Volume 
  1.1 0.5           # R(1) to R(1) at 0.5 Volume
        }
  }
  
--------------------


The devices in asound.conf build on top of each other.  So, this creates
a device called HifiBerryDevice, which refers to the underlying hardware
you have (I have the same one).  Then, on top of that, it creates a
device called HifiBerryMono, which creates the mapping table.

Add that to asound.conf, save it, then go to the main page and do a
Backup (to keep the changes) and Restart to restart Squeezelite.  Then,
if you look at the Squeezelite Settings page, and click on more next to
output settings, you'll see a new device called HifiBerryMono available
to choose.  Select that, save it, and you should be good to go.

If you just want volume from the right speaker, you could change the
mapping table to


Code:
--------------------
    
  0.0 0           # L(0) to L(0) at 0 volume
  1.0 0           # R(1) to L(0) at 0 volume
  
  0.1 0.5           # L(0) to R(1) at 0.5 Volume 
  1.1 0.5           # R(1) to R(1) at 0.5 Volume
  
--------------------


but maybe start with dual mono to check it's working.

I'm no huge expert in this - just my findings from fiddling around.

pete S


------------------------------------------------------------------------
psketch's Profile: http://forums.slimdevices.com/member.php?userid=56555
View this thread: http://forums.slimdevices.com/showthread.php?t=113162

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

Reply via email to