Announcement

Collapse
No announcement yet.

Squeezelite problem with Odroid XU4s

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    Squeezelite problem with Odroid XU4s

    Hello,

    I am running Dietpi on a Odroid XU4s emmc.

    I have squeezelite installed and working, but i cannot play files >96 Khz, although my usb dac (ifi Zen v2) supports pcm up to 384Khz and DSD 256.

    I have no experience of setting up my usb dac via command line, so any help is welcome.



    Br.
    Zak.

    #2
    Here are the soundcards.

    Code:
    [email protected]:~# squeezelite -l
    Output devices:
      null                           - Discard all samples (playback) or generate zero samples (capture)
      hw:CARD=OdroidXU4,DEV=0        - Odroid-XU4, Primary multicodec-0 - Direct hardware device without any conversions
      plughw:CARD=OdroidXU4,DEV=0    - Odroid-XU4, Primary multicodec-0 - Hardware device with all software conversions
      sysdefault:CARD=OdroidXU4      - Odroid-XU4, Primary multicodec-0 - Default Audio Device
      dmix:CARD=OdroidXU4,DEV=0      - Odroid-XU4, Primary multicodec-0 - Direct sample mixing device
      hw:CARD=Audio,DEV=0            - iFi (by AMR) USB Audio, USB Audio - Direct hardware device without any conversions
      plughw:CARD=Audio,DEV=0        - iFi (by AMR) USB Audio, USB Audio - Hardware device with all software conversions
      sysdefault:CARD=Audio          - iFi (by AMR) USB Audio, USB Audio - Default Audio Device
      front:CARD=Audio,DEV=0         - iFi (by AMR) USB Audio, USB Audio - Front output / input
      surround21:CARD=Audio,DEV=0    - iFi (by AMR) USB Audio, USB Audio - 2.1 Surround output to Front and Subwoofer speakers
      surround40:CARD=Audio,DEV=0    - iFi (by AMR) USB Audio, USB Audio - 4.0 Surround output to Front and Rear speakers
      surround41:CARD=Audio,DEV=0    - iFi (by AMR) USB Audio, USB Audio - 4.1 Surround output to Front, Rear and Subwoofer speakers
      surround50:CARD=Audio,DEV=0    - iFi (by AMR) USB Audio, USB Audio - 5.0 Surround output to Front, Center and Rear speakers
      surround51:CARD=Audio,DEV=0    - iFi (by AMR) USB Audio, USB Audio - 5.1 Surround output to Front, Center, Rear and Subwoofer speakers
      surround71:CARD=Audio,DEV=0    - iFi (by AMR) USB Audio, USB Audio - 7.1 Surround output to Front, Center, Side, Rear and Woofer speakers
      iec958:CARD=Audio,DEV=0        - iFi (by AMR) USB Audio, USB Audio - IEC958 (S/PDIF) Digital Audio Output
      dmix:CARD=Audio,DEV=0          - iFi (by AMR) USB Audio, USB Audio - Direct sample mixing device

    Comment


      #3
      Using the command "sudo nano /etc/default/squeezelite" i get the following result.



      Code:
      SL_SOUNDCARD="hw:CARD=Audio,DEV=0" -r 44100-384000  -b 2080:3528  -n
      
      SL_ALSA_PARAMS="80"
      obviously my coding is not correct.

      Comment


        #4
        Originally posted by zakman35 View Post
        Using the command "sudo nano /etc/default/squeezelite" i get the following result.



        Code:
        SL_SOUNDCARD="hw:CARD=Audio,DEV=0" -r 44100-384000  -b 2080:3528  -n
        
        SL_ALSA_PARAMS="80"
        obviously my coding is not correct.
        Try


        Code:
        SL_SOUNDCARD="hw:CARD=Audio,DEV=0"
        
        SL_ALSA_PARAMS="-r 44100-384000  -b 2080:3528 "
        Maybe first try with the PARAMS left blank, I don't know what you intended with "80" (I can only guess _)

        After save and exit, run

        Code:
        sudo /etc/init.d/ squeezelite restart
        Which version of Squeezelite are you using ?

        ronnie
        Last edited by Man in a van; 2022-06-06, 12:47.

        Comment


          #5
          Squeezelite v1.9.9-1386, Copyright 2012-2015 Adrian Smith, 2015-2021 Ralph Irvin

          Comment


            #6
            Unfortunately suggested commands are not producing any difference.

            I asume the installation path of squeezelite configuration must be different in dietpi.


            Find below installation details, in case that helps.

            Code:
            DietPi-Software
            ─────────────────────────────────────────────────────
             Step: Installing ALSA: Advanced Linux Sound Architecture
            
            [ SUB1 ] DietPi-Set_hardware > soundcard (hw:1,0)
            [ INFO ] DietPi-Set_hardware | Checking for required APT packages: alsa-utils
            [ INFO ] DietPi-Set_hardware | Resetting all sound card settings...
            [  OK  ] DietPi-Set_hardware | rm /etc/asound.conf
            [  OK  ] DietPi-Set_hardware | rm /var/lib/alsa/asound.state
            alsa-lib parser.c:2179:(load_toplevel_config) Unable to find the top-level configuration file '/usr/share/alsa/ucm2/ucm.conf'.
            alsa-lib main.c:1014:(snd_use_case_mgr_open) error: failed to import hw:0 use case configuration -2
            Found hardware: "Odroid-XU4" "" "" "" ""
            Hardware is initialized using a generic method
            alsa-lib parser.c:2179:(load_toplevel_config) Unable to find the top-level configuration file '/usr/share/alsa/ucm2/ucm.conf'.
            alsa-lib main.c:1014:(snd_use_case_mgr_open) error: failed to import hw:1 use case configuration -2
            Found hardware: "USB-Audio" "USB Mixer" "USB20b1:0010" "" ""
            Hardware is initialized using a generic method
            [ INFO ] DietPi-Set_hardware | Applying new sound card settings...
            [  OK  ] DietPi-Set_hardware | Desired setting in /boot/dietpi.txt was already set: CONFIG_SOUNDCARD=hw:1,0
            [  OK  ] DietPi-Set_hardware | alsactl -g store
            [  OK  ] soundcard hw:1,0 | Completed
            
             DietPi-Software
            ─────────────────────────────────────────────────────
             Step: Installing Squeezelite: audio player for lms & squeezebox
            
            [  OK  ] DietPi-Software | cd /tmp/DietPi-Software
            [  OK  ] DietPi-Software | curl -sSfL https://dietpi.com/downloads/binaries/bullseye/squeezelite_armv7l.deb -o squeezelite_armv7l.deb
            [ INFO ] DietPi-Software | APT install for: ./squeezelite_armv7l.deb, please wait...
            Reading package lists...
            Building dependency tree...
            Reading state information...
            
            Creating Squeezelite service user ...
            Configuring Squeezelite systemd service ...
            Created symlink /etc/systemd/system/multi-user.target.wants/squeezelite.service → /lib/systemd/system/squeezelite.service.
            Processing triggers for libc-bin (2.31-13+deb11u3) ...
            [  OK  ] DietPi-Software | APT install for: ./squeezelite_armv7l.deb
            [  OK  ] DietPi-Software | rm squeezelite_armv7l.deb
            [  OK  ] DietPi-Software | systemctl stop squeezelite
            
             DietPi-Software
            ─────────────────────────────────────────────────────
             Step: Finalising install
            
            [  OK  ] DietPi-Software | systemctl daemon-reload
            2022-06-06 13:23:59 [ INFO ] DietPi-RAMlog | Storing /var/log to /var/tmp/dietpi/logs/dietpi-ramlog_store...
            2022-06-06 13:23:59 [  OK  ] DietPi-RAMlog | Stored /var/log to /var/tmp/dietpi/logs/dietpi-ramlog_store.
            [ SUB1 ] DietPi-Services > dietpi_controlled
            [  OK  ] DietPi-Services | dietpi_controlled : avahi-daemon
            [  OK  ] DietPi-Services | dietpi_controlled : squeezelite
            [  OK  ] DietPi-Services | dietpi_controlled : cron

            Comment


              #7
              Have a read of this thread



              Maybe you can glean some info from it.

              I have no real time experience of Diet-pi, I always found it complicated

              If the config file is held in /etc/default/squeezelite then it seems to follow the raspberry pi os; which one I don't know

              ronnie

              Comment


                #8
                I have an old iFi Nano DSD,

                running alsacap in a terminal on piCorePlayer shows

                Code:
                Card 1, ID `Audio', name `iFi (by AMR) HD USB Audio'
                  Device 0, ID `USB Audio', name `USB Audio', 1 subdevices (1 available)
                    2 channels, sampling rate 44100..384000 Hz
                    Sample formats: S32_LE, SPECIAL, [COLOR=#ff0000]DSD_U32_BE[/COLOR]
                    Buffer size range from 16 to 131072
                    Period size range from 8 to 65536
                      Subdevice 0, name `subdevice #0'
                So, as a guess, try putting just

                -D 0:u32be

                in the ALSA_PARAMS

                ronnie

                Edit: try rebooting after restarting squeezelite

                Comment

                Working...
                X