No Spotify Connect / Allo USBridge - Sparky - Mytek Brooklyn DAC

Hey Olaf,

What would be best is to open up two tabs - \dev page in one tab, volumio.local in another. Stop all other things in Volumio, and then enable the live log, and then recreate the minimum steps to reproduce your problem.

In this case it would be:

  1. Enable LiveLog
  2. Stop any playback.
  3. Attempt to connect from a Spotify Client
  4. Copy the logs here :slight_smile:

Hi Ash,

Thanks for your reply. This is what I get in de livelog in the /dev page when I follow your steps:

Starting Live Log…
process exited with code nullNo journal files were found. Failed to get data:
Cannot assign requested address

In the Android Spotify app I can see the Volumio as device to play from.

Best regards,
Olaf

Dear Ash,

Don’t know what happened to font of my previous reply. I tried the livelog again and in an other place of the browser window found this:

{“status”:“stop”,“position”:0,“title”:"",“artist”:"",“album”:"",“albumart”:"/albumart",“duration”:0,“uri”:"",“seek”:21958,“samplerate”:"",“channels”:"",“bitdepth”:"",“Streaming”:false,“service”:“mpd”,“volume”:75,“mute”:false,“disableVolumeControl”:false,“random”:null,“repeat”:null,“repeatSingle”:false,“updatedb”:false,“consume”:false}

Can you make sense of this?
Kind regards,
Olaf

Ah, it looks like the Sparky build needs sudo for the journal files. So LiveLog will not work. Sorry!
You will have to use ssh. There should be a guide on the Volumio docs page, let me know if you don’t find it :slight_smile:

But how did it work back here? :thinking: Or was this using the “send log” button?

Dear Ash,
I’m slightly familiar with Putty and SSH. I wouldn’t know what sudo commands to use to activate LiveLog on the Sparky (I am a music lover and no computer whizkid). With search “LiveLog” in the community webpage I didn’t find anything useful (I think).
What and where is the “Volumio docs page”?
Could you send / post the right info?
I’ll get to it in some days.
Thanks in advance,
Olaf

Sorry for the confusion –

LiveLog is just a small “feature” where you can see the log messages directly from the browser by visiting the http://volumio.local/dev/ page. It looks something like:

To see the same information from the terminal (putty/ssh) you would need to run the following commands

# Volumio logs
journalctl -f 
# vollibrespot logs
journalctl -f -o cat -u volspotconnect2.service

Note you might need add sudo before these commands depending on the version of Volumio your running

Dear Ash,
With putty ssh the commands you propose have no result.
The “…/dev” page results in a link to a log file which is far to big to copy in this reply window.
Any suggestions?
Best regards, Olaf

I am very confused, can you please share a screenshot of this very big log file?

Here’s an example:

Ah, as suspected - this is the normal Send Log or bug report link which lets you share a detailed log for debugging
The process is described better here in a step by step fashion:

This isn’t the LiveLog - that is just a few lines further down the page. Do you not see it on the dev page?

Either way, you issues is mostly the same as I mentioned back in No Spotify Connect / Allo USBridge - Sparky - Mytek Brooklyn DAC - wrong mixer setup.

Can you try the steps I posted in that thread?

It should solve your issue…

I did set the Playback options > Volume options > Mixer type > None.
Spotify Connect works now. Volume control in the Volumio “app” does not.
Still happy with Volumio.

If you want volume control, please set it to Software - None means no volume control :wink:

Dear Ash,

I know, but when I set it (again) to Software, than Spotify Connect will not work and I will still/also have no volume control. That was the situation why I started this help request; no spotify connect and no volume control (The latter has also a separate help request). At least one of the issues is solved now.

I think I’ll accept that volume control has to be done on the Brooklyn DAC and not in the Volumio “app”.

Kind regards,
Olaf

Aha - I am very curious to see what is going on. It shouldn’t work like this.
When you set the volume control to Software even Spotify connect should work (using software volume).
Would you mind doing some more debugging with me? (copy pasting into the terminal via ssh) If so, send me a message, I will guide you how/what has to be done.

Hi Ash,

I won’t mind to do some debugging with you. Accept that I’m not an ict specialist and have a busy live, so I wont react quickly.

For a start I had a look into the Mytek Brooklyn manual. Here’s a citation:
“9.2.13 USB Volume [HID]
When this option is enabled the DAC main outputs signal level can be controlled by OS volume fader. Click small speaker icon shown in Windows taskbar to see the fader. If the icon is not visible please go to your system settings „Notifications & actions” (Win10) and enable it.
Attention! When AES, SPDIF coaxial or SPDIF optical input is used and the DAC is still connected to a computer via USB port the USB Volume option must be disabled. Otherwise the DAC can damage your speakers as it can play too loud.”

Just a thought: I have the Allo USBridge connected to the Mytek USB input. I have the Mytek USB Volume option disabled, because I have also SPDIF inputs to the Mytek.
Could this be the explanation the volume control with the Sparky and Volumio won’t work any way?
On the other hand, why should this influence the working of Spotify Connect?

Kind regards, Olaf

Yes - this is what I would like to check - the DAC doesn’t seem to expose the hardware DAC when connected through the USB bridge.
Since Spotfy Connect depends on Volumio’s API to report the right card and mixer setup, it fails here for the card and mixer reported by Volumio. I made a design choice to not fail silently, but exits the application when it has such things happen :grimacing: Probably not the best choice, but I don’t like silent failures…

From your logs, this is what is picked up from the API -

[Vollibrespot] : Setting up new mixer: card:hw:1 mixer:SoftMaster index:0

Similarly, since this seems to be an ALSA issue - Volumio fails to use the Software mixer
as seen from your logs:

Nov 25 07:16:37 volumio volumio[828]: error: Cannot set ALSA Volume: Error: Alsa Mixer Error: amixer: Mixer hw:1 load error: Broken pipe
Nov 25 07:16:37 volumio volumio[828]: info: Setting volume on startup at 75
# MPD is also failing with
Nov 25 07:16 : exception: Failed to register /var/lib/mpd/music/USB/rootfs/var/run/samba/ncalrpc/np: inotify_add_watch() has failed: Permission denied
Nov 25 07:16 : exception: Failed to register /var/lib/mpd/music/USB/rootfs/var/run/samba/winbindd_privileged: inotify_add_watch() has failed: Permission denied
Nov 25 07:16 : client: [1] opened from local
Nov 25 07:16 : exception: Failed to access /var/lib/mpd/music/USB/rootfs/run/sendsigs.omit.d/rsyslog: No such file or directory
ALSA lib control.c:1373:(snd_ctl_open_noupdate) Invalid CTL SoftMaster
Nov 25 07:16 : exception: Failed to read mixer for 'alsa': failed to attach to SoftMaster: No such file or directory

I just re-read your post and now it’s clearer to me - setting mixer type to Software doesn’t work for you from Volumio correct? :thinking: If I understood that correctly, then it’s going to be hard to debug.
But - a quick ssh into your device with Putty, might give us more clues. Please run the following commands with your DAC connected, and the mixer set to Software

# This is to see what you have 
aplay -l
# And what corresponding mixers does it have
amixer
# And check again with the right card
amixer -c0 scontrols
amixer -c1 scontrols

I made jpg images of the Putty screen with your commands. However, when I reply I get “Sorry, new users can only put one embedded media item in a post.”
How do I proceed?

You could just copy-paste text from putty into this post with within code tags (</>)
If not, try hosting them elsewhere such as imgbox.com/ or imgur.com and add links.

Here are the 4 commands:
(“amixer -c1 scontrols” gives an error.)

volumio@volumio:~$ aplay -l
**** List of PLAYBACK Hardware Devices ****
card 0: atm7059link [atm7059_link], device 0: ATC2603C PCM atc2603c-dai-0 []
  Subdevices: 1/1
  Subdevice #0: subdevice #0
card 0: atm7059link [atm7059_link], device 1: HDMI PCM atm7059-hdmi-dai-1 []
  Subdevices: 1/1
  Subdevice #0: subdevice #0
card 0: atm7059link [atm7059_link], device 2: SPDIF PCM atm7059-spdif-dai-2 []
  Subdevices: 1/1
  Subdevice #0: subdevice #0
card 1: DAC [Brooklyn DAC], device 0: USB Audio [USB Audio]
  Subdevices: 1/1
  Subdevice #0: subdevice #0
volumio@volumio:~$ amixer
Simple mixer control 'Mic0 Mode Mux',0
  Capabilities: enum
  Items: 'Differential' 'Single ended'
  Item0: 'Differential'
Simple mixer control 'ADC0 Digital Gain control',0
  Capabilities: volume volume-joined
  Playback channels: Mono
  Capture channels: Mono
  Limits: 0 - 15
  Mono: 0 [0%]
Simple mixer control 'ADC0 Mux',0
  Capabilities: enum
  Items: 'None' 'FM' 'MIC0' 'FM MIC0' 'PAOUT'
  Item0: 'None'
Simple mixer control 'AMP1 Gain boost Range select',0
  Capabilities: volume volume-joined
  Playback channels: Mono
  Capture channels: Mono
  Limits: 0 - 7
  Mono: 3 [43%]
Simple mixer control 'AOUT FL FR Mixer FL FR',0
  Capabilities: pswitch pswitch-joined
  Playback channels: Mono
  Mono: Playback [off]
Simple mixer control 'AOUT FL FR Mixer FM',0
  Capabilities: pswitch pswitch-joined
  Playback channels: Mono
  Mono: Playback [off]
Simple mixer control 'AOUT FL FR Mixer MIC',0
  Capabilities: pswitch pswitch-joined
  Playback channels: Mono
  Mono: Playback [off]
Simple mixer control 'Adc0 Digital Gain',0
  Capabilities: volume volume-joined
  Playback channels: Mono
  Capture channels: Mono
  Limits: 0 - 15
  Mono: 0 [0%]
Simple mixer control 'Adc0 Gain',0
  Capabilities: volume
  Playback channels: Front Left - Front Right
  Capture channels: Front Left - Front Right
  Limits: 0 - 15
  Front Left: 9 [60%]
  Front Right: 9 [60%]
Simple mixer control 'DAC Digital FL FR',0
  Capabilities: pswitch
  Playback channels: Front Left - Front Right
  Mono:
  Front Left: Playback [on]
  Front Right: Playback [on]
Simple mixer control 'DAC FL FR PLAYBACK',0
  Capabilities: pswitch pswitch-joined
  Playback channels: Mono
  Mono: Playback [off]
Simple mixer control 'DAC FL Gain',0
  Capabilities: volume volume-joined
  Playback channels: Mono
  Capture channels: Mono
  Limits: 0 - 255
  Mono: 181 [71%]
Simple mixer control 'DAC FR Gain',0
  Capabilities: volume volume-joined
  Playback channels: Mono
  Capture channels: Mono
  Limits: 0 - 255
  Mono: 181 [71%]
Simple mixer control 'DAC PA',0
  Capabilities: volume volume-joined pswitch pswitch-joined
  Playback channels: Mono
  Capture channels: Mono
  Limits: 0 - 40
  Mono: 40 [100%] Playback [on]
Simple mixer control 'DAC PA OUTPUT Stage',0
  Capabilities: pswitch pswitch-joined
  Playback channels: Mono
  Mono: Playback [on]
Simple mixer control 'Dummy earphone detect method',0
  Capabilities: pswitch pswitch-joined
  Playback channels: Mono
  Mono: Playback [off]
Simple mixer control 'Dummy earphone gain',0
  Capabilities: volume
  Playback channels: Front Left - Front Right
  Capture channels: Front Left - Front Right
  Limits: 0 - 255
  Front Left: 190 [75%]
  Front Right: 190 [75%]
Simple mixer control 'Dummy earphone volume',0
  Capabilities: volume volume-joined
  Playback channels: Mono
  Capture channels: Mono
  Limits: 0 - 40
  Mono: 40 [100%]
Simple mixer control 'Dummy mic Gain',0
  Capabilities: volume
  Playback channels: Front Left - Front Right
  Capture channels: Front Left - Front Right
  Limits: 0 - 15
  Front Left: 15 [100%]
  Front Right: 15 [100%]
Simple mixer control 'Dummy mic mode',0
  Capabilities: pswitch pswitch-joined
  Playback channels: Mono
  Mono: Playback [on]
Simple mixer control 'Dummy mic num',0
  Capabilities: volume volume-joined
  Playback channels: Mono
  Capture channels: Mono
  Limits: 0 - 2
  Mono: 1 [50%]
Simple mixer control 'Dummy speaker gain',0
  Capabilities: volume
  Playback channels: Front Left - Front Right
  Capture channels: Front Left - Front Right
  Limits: 0 - 255
  Front Left: 170 [67%]
  Front Right: 170 [67%]
Simple mixer control 'Dummy speaker volume',0
  Capabilities: volume volume-joined
  Playback channels: Mono
  Capture channels: Mono
  Limits: 0 - 40
  Mono: 40 [100%]
Simple mixer control 'External MIC Power Voltage',0
  Capabilities: volume volume-joined
  Playback channels: Mono
  Capture channels: Mono
  Limits: 0 - 3
  Mono: 3 [100%]
Simple mixer control 'External Mic Power',0
  Capabilities: pswitch pswitch-joined
  Playback channels: Mono
  Mono: Playback [on]
Simple mixer control 'Internal Mic Power',0
  Capabilities: pswitch pswitch-joined
  Playback channels: Mono
  Mono: Playback [off]
Simple mixer control 'PA Output Swing Mux',0
  Capabilities: enum
  Items: 'Vpp2.4' 'Vpp1.6'
  Item0: 'Vpp1.6'
Simple mixer control 'audio output mode switch',0
  Capabilities: enum
  Items: 'i2s' 'hdmi' 'spdif'
  Item0: 'i2s'
Simple mixer control 'speaker on off switch',0
  Capabilities: pswitch pswitch-joined
  Playback channels: Mono
  Mono: Playback [off]
volumio@volumio:~$
volumio@volumio:~$ amixer -c0 scontrols
Simple mixer control 'Mic0 Mode Mux',0
Simple mixer control 'ADC0 Digital Gain control',0
Simple mixer control 'ADC0 Mux',0
Simple mixer control 'AMP1 Gain boost Range select',0
Simple mixer control 'AOUT FL FR Mixer FL FR',0
Simple mixer control 'AOUT FL FR Mixer FM',0
Simple mixer control 'AOUT FL FR Mixer MIC',0
Simple mixer control 'Adc0 Digital Gain',0
Simple mixer control 'Adc0 Gain',0
Simple mixer control 'DAC Digital FL FR',0
Simple mixer control 'DAC FL FR PLAYBACK',0
Simple mixer control 'DAC FL Gain',0
Simple mixer control 'DAC FR Gain',0
Simple mixer control 'DAC PA',0
Simple mixer control 'DAC PA OUTPUT Stage',0
Simple mixer control 'Dummy earphone detect method',0
Simple mixer control 'Dummy earphone gain',0
Simple mixer control 'Dummy earphone volume',0
Simple mixer control 'Dummy mic Gain',0
Simple mixer control 'Dummy mic mode',0
Simple mixer control 'Dummy mic num',0
Simple mixer control 'Dummy speaker gain',0
Simple mixer control 'Dummy speaker volume',0
Simple mixer control 'External MIC Power Voltage',0
Simple mixer control 'External Mic Power',0
Simple mixer control 'Internal Mic Power',0
Simple mixer control 'PA Output Swing Mux',0
Simple mixer control 'audio output mode switch',0
Simple mixer control 'speaker on off switch',0
volumio@volumio:~$ amixer -c1 scontrols
amixer: Mixer hw:1 load error: Broken pipe

hmm sorry, looks like this is indeed a hardware/driver issue for your DAC.
It registers the mixer, which is why Volumio tries to use it, but it isn’t really usable.

Thanks for the debugging and confirmation :slight_smile: