Owh, btw, this is how I did it... :-)

Execute this command:

Code:
--------------------
    
  sudo /mnt/mmcblk0p2/tce/squeezelite-armv6hf -l
  
--------------------


Ouput example:


Code:
--------------------
    
  tc@box:~$ sudo /mnt/mmcblk0p2/tce/squeezelite-armv6hf -l
  Output devices:
  null                           - Discard all samples (playback) or generate 
zero samples (capture)
  default:CARD=Set               - C-Media USB Headphone Set, USB Audio - 
Default Audio Device
  sysdefault:CARD=Set            - C-Media USB Headphone Set, USB Audio - 
Default Audio Device
  front:CARD=Set,DEV=0           - C-Media USB Headphone Set, USB Audio - Front 
speakers
  surround40:CARD=Set,DEV=0      - C-Media USB Headphone Set, USB Audio - 4.0 
Surround output to Front and Rear speakers
  surround41:CARD=Set,DEV=0      - C-Media USB Headphone Set, USB Audio - 4.1 
Surround output to Front, Rear and Subwoofer speakers
  surround50:CARD=Set,DEV=0      - C-Media USB Headphone Set, USB Audio - 5.0 
Surround output to Front, Center and Rear speakers
  surround51:CARD=Set,DEV=0      - C-Media USB Headphone Set, USB Audio - 5.1 
Surround output to Front, Center, Rear and Subwoofer speakers
  surround71:CARD=Set,DEV=0      - C-Media USB Headphone Set, USB Audio - 7.1 
Surround output to Front, Center, Side, Rear and Woofer speakers
  iec958:CARD=Set,DEV=0          - C-Media USB Headphone Set, USB Audio - 
IEC958 (S/PDIF) Digital Audio Output
  default:CARD=ALSA              - bcm2835 ALSA, bcm2835 ALSA - Default Audio 
Device
  sysdefault:CARD=ALSA           - bcm2835 ALSA, bcm2835 ALSA - Default Audio 
Device
  
  tc@box:~$
  
--------------------


Choose the right version of the device, in my case
"front:CARD=Set,DEV=0".

Then add this to the startup command in bootlocal.sh, so open the file:

Code:
--------------------
    
  sudo vi /opt/bootlocal.sh
  
--------------------


And change the squeezelite command line to look like this:

Code:
--------------------
    
  sudo /mnt/mmcblk0p2/tce/squeezelite-armv6hf -o front:CARD=Set,DEV=0 -n 
Strawberry_Portable -m 00:11:95:00:54:12 -a 80:4
  
--------------------

I used the -o option to tell squeezelite which device to use.
I also gave this squeezelite player a name here ("Strawberry_Portable")
and assigned a mac address to this squeezeltie player
("00:11:95:00:54:12"). But that is not needed for using the usb dac.

After this save the file (escape :wq).

Don't forget to backup all this by executing this command ( if forgot
this the first time... ) :

Code:
--------------------
    
  filetool.sh -b
  
--------------------


And after a reboot (sudo reboot), squeezelite started and played through
my USB dac.


------------------------------------------------------------------------
Gerrelt's Profile: http://forums.slimdevices.com/member.php?userid=58186
View this thread: http://forums.slimdevices.com/showthread.php?t=97803

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

Reply via email to