Home of the Squeezebox™ & Transporter® network music players.
Page 1 of 2 12 LastLast
Results 1 to 10 of 30

Hybrid View

  1. #1
    Junior Member
    Join Date
    Mar 2015
    Posts
    19

    Squeezelite no output to DAC

    Hi,

    (sorry, I wrote this thread in German first)

    I have installed LMS 8.3.0, Alsa and Squeezelite 1.9.9 on an x86 Ubuntu 22.04 PC. The LMS works an I can stream music to my Android tablet (Squeeze Player). However, connecting Squeezelite to my Teac UD-501 DAC does not work poperly. The DAC, connected via USB, is found as output device, and squeezelite is also found as player in LMS. But when I start music playback, the DAC does not react in any way and nothing can be heard.

    I start squeezelite with the command "squeezelite -o front:CARD=UD501,DEV=0 -a 240:::1 -b 80000:320000 -p 90 -d all=debug", which I found somewhere in the web. Maybe these settings are not correct?

    I had the same hardware running without problems for years, but after installing Ubuntu 22.04 this issue happens. Below you can see the squeezelite log. The last row is suspicious: "alsa_open:533 unable to set hw params: No such device or address". Maybe Alsa is not setup correctly?

    Any ideas what is wrong and what I have to do?
    Thank you!

    Code:
    [09:13:08.205397] stream_init:454 init stream
    [09:13:08.205447] stream_init:455 streambuf size: 81920000
    [09:13:08.243317] output_init_alsa:936 init output
    [09:13:08.243356] output_init_alsa:975 requested alsa_buffer: 240 alsa_period: 4 format: any mmap: 1
    [09:13:08.243370] output_init_common:360 outputbuf size: 327680000
    [09:13:08.243405] output_init_common:384 idle timeout: 0
    [09:13:08.246566] test_open:301 sample rate 1536000 not supported
    [09:13:08.246578] test_open:301 sample rate 1411200 not supported
    [09:13:08.246585] test_open:301 sample rate 768000 not supported
    [09:13:08.246592] test_open:301 sample rate 705600 not supported
    [09:13:08.246621] test_open:301 sample rate 32000 not supported
    [09:13:08.246627] test_open:301 sample rate 24000 not supported
    [09:13:08.246632] test_open:301 sample rate 22500 not supported
    [09:13:08.246637] test_open:301 sample rate 16000 not supported
    [09:13:08.246642] test_open:301 sample rate 12000 not supported
    [09:13:08.246649] test_open:301 sample rate 11025 not supported
    [09:13:08.246656] test_open:301 sample rate 8000 not supported
    [09:13:08.246678] output_init_common:426 supported rates: 384000 352800 192000 176400 96000 88200 48000 44100 
    [09:13:08.362280] output_init_alsa:1002 memory locked
    [09:13:08.362321] output_init_alsa:1008 glibc detected using mallopt
    [09:13:08.364569] output_init_alsa:1028 set output sched fifo rt: 90
    [09:13:08.364586] decode_init:153 init decode
    [09:13:08.364622] register_dsd:908 using dsd to decode dsf,dff
    [09:13:08.364630] register_ff:779 using ffmpeg to decode alc
    [09:13:08.364636] register_ff:763 using ffmpeg to decode wma,wmap
    [09:13:08.364642] register_faad:663 using faad to decode aac
    [09:13:08.364648] register_vorbis:385 using vorbis to decode ogg
    [09:13:08.364653] register_flac:336 using flac to decode ogf,flc
    [09:13:08.364657] output_thread:685 open output device: front:CARD=UD501,DEV=0
    [09:13:08.366463] alsa_open:354 opening device at: 44100
    [09:13:08.364663] register_pcm:483 using pcm to decode aif,pcm
    [09:13:08.366640] register_mad:423 using mad to decode mp3
    [09:13:08.366654] decode_init:194 include codecs:  exclude codecs: 
    [09:13:08.366763] discover_server:795 sending discovery
    [09:13:08.366767] alsa_open:425 opened device front:CARD=UD501,DEV=0 using format: S32_LE sample rate: 44100 mmap: 1
    [09:13:08.366806] alsa_open:516 buffer: 240 period: 4 -> buffer size: 10584 period size: 2646
    [09:13:08.367019] discover_server:806 got response from: 192.168.1.100:3483
    [09:13:08.630300] ALSA snd_pcm_hw_hw_params:386 SNDRV_PCM_IOCTL_HW_PARAMS failed (-6)
    [09:13:08.630350] alsa_open:533 unable to set hw params: No such device or address
    [09:13:08.630512] slimproto:898 connecting to 192.168.1.100:3483
    [09:13:08.630649] slimproto:937 connected
    [09:13:08.630678] slimproto:948 local player
    [09:13:08.630694] sendHELO:148 mac: 90:e6:ba:8c:1d:17
    [09:13:08.630710] sendHELO:150 cap: CanHTTPS=1,Model=squeezelite,AccuratePlayPoints=1,HasDigitalOut=1,HasPolarityInversion=1,Balance=1,Firmware=v1.9.9-1395,ModelName=SqueezeLite,MaxSampleRate=384000,dsf,dff,alc,wma,wmap,aac,ogg,ogf,flc,aif,pcm,mp3,loc
    [09:13:08.631442] process:528 strm
    [09:13:08.631459] process_strm:280 strm command q
    [09:13:08.631473] decode_flush:236 decode flush
    [09:13:08.631483] output_flush:439 flush output buffer
    [09:13:08.631491] sendSTAT:195 STAT: STMf
    [09:13:08.631522] process:528 strm
    [09:13:08.631533] process_strm:280 strm command q
    [09:13:08.631540] decode_flush:236 decode flush
    [09:13:08.631547] output_flush:439 flush output buffer
    [09:13:08.631554] sendSTAT:195 STAT: STMf
    [09:13:08.631587] process:528 setd
    [09:13:08.631648] process:528 setd
    [09:13:08.631761] process:528 aude
    [09:13:08.631779] process_aude:422 enable spdif: 1 dac: 1
    [09:13:08.631873] process:528 audg
    [09:13:08.631888] process_audg:440 audg gainL: 1634 gainR: 1634 adjust: 0
    [09:13:08.631900] set_volume:233 setting internal gain left: 65536 right: 65536
    [09:13:09.000691] process:528 strm
    [09:13:09.000728] process_strm:280 strm command t
    [09:13:09.000747] sendSTAT:195 STAT: STMt
    [09:13:13.004316] process:528 strm
    [09:13:13.004353] process_strm:280 strm command t
    [09:13:13.004373] sendSTAT:195 STAT: STMt
    [09:13:13.630535] output_thread:685 open output device: front:CARD=UD501,DEV=0
    [09:13:13.630603] alsa_open:354 opening device at: 44100
    [09:13:13.630902] alsa_open:425 opened device front:CARD=UD501,DEV=0 using format: S32_LE sample rate: 44100 mmap: 1
    [09:13:13.630929] alsa_open:516 buffer: 240 period: 4 -> buffer size: 10584 period size: 2646
    [09:13:13.894304] ALSA snd_pcm_hw_hw_params:386 SNDRV_PCM_IOCTL_HW_PARAMS failed (-6)
    [09:13:13.894352] alsa_open:533 unable to set hw params: No such device or address
    Last edited by King_Crimson; 2022-06-03 at 11:30.

  2. #2
    Junior Member
    Join Date
    Aug 2020
    Posts
    17
    It seems like alsa does not find the given hardware address. What's the output of aplay -l?
    Last edited by Michael83; 2022-05-27 at 05:58.
    8.3.0 Nightly on RPi4
    Control: Web-GUI/MaterialSkin

    Living Room: RPi4, HifiBerry DAC2 Pro, wavemaster TWO NEO
    Kitchen: RPi4, HifiBerry DAC2 Pro, wavemaster CUBE MINI NEO
    Bedroom: RPi4, HifiBerry DAC2 Pro, wavemaster CUBE MINI NEO

  3. #3
    Junior Member
    Join Date
    Mar 2015
    Posts
    19
    Thanks for your reply!
    The DAC is found as card 1.

    Code:
    aplay -l
    **** List of PLAYBACK Hardware Devices ****
    card 0: NVidia [HDA NVidia], device 3: HDMI 0 [HDMI 0]
      Subdevices: 1/1
      Subdevice #0: subdevice #0
    card 0: NVidia [HDA NVidia], device 7: HDMI 0 [HDMI 0]
      Subdevices: 1/1
      Subdevice #0: subdevice #0
    card 0: NVidia [HDA NVidia], device 8: HDMI 0 [HDMI 0]
      Subdevices: 1/1
      Subdevice #0: subdevice #0
    card 0: NVidia [HDA NVidia], device 9: HDMI 0 [HDMI 0]
      Subdevices: 1/1
      Subdevice #0: subdevice #0
    card 1: UD501 [TEAC UD-501], device 0: USB Audio [USB Audio]
      Subdevices: 1/1
      Subdevice #0: subdevice #0
    Code:
    aplay -L
    null
        Discard all samples (playback) or generate zero samples (capture)
    hw:CARD=NVidia,DEV=3
        HDA NVidia, HDMI 0
        Direct hardware device without any conversions
    hw:CARD=NVidia,DEV=7
        HDA NVidia, HDMI 0
        Direct hardware device without any conversions
    hw:CARD=NVidia,DEV=8
        HDA NVidia, HDMI 0
        Direct hardware device without any conversions
    hw:CARD=NVidia,DEV=9
        HDA NVidia, HDMI 0
        Direct hardware device without any conversions
    plughw:CARD=NVidia,DEV=3
        HDA NVidia, HDMI 0
        Hardware device with all software conversions
    plughw:CARD=NVidia,DEV=7
        HDA NVidia, HDMI 0
        Hardware device with all software conversions
    plughw:CARD=NVidia,DEV=8
        HDA NVidia, HDMI 0
        Hardware device with all software conversions
    plughw:CARD=NVidia,DEV=9
        HDA NVidia, HDMI 0
        Hardware device with all software conversions
    hdmi:CARD=NVidia,DEV=0
        HDA NVidia, HDMI 0
        HDMI Audio Output
    hdmi:CARD=NVidia,DEV=1
        HDA NVidia, HDMI 0
        HDMI Audio Output
    hdmi:CARD=NVidia,DEV=2
        HDA NVidia, HDMI 0
        HDMI Audio Output
    hdmi:CARD=NVidia,DEV=3
        HDA NVidia, HDMI 0
        HDMI Audio Output
    dmix:CARD=NVidia,DEV=3
        HDA NVidia, HDMI 0
        Direct sample mixing device
    dmix:CARD=NVidia,DEV=7
        HDA NVidia, HDMI 0
        Direct sample mixing device
    dmix:CARD=NVidia,DEV=8
        HDA NVidia, HDMI 0
        Direct sample mixing device
    dmix:CARD=NVidia,DEV=9
        HDA NVidia, HDMI 0
        Direct sample mixing device
    hw:CARD=UD501,DEV=0
        TEAC UD-501, USB Audio
        Direct hardware device without any conversions
    plughw:CARD=UD501,DEV=0
        TEAC UD-501, USB Audio
        Hardware device with all software conversions
    default:CARD=UD501
        TEAC UD-501, USB Audio
        Default Audio Device
    sysdefault:CARD=UD501
        TEAC UD-501, USB Audio
        Default Audio Device
    front:CARD=UD501,DEV=0
        TEAC UD-501, USB Audio
        Front output / input
    surround21:CARD=UD501,DEV=0
        TEAC UD-501, USB Audio
        2.1 Surround output to Front and Subwoofer speakers
    surround40:CARD=UD501,DEV=0
        TEAC UD-501, USB Audio
        4.0 Surround output to Front and Rear speakers
    surround41:CARD=UD501,DEV=0
        TEAC UD-501, USB Audio
        4.1 Surround output to Front, Rear and Subwoofer speakers
    surround50:CARD=UD501,DEV=0
        TEAC UD-501, USB Audio
        5.0 Surround output to Front, Center and Rear speakers
    surround51:CARD=UD501,DEV=0
        TEAC UD-501, USB Audio
        5.1 Surround output to Front, Center, Rear and Subwoofer speakers
    surround71:CARD=UD501,DEV=0
        TEAC UD-501, USB Audio
        7.1 Surround output to Front, Center, Side, Rear and Woofer speakers
    iec958:CARD=UD501,DEV=0
        TEAC UD-501, USB Audio
        IEC958 (S/PDIF) Digital Audio Output
    dmix:CARD=UD501,DEV=0
        TEAC UD-501, USB Audio
        Direct sample mixing device
    I have also tried the hw:CARD=UD501,DEV=0 but no difference.
    Last edited by King_Crimson; 2022-06-03 at 11:28.

  4. #4
    Junior Member
    Join Date
    Aug 2020
    Posts
    17
    Can you execute squeezelite -l to list all output options available for Squeezelite? Did you disable onboard sound via config.txt?
    Last edited by Michael83; 2022-05-29 at 00:09.
    8.3.0 Nightly on RPi4
    Control: Web-GUI/MaterialSkin

    Living Room: RPi4, HifiBerry DAC2 Pro, wavemaster TWO NEO
    Kitchen: RPi4, HifiBerry DAC2 Pro, wavemaster CUBE MINI NEO
    Bedroom: RPi4, HifiBerry DAC2 Pro, wavemaster CUBE MINI NEO

  5. #5
    Junior Member
    Join Date
    Mar 2015
    Posts
    19
    Sorry, I don't know which config.txt you mean. Where can I find it?

    Code:
    squeezelite -l
    Output devices:
      null                           - Discard all samples (playback) or generate zero samples (capture)
      hw:CARD=NVidia,DEV=3           - HDA NVidia, HDMI 0 - Direct hardware device without any conversions
      hw:CARD=NVidia,DEV=7           - HDA NVidia, HDMI 0 - Direct hardware device without any conversions
      hw:CARD=NVidia,DEV=8           - HDA NVidia, HDMI 0 - Direct hardware device without any conversions
      hw:CARD=NVidia,DEV=9           - HDA NVidia, HDMI 0 - Direct hardware device without any conversions
      plughw:CARD=NVidia,DEV=3       - HDA NVidia, HDMI 0 - Hardware device with all software conversions
      plughw:CARD=NVidia,DEV=7       - HDA NVidia, HDMI 0 - Hardware device with all software conversions
      plughw:CARD=NVidia,DEV=8       - HDA NVidia, HDMI 0 - Hardware device with all software conversions
      plughw:CARD=NVidia,DEV=9       - HDA NVidia, HDMI 0 - Hardware device with all software conversions
      hdmi:CARD=NVidia,DEV=0         - HDA NVidia, HDMI 0 - HDMI Audio Output
      hdmi:CARD=NVidia,DEV=1         - HDA NVidia, HDMI 0 - HDMI Audio Output
      hdmi:CARD=NVidia,DEV=2         - HDA NVidia, HDMI 0 - HDMI Audio Output
      hdmi:CARD=NVidia,DEV=3         - HDA NVidia, HDMI 0 - HDMI Audio Output
      dmix:CARD=NVidia,DEV=3         - HDA NVidia, HDMI 0 - Direct sample mixing device
      dmix:CARD=NVidia,DEV=7         - HDA NVidia, HDMI 0 - Direct sample mixing device
      dmix:CARD=NVidia,DEV=8         - HDA NVidia, HDMI 0 - Direct sample mixing device
      dmix:CARD=NVidia,DEV=9         - HDA NVidia, HDMI 0 - Direct sample mixing device
      hw:CARD=UD501,DEV=0            - TEAC UD-501, USB Audio - Direct hardware device without any conversions
      plughw:CARD=UD501,DEV=0        - TEAC UD-501, USB Audio - Hardware device with all software conversions
      default:CARD=UD501             - TEAC UD-501, USB Audio - Default Audio Device
      sysdefault:CARD=UD501          - TEAC UD-501, USB Audio - Default Audio Device
      front:CARD=UD501,DEV=0         - TEAC UD-501, USB Audio - Front output / input
      surround21:CARD=UD501,DEV=0    - TEAC UD-501, USB Audio - 2.1 Surround output to Front and Subwoofer speakers
      surround40:CARD=UD501,DEV=0    - TEAC UD-501, USB Audio - 4.0 Surround output to Front and Rear speakers
      surround41:CARD=UD501,DEV=0    - TEAC UD-501, USB Audio - 4.1 Surround output to Front, Rear and Subwoofer speakers
      surround50:CARD=UD501,DEV=0    - TEAC UD-501, USB Audio - 5.0 Surround output to Front, Center and Rear speakers
      surround51:CARD=UD501,DEV=0    - TEAC UD-501, USB Audio - 5.1 Surround output to Front, Center, Rear and Subwoofer speakers
      surround71:CARD=UD501,DEV=0    - TEAC UD-501, USB Audio - 7.1 Surround output to Front, Center, Side, Rear and Woofer speakers
      iec958:CARD=UD501,DEV=0        - TEAC UD-501, USB Audio - IEC958 (S/PDIF) Digital Audio Output
      dmix:CARD=UD501,DEV=0          - TEAC UD-501, USB Audio - Direct sample mixing device
    Last edited by King_Crimson; 2022-06-03 at 11:29.

  6. #6
    Senior Member
    Join Date
    Apr 2005
    Location
    UK/London
    Posts
    5,819
    Try removing parameters from the Squeezelite command line - leaving you with just the output device and debug
    Paul Webster
    Author of "Now Playing" plugins covering Radio France (FIP etc), PlanetRadio (Bauer - Kiss, Absolute, Scala, JazzFM etc), KCRW, ABC Australia and CBC/Radio-Canada
    and, via the extra "Radio Now Playing" plugin lots more - see https://forums.slimdevices.com/showt...Playing-plugin

  7. #7
    Senior Member
    Join Date
    Apr 2005
    Location
    UK/London
    Posts
    5,819
    Could there be another application already using the ALSA device?
    Paul Webster
    Author of "Now Playing" plugins covering Radio France (FIP etc), PlanetRadio (Bauer - Kiss, Absolute, Scala, JazzFM etc), KCRW, ABC Australia and CBC/Radio-Canada
    and, via the extra "Radio Now Playing" plugin lots more - see https://forums.slimdevices.com/showt...Playing-plugin

  8. #8
    Junior Member
    Join Date
    Mar 2015
    Posts
    19
    I don't think so, it is the server version and there is nothing installed that uses audio, just the LMS and squeezelite. Maybe I will try if it works on my other Ubuntu desktop PC to compare the outputs.

  9. #9
    Senior Member
    Join Date
    Apr 2005
    Location
    UK/London
    Posts
    5,819
    Try using the “dmix” output device from the end of the device list.

    Also, which version of Squeezelite are you using?
    Paul Webster
    Author of "Now Playing" plugins covering Radio France (FIP etc), PlanetRadio (Bauer - Kiss, Absolute, Scala, JazzFM etc), KCRW, ABC Australia and CBC/Radio-Canada
    and, via the extra "Radio Now Playing" plugin lots more - see https://forums.slimdevices.com/showt...Playing-plugin

  10. #10
    Senior Member
    Join Date
    Oct 2005
    Location
    Ireland
    Posts
    21,779
    To exclude squeezelite specific issues - can you play a WAV file using "aplay" ?

    Ubuntu usually install Pulseaudio which can grab available audio devices. Has the audio device been "adopted" by Pulseaudio. You can use the "Pulseaudio Volume control" to check (pactl command line can do the same but is harder to find right info)

    A few months a similar issue was noted by a user. IIRC In that case the ALSA driver for the device would report many supported formats/ speed but only a few were actually allowed when tried. It required squeezelite command line option to restrict speed and formats used (after finding out which speeds were actually allowed by ALSA driver)

Posting Permissions

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