Home of the Squeezebox™ & Transporter® network music players.
Page 2 of 3 FirstFirst 123 LastLast
Results 11 to 20 of 22
  1. #11
    Senior Member
    Join Date
    Jan 2011
    Location
    Staffordshire. UK
    Posts
    3,569
    I think a P1 would struggle a bit (although it is possible to increase the USB power).

    A rpi 3b with a good power supply might be better. (Then you have your two pi ).

  2. #12
    Senior Member
    Join Date
    Apr 2013
    Location
    UK
    Posts
    1,314
    Well I had assumed the DACs were self powered, but that's true if they are bus powered you will need a powered hub.


    Transcoded from Matt's brain by Tapatalk
    --
    Hardware: 3x Touch, 1x Radio, 2x Receivers, 1 HP Microserver NAS with Debian+LMS 7.9.0
    Music: ~1300 CDs, as 450 GB of 16/44k FLACs. No less than 3x 24/44k albums..

  3. #13
    Senior Member
    Join Date
    Jan 2011
    Location
    Staffordshire. UK
    Posts
    3,569
    I have just tried this with two usb dacs on a rpi 3b with pCP-standard and the latest LMS.

    One dac is a bus powered Stoner UD120 and the other an iFI Nano (with its own battery).

    Although I could see all the output options on the Squeezelite settings page, I only managed to get one dac to register as a player.

    I swapped the Stoner for a HiFiBerry digi plus pro and both players are registered.

    I can't actually test the HiFiBerry at the moment but the optical output is glowing red

    Edit: as an aside, I seem to have lost the Spotty from "My Apps".

    Every lining has a dark cloud

    Edit: Spotty back after pulling the plug and restarting the following morning
    Last edited by Man in a van; 2017-10-02 at 00:52.

  4. #14
    Thanks everyone for their help.
    I've decided to buy another Pi to drive the 2nd DAC. For the cost involved it seems the easiest option, especially as I'm no Linux or pCP expert.
    At the same time, I'll take the opportunity to see what 3.2x has to offer.
    Cheers
    Paul

  5. #15
    Senior Member
    Join Date
    Aug 2012
    Location
    Austria
    Posts
    1,064
    Using ALSA to send the same audio to multiple devices isn't that complicated, it just involves editing one file - see this post.
    Various SW: Web Interface | Playlist Editor / Generator | Music Classification | Similar Music | Announce | EventTrigger | LMSlib2go | ...
    Various HowTos: build a self-contained LMS | Bluetooth/ALSA | Control LMS with any device | ...

  6. #16
    Senior Member
    Join Date
    Jan 2011
    Location
    Staffordshire. UK
    Posts
    3,569
    Cheers Roland0

    I'll maybe try this later today with both usb dacs connected.

  7. #17
    Senior Member
    Join Date
    Jan 2011
    Location
    Staffordshire. UK
    Posts
    3,569
    Quote Originally Posted by Man in a van View Post
    Cheers Roland0

    I'll maybe try this later today with both usb dacs connected.

    Well this is the list of devices

    **** List of PLAYBACK Hardware Devices ****
    card 0: ALSA [bcm2835 ALSA], device 0: bcm2835 ALSA [bcm2835 ALSA]
    Subdevices: 8/8
    Subdevice #0: subdevice #0
    Subdevice #1: subdevice #1
    Subdevice #2: subdevice #2
    Subdevice #3: subdevice #3
    Subdevice #4: subdevice #4
    Subdevice #5: subdevice #5
    Subdevice #6: subdevice #6
    Subdevice #7: subdevice #7
    card 0: ALSA [bcm2835 ALSA], device 1: bcm2835 ALSA [bcm2835 IEC958/HDMI]
    Subdevices: 1/1
    Subdevice #0: subdevice #0
    card 1: DA [DA], device 0: USB Audio [USB Audio]
    Subdevices: 0/1
    Subdevice #0: subdevice #0
    card 1: DA [DA], device 1: USB Audio [USB Audio #1]
    Subdevices: 1/1
    Subdevice #0: subdevice #0
    card 2: Audio [iFi (by AMR) HD USB Audio], device 0: USB Audio [USB Audio]
    Subdevices: 1/1
    Subdevice #0: subdevice #0
    and this is the file example referred to by Roland0

    Code:
    pcm.!default {
            type plug
            slave {
                    pcm "both"
            }
    }
    pcm.both {
            type route
            slave {
                    pcm multi
                    channels 4
            }
    
            ttable.0.0 1.0
            ttable.1.1 1.0
            ttable.0.2 1.0
            ttable.1.3 1.0
    }
    pcm.multi {
            type multi
            slaves.a {
                    pcm "analog"
                    channels 2
            }
            slaves.b {
                    pcm "hdmi"
                    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
    }
    pcm.hdmi {
            type hw
            card 0
            device 0
            channels 2
    }
    pcm.analog {
            type hw
            card 0
            device 3
            channels 2
    }

    As both cards use "USB Audio" for their name, will I be able to use them?

  8. #18
    Senior Member paul-'s Avatar
    Join Date
    Jan 2013
    Posts
    3,353
    Should still work because they have different card numbers. In the example case the same card provided two output.

    The labels pcm.hdmi and pcm.analog in the example are completely arbitrary. card and device are what defines the selection

    In your case, this should define your two devices.

    pcm.usb1 {
    type hw
    card 1
    device 0
    channels 2
    }

    pcm.usb2 {
    type hw
    card 2
    device 0
    channels 2
    }
    Last edited by paul-; 2017-10-02 at 10:23.

  9. #19
    Senior Member
    Join Date
    Jan 2011
    Location
    Staffordshire. UK
    Posts
    3,569
    Well thanks a lot Paul and Roland, I actually got it to work

    First off I made a fresh v3.22 image on the rpi3b and connected both dacs.

    I substituted the wording as directed by Paul.

    I used Winscp to change the file, at first it refused me permission to rename the asound.conf to asoundold.conf, so I just replaced the text and pressed save.

    Again I had a permissions refusal with, I think, code 3. Anyway i just ignored that as the text seem to be saved, I did press "Backup" in the web gui as directed by Greg.

    Alas, when I started Radio Paradise, not a peep from either dac (Using one set of headphones between the two).

    Well it was nearly tea time and we all know a "Bear of little brain" needs food, so I had a think and checked the Squeezelite page.

    Good move on my part, as I had forgotten to change the output from Analogue to USB, save and reboot and Radio Paradise plays.

    Don't know if I'll ever use it properly, but a good exercise

    Ronnie

  10. #20
    Hi

    I'm trying to do this in order to compare three UBS dacs. However I can't get it to work, can you help me?

    The system is a Picoreplayer Linux on a RPi3.

    Code:
    tc@piCorePlayer:~$ aplay -l
    **** List of PLAYBACK Hardware Devices ****
    card 0: Amanero [Combo384 Amanero], device 0: USB Audio [USB Audio]
      Subdevices: 0/1
      Subdevice #0: subdevice #0
    card 1: DG8SAQI2C [DG8SAQ-I2C], device 0: USB Audio [USB Audio]
      Subdevices: 1/1
      Subdevice #0: subdevice #0
    card 2: CODEC [USB Audio CODEC], device 0: USB Audio [USB Audio]
      Subdevices: 1/1
      Subdevice #0: subdevice #0
    The card called "Codec" is a ibasso D10

    Code:
    squeezelite -l
    Output devices:
      null                           - Discard all samples (playback) or generate zero samples (capture)
      sysdefault:CARD=Amanero        - Combo384 Amanero, USB Audio - Default Audio Device
      front:CARD=Amanero,DEV=0       - Combo384 Amanero, USB Audio - Front speakers
      surround21:CARD=Amanero,DEV=0  - Combo384 Amanero, USB Audio - 2.1 Surround output to Front and Subwoofer speakers
      surround40:CARD=Amanero,DEV=0  - Combo384 Amanero, USB Audio - 4.0 Surround output to Front and Rear speakers
      surround41:CARD=Amanero,DEV=0  - Combo384 Amanero, USB Audio - 4.1 Surround output to Front, Rear and Subwoofer speakers
      surround50:CARD=Amanero,DEV=0  - Combo384 Amanero, USB Audio - 5.0 Surround output to Front, Center and Rear speakers
      surround51:CARD=Amanero,DEV=0  - Combo384 Amanero, USB Audio - 5.1 Surround output to Front, Center, Rear and Subwoofer speakers
      surround71:CARD=Amanero,DEV=0  - Combo384 Amanero, USB Audio - 7.1 Surround output to Front, Center, Side, Rear and Woofer speakers
      iec958:CARD=Amanero,DEV=0      - Combo384 Amanero, USB Audio - IEC958 (S/PDIF) Digital Audio Output
      sysdefault:CARD=DG8SAQI2C      - DG8SAQ-I2C, USB Audio - Default Audio Device
      front:CARD=DG8SAQI2C,DEV=0     - DG8SAQ-I2C, USB Audio - Front speakers
      surround21:CARD=DG8SAQI2C,DEV=0 - DG8SAQ-I2C, USB Audio - 2.1 Surround output to Front and Subwoofer speakers
      surround40:CARD=DG8SAQI2C,DEV=0 - DG8SAQ-I2C, USB Audio - 4.0 Surround output to Front and Rear speakers
      surround41:CARD=DG8SAQI2C,DEV=0 - DG8SAQ-I2C, USB Audio - 4.1 Surround output to Front, Rear and Subwoofer speakers
      surround50:CARD=DG8SAQI2C,DEV=0 - DG8SAQ-I2C, USB Audio - 5.0 Surround output to Front, Center and Rear speakers
      surround51:CARD=DG8SAQI2C,DEV=0 - DG8SAQ-I2C, USB Audio - 5.1 Surround output to Front, Center, Rear and Subwoofer speakers
      surround71:CARD=DG8SAQI2C,DEV=0 - DG8SAQ-I2C, USB Audio - 7.1 Surround output to Front, Center, Side, Rear and Woofer speakers
      iec958:CARD=DG8SAQI2C,DEV=0    - DG8SAQ-I2C, USB Audio - IEC958 (S/PDIF) Digital Audio Output
      sysdefault:CARD=CODEC          - USB Audio CODEC, USB Audio - Default Audio Device
      front:CARD=CODEC,DEV=0         - USB Audio CODEC, USB Audio - Front speakers
      surround21:CARD=CODEC,DEV=0    - USB Audio CODEC, USB Audio - 2.1 Surround output to Front and Subwoofer speakers
      surround40:CARD=CODEC,DEV=0    - USB Audio CODEC, USB Audio - 4.0 Surround output to Front and Rear speakers
      surround41:CARD=CODEC,DEV=0    - USB Audio CODEC, USB Audio - 4.1 Surround output to Front, Rear and Subwoofer speakers
      surround50:CARD=CODEC,DEV=0    - USB Audio CODEC, USB Audio - 5.0 Surround output to Front, Center and Rear speakers
      surround51:CARD=CODEC,DEV=0    - USB Audio CODEC, USB Audio - 5.1 Surround output to Front, Center, Rear and Subwoofer speakers
      surround71:CARD=CODEC,DEV=0    - USB Audio CODEC, USB Audio - 7.1 Surround output to Front, Center, Side, Rear and Woofer speakers
      iec958:CARD=CODEC,DEV=0        - USB Audio CODEC, USB Audio - IEC958 (S/PDIF) Digital Audio Output
    asound.conf
    Code:
    # default - Generated by piCorePlayer
    #pcm.!default {
    #        type plug
    #        slave.pcm "hw:0,0"
    #}
    
    
    pcm.!default {
    type plug
    slave {pcm "three"}
    }
    
    pcm.three {
    type route
    slave {
    pcm "multi"
    channels 6
    }
    ttable.0.0 1.0
    ttable.1.1 1.0
    ttable.0.2 1.0
    ttable.1.3 1.0
    ttable.0.4 1.0
    ttable.1.5 1.0
    }
    
    pcm.multi {
    type multi
    slaves.a {
    pcm "usb0"
    channels 2
    }
    slaves.b {
    pcm "usb1"
    channels 2
    }
    slaves.c {
    pcm "usb2"
    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
    bindings.4.slave c
    bindings.4.channel 0
    bindings.5.slave c
    bindings.5.channel 1
    }
    
    
    pcm.usb0 {
    type hw
    card 0
    device 0
    channels 2
    }
    
    pcm.usb1 {
    type hw
    card 1
    device 0
    channels 2
    }
    
    pcm.usb2 {
    type hw
    card 2
    device 0
    channels 2
    }
    The above alsa.conf does not work. Squeezelite does not start with "default" in the Picoreplayer web gui output settings field, or when I leave this field empty.

    Entering one of the dacs in the output field does work.
    Code:
    sysdefault:CARD=Amanero
    sysdefault:CARD=DG8SAQI2C
    sysdefault:CARD=CODEC
    However, I'd like to let them all paly simultaneously. Any help how to get sound simultaneously from all three dacs would be most welcome.
    Last edited by ElEsido; 2018-05-18 at 23:51. Reason: correction in alsa.conf

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •