[Solved] After Vanessa-Upgrade, either squeezelite working, or deadbeef - but not both

Forum rules
Before you post read how to get help. Topics in this forum are automatically closed 6 months after creation.
Locked
soffy_O
Level 1
Level 1
Posts: 5
Joined: Wed Aug 10, 2022 5:48 am

[Solved] After Vanessa-Upgrade, either squeezelite working, or deadbeef - but not both

Post by soffy_O »

Dear Audio Experts,
since upgrading to Vanessa I get either squeezelite client (pulseaudio version) working, or deadbeef, but not both.
I'm using an external USB-DAC/Amp (RME Adi-2 Dac) and a NAS for music files / LMS Server.

I have modified settings in etc/pulse/daemon.conf e.g. resample-method, default-sample-format, default-sample-rate. Other than that, I'm not aware of any changes. There might still be some - collateral damage in the attempt to 'solve' the problem - since else the system probably would be working nicely, right?. Alsa squeezelite version didn't do the trick, pavucontrol neither.

My goal is to have audio output without any conversions, both via squeezlite and deadbeef.

Can someone point me in the right direction? That would be greatly appreciated!

Sound Setup:
https://termbin.com/2qa5

Code: Select all

$ inxi -Fxxxrz
System:
  Kernel: 5.15.0-46-generic x86_64 bits: 64 compiler: gcc v: 11.2.0
    Desktop: Cinnamon 5.4.9 tk: GTK 3.24.33 wm: Mutter vt: 7 dm: LightDM 1.30.0
    Distro: Linux Mint 21 Vanessa base: Ubuntu 22.04 jammy
Machine:
  Type: Desktop Mobo: Intel model: NUC5i7RYB v: H73774-101
    serial: <superuser required> UEFI: Intel
    v: RYBDWi35.86A.0369.2018.0305.1050 date: 03/05/2018
Battery:
  Device-1: apple_mfi_fastcharge model: N/A serial: N/A charge: N/A
    status: N/A
  Device-2: hidpp_battery_0 model: Logitech Wireless Mouse MX Master
    serial: <filter> charge: 55% (should be ignored) rechargeable: yes
    status: Discharging
  Device-3: hidpp_battery_1 model: Logitech Wireless Keyboard K360
    serial: <filter> charge: 55% (should be ignored) rechargeable: yes
    status: Discharging
CPU:
  Info: dual core model: Intel Core i7-5557U bits: 64 type: MT MCP
    smt: enabled arch: Broadwell rev: 4 cache: L1: 128 KiB L2: 512 KiB
    L3: 4 MiB
  Speed (MHz): avg: 2416 high: 3093 min/max: 500/3400 cores: 1: 2393
    2: 2175 3: 3093 4: 2005 bogomips: 24742
  Flags: avx avx2 ht lm nx pae sse sse2 sse3 sse4_1 sse4_2 ssse3 vmx
Graphics:
  Device-1: Intel Iris Graphics 6100 driver: i915 v: kernel ports:
    active: DP-1 empty: HDMI-A-1,HDMI-A-2 bus-ID: 00:02.0 chip-ID: 8086:162b
    class-ID: 0300
  Display: x11 server: X.Org v: 1.21.1.3 driver: X: loaded: modesetting
    unloaded: fbdev,vesa gpu: i915 display-ID: :0 screens: 1
  Screen-1: 0 s-res: 1920x1200 s-dpi: 96 s-size: 508x317mm (20.0x12.5")
    s-diag: 599mm (23.6")
  Monitor-1: DP-1 model: EV2455 serial: <filter> res: 1920x1200 hz: 60
    dpi: 94 size: 519x324mm (20.4x12.8") diag: 616mm (24.2") modes:
    max: 1920x1200 min: 720x400
  OpenGL: renderer: Mesa Intel Iris Graphics 6100 (BDW GT3)
    v: 4.6 Mesa 22.0.5 direct render: Yes
Audio:
  Device-1: Intel Broadwell-U Audio driver: snd_hda_intel v: kernel
    bus-ID: 00:03.0 chip-ID: 8086:160c class-ID: 0403
  Device-2: Intel Wildcat Point-LP High Definition Audio
    driver: snd_hda_intel v: kernel bus-ID: 00:1b.0 chip-ID: 8086:9ca0
    class-ID: 0403
  Device-3: RME ADI-2 DAC (59920888) type: USB driver: snd-usb-audio
    bus-ID: 2-4:4 chip-ID: 2a39:3fd3 class-ID: 0102 serial: <filter>
  Sound Server-1: ALSA v: k5.15.0-46-generic running: yes
  Sound Server-2: JACK v: 1.9.20 running: no
  Sound Server-3: PulseAudio v: 15.99.1 running: yes
  Sound Server-4: PipeWire v: 0.3.48 running: yes
Network:
  Device-1: Intel Ethernet I218-V driver: e1000e v: kernel port: 3080
    bus-ID: 00:19.0 chip-ID: 8086:15a3 class-ID: 0200
  IF: enp0s25 state: up speed: 1000 Mbps duplex: full mac: <filter>
  Device-2: Intel Wireless 7265 driver: iwlwifi v: kernel pcie:
    speed: 2.5 GT/s lanes: 1 bus-ID: 02:00.0 chip-ID: 8086:095a class-ID: 0280
  IF: wlp2s0 state: down mac: <filter>
  IF-ID-1: enxba53ac62c775 state: down mac: <filter>
Bluetooth:
  Device-1: Intel Bluetooth wireless interface type: USB driver: btusb v: 0.8
    bus-ID: 2-7:5 chip-ID: 8087:0a2a class-ID: e001
  Report: hciconfig ID: hci0 rfk-id: 0 state: up address: <filter>
    bt-v: 2.1 lmp-v: 4.2 sub-v: 1000 hci-v: 4.2 rev: 1000
Drives:
  Local Storage: total: 119.24 GiB used: 59.71 GiB (50.1%)
  ID-1: /dev/sda vendor: SanDisk model: SD8SNAT128G1122 size: 119.24 GiB
    speed: 6.0 Gb/s type: SSD serial: <filter> rev: 1000 scheme: GPT
Partition:
  ID-1: / size: 116.32 GiB used: 59.7 GiB (51.3%) fs: ext4 dev: /dev/sda2
  ID-2: /boot/efi size: 511 MiB used: 7.8 MiB (1.5%) fs: vfat
    dev: /dev/sda1
Swap:
  ID-1: swap-1 type: file size: 2 GiB used: 0 KiB (0.0%) priority: -2
    file: /swapfile
Sensors:
  System Temperatures: cpu: 70.0 C mobo: 27.8 C
  Fan Speeds (RPM): N/A
Repos:
  Packages: 3168 note: see --pkg apt: 3147 flatpak: 17 snap: 4
  No active apt repos in: /etc/apt/sources.list
  Active apt repos in: /etc/apt/sources.list.d/devolo-updates.list
    1: deb http://update.devolo.com/linux/apt/ stable main
  Active apt repos in: /etc/apt/sources.list.d/official-package-repositories.list
    1: deb http://linux-mint.froonix.org vanessa main upstream import backport
    2: deb http://artfiles.org/ubuntu.com jammy main restricted universe multiverse
    3: deb http://artfiles.org/ubuntu.com jammy-updates main restricted universe multiverse
    4: deb http://artfiles.org/ubuntu.com jammy-backports main restricted universe multiverse
    5: deb http://security.ubuntu.com/ubuntu/ jammy-security main restricted universe multiverse
  Active apt repos in: /etc/apt/sources.list.d/starws-box-deadbeef-player-focal.list
    1: deb http://ppa.launchpad.net/starws-box/deadbeef-player/ubuntu jammy main
Info:
  Processes: 250 Uptime: 10m wakeups: 6 Memory: 15.51 GiB
  used: 3.54 GiB (22.8%) Init: systemd v: 249 runlevel: 5 Compilers:
  gcc: 11.2.0 alt: 11/9 Shell: Bash v: 5.1.16 running-in: gnome-terminal
  inxi: 3.3.13

Code: Select all

$ aplay -l
**** List of PLAYBACK Hardware Devices ****
card 0: HDMI [HDA Intel HDMI], device 3: HDMI 0 [HDMI 0]
  Subdevices: 1/1
  Subdevice #0: subdevice #0
card 0: HDMI [HDA Intel HDMI], device 7: HDMI 1 [HDMI 1]
  Subdevices: 1/1
  Subdevice #0: subdevice #0
card 0: HDMI [HDA Intel HDMI], device 8: HDMI 2 [HDMI 2]
  Subdevices: 1/1
  Subdevice #0: subdevice #0
card 0: HDMI [HDA Intel HDMI], device 9: HDMI 3 [HDMI 3]
  Subdevices: 1/1
  Subdevice #0: subdevice #0
card 0: HDMI [HDA Intel HDMI], device 10: HDMI 4 [HDMI 4]
  Subdevices: 1/1
  Subdevice #0: subdevice #0
card 2: PCH [HDA Intel PCH], device 0: ALC283 Analog [ALC283 Analog]
  Subdevices: 0/1
  Subdevice #0: subdevice #0

Code: Select all

$ pacmd list-sinks
2 sink(s) available.
    index: 0
	name: <alsa_output.pci-0000_00_03.0.hdmi-stereo-extra1>
	driver: <module-alsa-card.c>
	flags: HARDWARE DECIBEL_VOLUME LATENCY FLAT_VOLUME DYNAMIC_LATENCY
	state: SUSPENDED
	suspend cause: IDLE
	priority: 9030
	volume: front-left: 65536 / 100% / 0.00 dB,   front-right: 65536 / 100% / 0.00 dB
	        balance 0.00
	base volume: 65536 / 100% / 0.00 dB
	volume steps: 65537
	muted: no
	current latency: 0.00 ms
	max request: 0 KiB
	max rewind: 0 KiB
	monitor source: 0
	sample spec: s32le 2ch 88200Hz
	channel map: front-left,front-right
	             Stereo
	used by: 0
	linked by: 0
	configured latency: 0.00 ms; range is 0.50 .. 2000.00 ms
	card: 0 <alsa_card.pci-0000_00_03.0>
	module: 7
	properties:
		alsa.resolution_bits = "32"
		device.api = "alsa"
		device.class = "sound"
		alsa.class = "generic"
		alsa.subclass = "generic-mix"
		alsa.name = "HDMI 1"
		alsa.id = "HDMI 1"
		alsa.subdevice = "0"
		alsa.subdevice_name = "subdevice #0"
		alsa.device = "7"
		alsa.card = "0"
		alsa.card_name = "HDA Intel HDMI"
		alsa.long_card_name = "HDA Intel HDMI at 0xaa134000 irq 50"
		alsa.driver_name = "snd_hda_intel"
		device.bus_path = "pci-0000:00:03.0"
		sysfs.path = "/devices/pci0000:00/0000:00:03.0/sound/card0"
		device.bus = "pci"
		device.vendor.id = "8086"
		device.vendor.name = "Intel Corporation"
		device.product.id = "160c"
		device.product.name = "Broadwell-U Audio Controller"
		device.form_factor = "internal"
		device.string = "hdmi:0,1"
		device.buffering.buffer_size = "1411200"
		device.buffering.fragment_size = "470400"
		device.access_mode = "mmap+timer"
		device.profile.name = "hdmi-stereo-extra1"
		device.profile.description = "Digital Stereo (HDMI 2)"
		device.description = "Built-in Audio Digital Stereo (HDMI 2)"
		module-udev-detect.discovered = "1"
		device.icon_name = "audio-card-pci"
	ports:
		hdmi-output-1: HDMI / DisplayPort 2 (priority 5800, latency offset 0 usec, available: yes)
			properties:
				device.icon_name = "video-display"
				device.product.name = "EV2455"
	active port: <hdmi-output-1>
  * index: 1
	name: <alsa_output.usb-RME_ADI-2_DAC__59920888__2FB1E2E26A404C8-00.analog-stereo>
	driver: <module-alsa-card.c>
	flags: HARDWARE DECIBEL_VOLUME LATENCY FLAT_VOLUME DYNAMIC_LATENCY
	state: RUNNING
	suspend cause: (none)
	priority: 9049
	volume: front-left: 65536 / 100% / 0.00 dB,   front-right: 65536 / 100% / 0.00 dB
	        balance 0.00
	base volume: 65536 / 100% / 0.00 dB
	volume steps: 65537
	muted: no
	current latency: 1749.84 ms
	max request: 1350 KiB
	max rewind: 1350 KiB
	monitor source: 1
	sample spec: s32le 2ch 88200Hz
	channel map: front-left,front-right
	             Stereo
	used by: 1
	linked by: 1
	configured latency: 1960.00 ms; range is 0.50 .. 2000.00 ms
	card: 1 <alsa_card.usb-RME_ADI-2_DAC__59920888__2FB1E2E26A404C8-00>
	module: 19
	properties:
		alsa.resolution_bits = "32"
		device.api = "alsa"
		device.class = "sound"
		alsa.class = "generic"
		alsa.subclass = "generic-mix"
		alsa.name = "USB Audio"
		alsa.id = "USB Audio"
		alsa.subdevice = "0"
		alsa.subdevice_name = "subdevice #0"
		alsa.device = "0"
		alsa.card = "1"
		alsa.card_name = "ADI-2 DAC (59920888)"
		alsa.long_card_name = "RME ADI-2 DAC (59920888) at usb-0000:00:14.0-4, high speed"
		alsa.driver_name = "snd_usb_audio"
		device.bus_path = "pci-0000:00:14.0-usb-0:4:1.0"
		sysfs.path = "/devices/pci0000:00/0000:00:14.0/usb2/2-4/2-4:1.0/sound/card1"
		udev.id = "usb-RME_ADI-2_DAC__59920888__2FB1E2E26A404C8-00"
		device.bus = "usb"
		device.vendor.id = "2a39"
		device.vendor.name = "RME"
		device.product.id = "3fd3"
		device.product.name = "ADI-2 DAC (59920888)"
		device.serial = "RME_ADI-2_DAC__59920888__2FB1E2E26A404C8"
		device.string = "front:1"
		device.buffering.buffer_size = "1411200"
		device.buffering.fragment_size = "705600"
		device.access_mode = "mmap+timer"
		device.profile.name = "analog-stereo"
		device.profile.description = "Analog Stereo"
		device.description = "ADI-2 DAC (59920888) Analog Stereo"
		module-udev-detect.discovered = "1"
		device.icon_name = "audio-card-usb"
	ports:
		analog-output: Analog Output (priority 9900, latency offset 0 usec, available: unknown)
			properties:
				
	active port: <analog-output>
Last edited by LockBot on Fri Feb 10, 2023 11:00 pm, edited 2 times in total.
Reason: Topic automatically closed 6 months after creation. New replies are no longer allowed.
soffy_O
Level 1
Level 1
Posts: 5
Joined: Wed Aug 10, 2022 5:48 am

Re: After Vanessa-Upgrade, either squeezelite working, or deadbeef - but not both

Post by soffy_O »

After switching to the Alsa and back to the pulseaudio version of squeezelite - as done before - now both squeezelite and deadbeef are working. Why? Don't have a clue.
Nevertheless: Problem solved.
soffy_O
Level 1
Level 1
Posts: 5
Joined: Wed Aug 10, 2022 5:48 am

Re: [Solved] After Vanessa-Upgrade, either squeezelite working, or deadbeef - but not both

Post by soffy_O »

One more thing. I wasn't happy with the constant conversion of audio output. This is what I did to get reliable 'bit-perfect' output for the USB DAC, with the ALSA version of squeezelite:

1. Determine and select the output device/mode with

Code: Select all

squeezelite -l
Select the device 'without any conversion'. For me it is

Code: Select all

hw:CARD=DAC59920888,DEV=0      - ADI-2 DAC (59920888), USB Audio - Direct hardware device without any conversions
2. Open as root /etc/default/squeezelite and
2.1 edit the # ALSA output device:
# ALSA output device:
SL_SOUNDCARD="hw:CARD=DAC59920888,DEV=0"
2.2 at the end of the file add:
# Additional options to pass to squeezelite:
# Please do not include -z to make squeezelite daemonise itself.
SB_EXTRA_ARGS="-C 4"

The latter option is to release the audio output if not used, after 4s.
3. reboot


My DAC comes with testfiles from 16bit/41kHz to 32bit/192kHz that generate a message of confirmation if transmitted correctly - which they did. Dsf outpt works fine, too.
After this change the annoying latency of ~4s when changing a song also disappeared.
soffy_O
Level 1
Level 1
Posts: 5
Joined: Wed Aug 10, 2022 5:48 am

Re: [Solved] After Vanessa-Upgrade, either squeezelite working, or deadbeef - but not both

Post by soffy_O »

One more thing.
The prior approach can more easily be achieved by adding a custom command in Startup Applications:
1. Open Startup Applications
2. add 'Custom command':

Code: Select all

/usr/bin/squeezelite -o "hw:CARD=DAC59920888,DEV=0" -C 4
...replace 'hw:CARD=DAC...' with your own hardware
soffy_O
Level 1
Level 1
Posts: 5
Joined: Wed Aug 10, 2022 5:48 am

Re: [Solved] After Vanessa-Upgrade, either squeezelite working, or deadbeef - but not both

Post by soffy_O »

To avoid malfunction if the DAC is powerd off during start-up, the sample rates need to be added to the launch command. In my case it looks like this:

/usr/bin/squeezelite -D 10 -o "hw:CARD=DAC59920888,DEV=0" -C 4 -r 768000|44100-768000|44100,48000,88200,96000,176400,19200,352800,384000,705600,768000:5

quote from squeezelite help:
-r <rates>[:<delay>] Sample rates supported, allows output to be off when squeezelite is started; rates = <maxrate>|<minrate>-<maxrate>|<rate1>,<rate2>,<rate3>; delay = optional delay switching rates in ms

...to close this off, as a learning point from this entire exercise, it seems to me reading through documentation and acting accordingly can save (massive amounts of) time :roll:
Locked

Return to “Sound”