Re: [Alsa-user] white noise when starting alsa

2017-03-10 Thread Marius Schrecker

Well, the problem is that my device is locked to 3.10 (Armbian kernel for 
pine64), which I know is very old, so can't really test with different kernels 
on that device.


On Friday, March 10, 2017 14:42 CET, Clemens Ladisch  wrote:
 Marius Schrecker wrote:
> Strangely, the same DAC starts completely silent both on my debian laptop 
> kernel 4.8, Debian x86_64 and on my Logitech Squeezebox touch.

Can you narrow it down to some specific kernel version?
 
Well, the problem is that my device is locked to 3.10 (Armbian kernel for 
pine64), which I know is very old, so can't really test with different kernels 
on that device.


The workaround works, just takes a little while to become active the way I am 
triggering it now.

  BR.

Marius
 
--
Announcing the Oxford Dictionaries API! The API offers world-renowned
dictionary content that is easy and intuitive to access. Sign up for an
account today to start using our lexical data to power your apps and
projects. Get started today and enter our developer competition.
http://sdm.link/oxford___
Alsa-user mailing list
Alsa-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/alsa-user


Re: [Alsa-user] white noise when starting alsa

2017-03-10 Thread Clemens Ladisch
Marius Schrecker wrote:
> Strangely, the same DAC starts completely silent both on my debian laptop 
> kernel  4.8, Debian x86_64 and on my Logitech Squeezebox touch.

Can you narrow it down to some specific kernel version?


Regards,
Clemens


--
Announcing the Oxford Dictionaries API! The API offers world-renowned
dictionary content that is easy and intuitive to access. Sign up for an
account today to start using our lexical data to power your apps and
projects. Get started today and enter our developer competition.
http://sdm.link/oxford
___
Alsa-user mailing list
Alsa-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/alsa-user


Re: [Alsa-user] white noise when starting alsa

2017-03-10 Thread Clemens Ladisch
Marius Schrecker wrote:
> the noise continued until I do a:
>
> ~# aplay -v -D hw:CARD=PRO -f S32_LE -c 2 -d 1 /dev/zero
>
> At which point it stopped.

Apparently, the firmware of this device thinks it should play something,
and errorenously does so even if there is not anything to play.  (It
might be possible that initializing the driver makes the device think
that it is actually being started.)

Try executing "head -c 5000 /dev/zero | aplay -D hw:PRO -f cd -t raw -"
immediately after the driver is loaded.


Regards,
Clemens

--
Announcing the Oxford Dictionaries API! The API offers world-renowned
dictionary content that is easy and intuitive to access. Sign up for an
account today to start using our lexical data to power your apps and
projects. Get started today and enter our developer competition.
http://sdm.link/oxford
___
Alsa-user mailing list
Alsa-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/alsa-user


Re: [Alsa-user] white noise when starting alsa

2017-03-10 Thread Clemens Ladisch
Marius Schrecker wrote:
> 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.

Probably some wrong mixer control.

> 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.

Don't start Squeezelite, and try if anything you do in alsamixer makes
a difference while in this state.


Regards,
Clemens

--
Announcing the Oxford Dictionaries API! The API offers world-renowned
dictionary content that is easy and intuitive to access. Sign up for an
account today to start using our lexical data to power your apps and
projects. Get started today and enter our developer competition.
http://sdm.link/oxford
___
Alsa-user mailing list
Alsa-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/alsa-user


[Alsa-user] white noise when starting alsa

2017-03-10 Thread Marius Schrecker

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


root@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.
root@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