Hi,
  I have a problem on a system where my only sound device is a USB DAC. All other device driver modules are removed.
The only audio application that should be running is "squeezelite", which starts as a service. towards the end of the init process.
During init, when the DAC is initialised, I always get a few seconds of white noise through bot channels. Â This persists until squeezelite starts, at which point it becomes silent.
I've been babnging my head trying to figure aout what's going on, without any success.  I can't see any alsa log, but have tried both disabling alsa-restore.service and manually editing /var/lib/alsa/asound.state to configure all controls to the minimum volume.  So far nothing makes any difference.
  As the noise is muted whenever squeezelite starts, I'm thinking that there must be something that is simply being initialised wrong on the DAC and that the fix must be simple.
  Can anyone suggest what to try?
 aplay -L
null
  Discard all samples (playback) or generate zero samples (capture)
pulse
  PulseAudio Sound Server
default:CARD=PRO
  Sanskrit PRO, USB Audio
  Default Audio Device
sysdefault:CARD=PRO
  Sanskrit PRO, USB Audio
  Default Audio Device
front:CARD=PRO,DEV=0
  Sanskrit PRO, USB Audio
  Front speakers
surround21:CARD=PRO,DEV=0
  Sanskrit PRO, USB Audio
  2.1 Surround output to Front and Subwoofer speakers
surround40:CARD=PRO,DEV=0
  Sanskrit PRO, USB Audio
  4.0 Surround output to Front and Rear speakers
surround41:CARD=PRO,DEV=0
  Sanskrit PRO, USB Audio
  4.1 Surround output to Front, Rear and Subwoofer speakers
surround50:CARD=PRO,DEV=0
  Sanskrit PRO, USB Audio
  5.0 Surround output to Front, Center and Rear speakers
surround51:CARD=PRO,DEV=0
  Sanskrit PRO, USB Audio
  5.1 Surround output to Front, Center, Rear and Subwoofer speakers
surround71:CARD=PRO,DEV=0
  Sanskrit PRO, USB Audio
  7.1 Surround output to Front, Center, Side, Rear and Woofer speakers
iec958:CARD=PRO,DEV=0
  Sanskrit PRO, USB Audio
  IEC958 (S/PDIF) Digital Audio Output
dmix:CARD=PRO,DEV=0
  Sanskrit PRO, USB Audio
  Direct sample mixing device
dsnoop:CARD=PRO,DEV=0
  Sanskrit PRO, USB Audio
  Direct sample snooping device
hw:CARD=PRO,DEV=0
  Sanskrit PRO, USB Audio
  Direct hardware device without any conversions
plughw:CARD=PRO,DEV=0
  Sanskrit PRO, USB Audio
  Hardware device with all software conversions
squeezelite-R2 -l
Output devices:
 null              - Discard all samples (playback) or generate zero samples (capture)
 pulse              - PulseAudio Sound Server
 default:CARD=PRO        - Sanskrit PRO, USB Audio - Default Audio Device
 sysdefault:CARD=PRO       - Sanskrit PRO, USB Audio - Default Audio Device
 front:CARD=PRO,DEV=0      - Sanskrit PRO, USB Audio - Front speakers
 surround21:CARD=PRO,DEV=0    - Sanskrit PRO, USB Audio - 2.1 Surround output to Front and Subwoofer speakers
 surround40:CARD=PRO,DEV=0    - Sanskrit PRO, USB Audio - 4.0 Surround output to Front and Rear speakers
 surround41:CARD=PRO,DEV=0    - Sanskrit PRO, USB Audio - 4.1 Surround output to Front, Rear and Subwoofer speakers
 surround50:CARD=PRO,DEV=0    - Sanskrit PRO, USB Audio - 5.0 Surround output to Front, Center and Rear speakers
 surround51:CARD=PRO,DEV=0    - Sanskrit PRO, USB Audio - 5.1 Surround output to Front, Center, Rear and Subwoofer speakers
 surround71:CARD=PRO,DEV=0    - Sanskrit PRO, USB Audio - 7.1 Surround output to Front, Center, Side, Rear and Woofer speakers
 iec958:CARD=PRO,DEV=0      - Sanskrit PRO, USB Audio - IEC958 (S/PDIF) Digital Audio Output
 dmix:CARD=PRO,DEV=0       - Sanskrit PRO, USB Audio - Direct sample mixing device
 dsnoop:CARD=PRO,DEV=0      - Sanskrit PRO, USB Audio - Direct sample snooping device
 hw:CARD=PRO,DEV=0        - Sanskrit PRO, USB Audio - Direct hardware device without any conversions
 plughw:CARD=PRO,DEV=0      - Sanskrit PRO, USB Audio - Hardware device with all software conversions
***@pine64:~# systemctl status alsa-restore.service
â alsa-restore.service - Save/Restore Sound Card State
  Loaded: loaded (/lib/systemd/system/alsa-restore.service; static; vendor preset: enabled)
  Active: active (exited) since Fri 2017-03-10 11:33:45 CET; 4s ago
 Process: 2844 ExecStart=/usr/sbin/alsactl -E HOME=/run/alsa restore (code=exited, status=0/SUCCESS)
 Process: 2841 ExecStartPre=/bin/mkdir -p /run/alsa (code=exited, status=0/SUCCESS)
 Main PID: 2844 (code=exited, status=0/SUCCESS)
Mar 10 11:33:45 pine64 systemd[1]: Starting Save/Restore Sound Card State...
Mar 10 11:33:45 pine64 systemd[1]: Started Save/Restore Sound Card State.
***@pine64:~# systemctl status squeezelite.service
â squeezelite.service - LSB: Lightweight headless Squeezebox emulator
  Loaded: loaded (/etc/init.d/squeezelite; bad; vendor preset: enabled)
  Active: active (running) since Fri 2017-03-10 11:08:30 CET; 25min ago
   Docs: man:systemd-sysv-generator(8)
  CGroup: /system.slice/squeezelite.service
      ââ1059 /opt/squeezelite/squeezelite-R2 -o hw:CARD=PRO,DEV=0 -p 90 -a 20 4  1 -d all debug -f /var/log/squeezelite.log
Mar 10 11:08:30 pine64 systemd[1]: Starting LSB: Lightweight headless Squeezebox emulator...
Mar 10 11:08:30 pine64 systemd[1]: Started LSB: Lightweight headless Squeezebox emulator.
Any advice?
 BR.
--Marius--
Â