Thank you for your donation!


Cloudsmith graciously provides open-source package management and distribution for our project.


Problem: Moode Player and Hifiberry DAC PRO 2 no hardware volume control
#1
Good time of day,
I have been enjoying the Moode player and it was quite reliable. I was using it with the external DAC and integrated amp, but my wife got tired of amp remote and want to control the volume through Moode interface. I bought Hifiberry DAC Pro 2. I asked Hifiberry guys and they confirmed that DAC2 does have the hardware volume control but they could not answer why Moode player does not allow the HW volume control. Just upgraded to 9.0.5 and now I see Hardware option in the drop down for volume control and the volume control circle does appear but changes that I make on the volume circle do not change the volume, zero effect on volume.
I suspect I am missing a config somewhere but cannot find an answer.

Appreciate any help on this!
Reply
#2
To troubleshoot do the following:

1. Reboot and then post the contents of the startup log.

The log can be viewed via the SSH command moodeutl -l or downloaded via the Logs section in System Config, or via Menu, System info from  any of the Config screens. The startup log will be at the end of System info output.

2. Post the output from the command below using the ALSA card number printed in the Audio configuration section of the startup log. Its the number in the line like "20240725 212218 worker: Audio device:  0:Allo Boss DAC"

Code:
amixer -c CARD_NUMBER
Enjoy the Music!
moodeaudio.org | Mastodon Feed | GitHub
Reply
#3
@Tim Curtis Thank you for replying.

I had ran these commands:
Code:
mixer -c 2
mixer -c 2:snd_rpi_hifiberry_dacplus
mixer -c snd_rpi_hifiberry_dacplus
mixer -c 20240726 104041
mixer -c 104041
always the same response "-bash: mixer: command not found"

Log posted:

Code:
20240726 104029 worker: --
20240726 104030 worker: -- Start moOde 9 series
20240726 104030 worker: --
20240726 104030 worker: Successfully daemonized
20240726 104030 worker: Wait for Linux startup
20240726 104036 worker: Linux startup complete
20240726 104036 worker: Boot config is ok
20240726 104036 worker: Session loaded
20240726 104038 worker: Package locks applied
20240726 104039 worker: File check complete
20240726 104039 worker: Debug logging off
20240726 104039 worker: --
20240726 104039 worker: -- System
20240726 104039 worker: --
20240726 104040 worker: Host name:     moodedesktop
20240726 104040 worker: RPi model:     Pi-4B 1.5 4GB
20240726 104040 worker: moOde release: 9.0.5 2024-07-24
20240726 104040 worker: RaspiOS:       12.6 Bookworm 64-bit
20240726 104040 worker: Linux Kernel:  6.6.31 64-bit
20240726 104040 worker: MPD version:   0.23.14
20240726 104040 worker: User id:      
20240726 104040 worker: Home folder:  
20240726 104040 worker: Time zone:     America/New_York
20240726 104040 worker: Kbd layout:    us
20240726 104040 worker: HDMI ports(s): on
20240726 104040 worker: HDMI-CEC:      off
20240726 104040 worker: Sys LED0:      on
20240726 104040 worker: Sys LED1:      on
20240726 104040 worker: Reduce power:  n/a
20240726 104040 worker: CPU governor:  ondemand
20240726 104040 worker: Integ audio:   vc4-kms-v3d
20240726 104040 worker: --
20240726 104040 worker: -- Network
20240726 104040 worker: --
20240726 104040 worker: Eth0
20240726 104040 worker: Ethernet: adapter exists
20240726 104040 worker: Ethernet: timeout off
20240726 104040 worker: Ethernet: method  dhcp
20240726 104040 worker: Ethernet: address 192.168.
20240726 104040 worker: Ethernet: netmask 255.255.255.0
20240726 104040 worker: Ethernet: gateway 192.168.
20240726 104040 worker: Ethernet: pri DNS 192.168.
20240726 104040 worker: Ethernet: domain  none found
20240726 104040 worker: Wlan0
20240726 104040 worker: Wireless: adapter exists
20240726 104040 worker: Wireless: country US
20240726 104040 worker: Wireless: SSID    None
20240726 104040 worker: Wireless: other   None
20240726 104040 worker: --
20240726 104040 worker: -- File sharing
20240726 104040 worker: --
20240726 104040 worker: SMB file sharing:  off
20240726 104040 worker: NFS file sharing:  off
20240726 104040 worker: DLNA file sharing: off
20240726 104040 worker: --
20240726 104040 worker: -- Special configs
20240726 104040 worker: --
20240726 104040 worker: Plexamp:          not installed
20240726 104040 worker: RoonBridge:       not installed
20240726 104040 worker: Allo Piano 2.1:   not detected
20240726 104040 worker: Allo Boss 2:      not detected, OLED script ok
20240726 104040 worker: IQaudIO AMP*:     not detected
20240726 104040 worker: --
20240726 104040 worker: -- ALSA debug
20240726 104040 worker: --
20240726 104040 worker: Cards:  0:vc4hdmi0        1:vc4hdmi1        2:sndrpihifiberry 3:empty          
20240726 104040 worker:         4:empty           5:empty           6:empty           7:empty          
20240726 104041 worker: Mixers: 0:none            1:none            2:(Digital)       3:none            
20240726 104041 worker:         4:none            5:none            6:none            7:none            
20240726 104041 worker: --
20240726 104041 worker: -- Audio configuration
20240726 104041 worker: --
20240726 104041 worker: Audio device:  2:snd_rpi_hifiberry_dacplus
20240726 104041 worker: ALSA card:     has not been reassigned
20240726 104041 worker: MPD config:    update not needed
20240726 104041 worker: ALSA output:   USB
20240726 104041 worker: ALSA mode:     Default (plughw)
20240726 104041 worker: ALSA mixer     Headphone
20240726 104041 worker: ALSA volume:   0% (-59.50dB)
20240726 104041 worker: ALSA maxvol:   100%
20240726 104041 worker: ALSA loopback: off
20240726 104041 worker: MPD mixer      Hardware
20240726 104041 worker: Audio formats: S16_LE, S24_LE, S32_LE
20240726 104041 worker: CamillaDSP:    off
20240726 104041 worker: CDSP volume:   0dB
20240726 104041 worker: CDSP volrange: 60dB
20240726 104041 worker: --
20240726 104041 worker: -- MPD startup
20240726 104041 worker: --
20240726 104042 worker: MPD service:        started
20240726 104042 worker: MPD port 6600:      accepting connections
20240726 104042 worker: MPD ALSA Default:   on
20240726 104042 worker: MPD ALSA Bluetooth: off
20240726 104042 worker: MPD HTTP Server:    off
20240726 104042 worker: MPD volume:         0
20240726 104042 worker: Saved MPD vol:      -1
20240726 104042 worker: Saved SRC vol:      0
20240726 104042 worker: MPD crossfade:      off
20240726 104042 worker: MPD ignore CUE:     no
20240726 104042 worker: MPD CDSP volsync:   off
20240726 104042 worker: --
20240726 104042 worker: -- Music sources
20240726 104042 worker: --
20240726 104042 worker: USB drives:     none
20240726 104042 worker: NVMe drives:    none
20240726 104042 worker: NAS source:     synology248x (nfs)
20240726 104042 worker: --
20240726 104042 worker: -- Feature availability
20240726 104042 worker: --
20240726 104042 worker: Input select:    available, Source: MPD, Output: snd_rpi_hifiberry_dacplus
20240726 104042 worker: Bluetooth:       available, PIN: None, ALSA/CDSP maxvol: 100%/0dB, ALSA outmode: Standard
20240726 104042 worker: AirPlay:         available
20240726 104042 worker: Spotify Connect: available
20240726 104042 worker: Squeezelite:     available
20240726 104042 worker: UPnP client:     available
20240726 104042 worker: Plexamp:         not installed, ALSA maxvol: 100%
20240726 104042 worker: RoonBridge:      not installed
20240726 104042 worker: Multiroom:       available
20240726 104042 worker: GPIO buttons:    available
20240726 104042 worker: HTTPS mode:      available
20240726 104042 worker: Stream recorder: n/a
20240726 104042 worker: --
20240726 104042 worker: -- Peripherals
20240726 104042 worker: --
20240726 104044 worker: Local display:   off
20240726 104044 worker: HDMI 4K 60Hz:    off
20240726 104044 worker: On-screen kbd:   off
20240726 104044 worker: Rotary encoder:  off
20240726 104044 worker: USB volume knob: off
20240726 104044 worker: LCD updater:     off
20240726 104044 worker: --
20240726 104044 worker: -- Miscellaneous
20240726 104044 worker: --
20240726 104044 worker: Software update:   Automatic check off
20240726 104044 worker: Auto-CoverView:    off
20240726 104044 worker: CoverView timeout: Never
20240726 104044 worker: Auto-shuffle:      off
20240726 104044 worker: Auto-play:         off
20240726 104044 worker: Web SSH server:    off
20240726 104044 worker: Maintenance task:  360 mins
20240726 104044 worker: Current view:      reset to Playback
20240726 104044 worker: Active flags:      all false
20240726 104044 worker: Reset flags:       skipped
20240726 104044 worker: Session check:     ok
20240726 104044 worker: --
20240726 104044 worker: -- Startup complete
20240726 104044 worker: --
20240726 104044 worker: Mount monitor:    started
20240726 104044 worker: Radio monitor:    off
20240726 104044 worker: Watchdog monitor: started
20240726 104044 worker: Responsiveness:   Default
20240726 104044 worker: Ready
Reply
#4
I ran
alsamixer -c 2

got this output


Attached Files Thumbnail(s)
   
Reply
#5
Oops an auto-correct mistake :-0

The command is
Code:
amixer -c2
Enjoy the Music!
moodeaudio.org | Mastodon Feed | GitHub
Reply
#6
(07-26-2024, 03:42 PM)Tim Curtis Wrote: Oops an auto-correct mistake :-0

The command is
Code:
amixer -c2

Roger that here is the output:

Simple mixer control 'Headphone',0
  Capabilities: pvolume pvolume-joined
  Playback channels: Mono
  Limits: Playback 0 - 63
  Mono: Playback 27 [43%] [-15.16dB]
Simple mixer control 'DSP Program',0
  Capabilities: enum
  Items: 'FIR interpolation with de-emphasis' 'Low latency IIR with de-emphasis' 'High attenuation with de-emphasis' 'Fixed process flow' 'Ringing-less low latency FIR'
  Item0: 'FIR interpolation with de-emphasis'
Simple mixer control 'Analogue',0
  Capabilities: pvolume
  Playback channels: Front Left - Front Right
  Limits: Playback 0 - 1
  Mono:
  Front Left: Playback 1 [100%] [0.00dB]
  Front Right: Playback 1 [100%] [0.00dB]
Simple mixer control 'Analogue Playback Boost',0
  Capabilities: volume
  Playback channels: Front Left - Front Right
  Capture channels: Front Left - Front Right
  Limits: 0 - 1
  Front Left: 0 [0%] [0.00dB]
  Front Right: 0 [0%] [0.00dB]
Simple mixer control 'Auto Mute',0
  Capabilities: pswitch
  Playback channels: Front Left - Front Right
  Mono:
  Front Left: Playback [on]
  Front Right: Playback [on]
Simple mixer control 'Auto Mute Mono',0
  Capabilities: pswitch pswitch-joined
  Playback channels: Mono
  Mono: Playback [on]
Simple mixer control 'Auto Mute Time Left',0
  Capabilities: enum
  Items: '21ms' '106ms' '213ms' '533ms' '1.07s' '2.13s' '5.33s' '10.66s'
  Item0: '21ms'
Simple mixer control 'Auto Mute Time Right',0
  Capabilities: enum
  Items: '21ms' '106ms' '213ms' '533ms' '1.07s' '2.13s' '5.33s' '10.66s'
  Item0: '21ms'
Simple mixer control 'Clock Missing Period',0
  Capabilities: enum
  Items: '1s' '2s' '3s' '4s' '5s' '6s' '7s' '8s'
  Item0: '1s'
Simple mixer control 'Deemphasis',0
  Capabilities: pswitch pswitch-joined
  Playback channels: Mono
  Mono: Playback [on]
Simple mixer control 'Digital',0
  Capabilities: pvolume pswitch
  Playback channels: Front Left - Front Right
  Limits: Playback 0 - 207
  Mono:
  Front Left: Playback 126 [61%] [-40.50dB] [on]
  Front Right: Playback 126 [61%] [-40.50dB] [on]
Simple mixer control 'Max Overclock DAC',0
  Capabilities: volume volume-joined
  Playback channels: Mono
  Capture channels: Mono
  Limits: 0 - 40
  Mono: 0 [0%]
Simple mixer control 'Max Overclock DSP',0
  Capabilities: volume volume-joined
  Playback channels: Mono
  Capture channels: Mono
  Limits: 0 - 40
  Mono: 0 [0%]
Simple mixer control 'Max Overclock PLL',0
  Capabilities: volume volume-joined
  Playback channels: Mono
  Capture channels: Mono
  Limits: 0 - 20
  Mono: 0 [0%]
Simple mixer control 'Volume Ramp Down Emergency Rate',0
  Capabilities: enum
  Items: '1 sample/update' '2 samples/update' '4 samples/update' 'Immediate'
  Item0: '1 sample/update'
Simple mixer control 'Volume Ramp Down Emergency Step',0
  Capabilities: enum
  Items: '4dB/step' '2dB/step' '1dB/step' '0.5dB/step'
  Item0: '4dB/step'
Simple mixer control 'Volume Ramp Down Rate',0
  Capabilities: enum
  Items: '1 sample/update' '2 samples/update' '4 samples/update' 'Immediate'
  Item0: '1 sample/update'
Simple mixer control 'Volume Ramp Down Step',0
  Capabilities: enum
  Items: '4dB/step' '2dB/step' '1dB/step' '0.5dB/step'
  Item0: '1dB/step'
Simple mixer control 'Volume Ramp Up Rate',0
  Capabilities: enum
  Items: '1 sample/update' '2 samples/update' '4 samples/update' 'Immediate'
  Item0: '1 sample/update'
Simple mixer control 'Volume Ramp Up Step',0
  Capabilities: enum
  Items: '4dB/step' '2dB/step' '1dB/step' '0.5dB/step'
  Item0: '1dB/step'
Reply
#7
The startup log shows a hifiberry driver (sndrpihifiberry) and what I think is the correct mixer name (Digital) for this device. Unfortunately hifiberry doesn't publish this info about their devices, or if they do I can't easily find it.

Code:
20240726 104040 worker: Cards:  0:vc4hdmi0        1:vc4hdmi1        2:sndrpihifiberry 3:empty          
20240726 104040 worker:         4:empty           5:empty           6:empty           7:empty          
20240726 104041 worker: Mixers: 0:none            1:none            2:(Digital)      

The log also shows some misconfiguration. The device looks correct (a hifiberry I2S device) but the ALSA output is USB and the mixer is Headphone.

Code:
20240726 104041 worker: Audio device:  2:snd_rpi_hifiberry_dacplus

20240726 104041 worker: ALSA output:   USB

20240726 104041 worker: ALSA mixer     Headphone

I'm at a loss as to how this can happen.
Enjoy the Music!
moodeaudio.org | Mastodon Feed | GitHub
Reply
#8
(07-26-2024, 04:06 PM)Tim Curtis Wrote: The startup log shows a hifiberry driver (sndrpihifiberry) and what I think is the correct mixer name (Digital) for this device. Unfortunately hifiberry doesn't publish this info about their devices, or if they do I can't easily find it.

Code:
20240726 104040 worker: Cards:  0:vc4hdmi0        1:vc4hdmi1        2:sndrpihifiberry 3:empty          
20240726 104040 worker:         4:empty           5:empty           6:empty           7:empty          
20240726 104041 worker: Mixers: 0:none            1:none            2:(Digital)      

The log also shows some misconfiguration. The device looks correct (a hifiberry I2S device) but the ALSA output is USB and the mixer is Headphone.

Code:
20240726 104041 worker: Audio device:  2:snd_rpi_hifiberry_dacplus

20240726 104041 worker: ALSA output:   USB

20240726 104041 worker: ALSA mixer     Headphone

I'm at a loss as to how this can happen.
I have activated DT overlay and selected Hifiberry DAC Pro from it. Now hw volume control works but what DT overlay does?
Reply
#9
I ran a quick test with an old dac+pro setting DT overlay to hifiberry-dacplus-pro and I'm not able to repro the broken config reported in an earlier post.

   

Code:
20240727 081204 worker: --
20240727 081204 worker: -- ALSA debug
20240727 081204 worker: --
20240727 081204 worker: Cards:  0:sndrpihifiberry 1:vc4hdmi0        2:vc4hdmi1        3:empty          
20240727 081204 worker:         4:empty           5:empty           6:empty           7:empty          
20240727 081204 worker: Mixers: 0:(Digital)       1:none            2:none            3:none            
20240727 081204 worker:         4:none            5:none            6:none            7:none            
20240727 081204 worker: --
20240727 081204 worker: -- Audio configuration
20240727 081204 worker: --
20240727 081204 worker: Audio device:  2:snd_rpi_hifiberry_dacplus
20240727 081204 worker: ALSA card:     has been reassigned to 0 from 2
20240727 081205 worker: MPD config:    updated
20240727 081205 worker: ALSA output:   I2S
20240727 081205 worker: ALSA mode:     Default (plughw)
20240727 081205 worker: ALSA mixer     Digital
20240727 081205 worker: ALSA volume:   100% (0.00dB)
20240727 081205 worker: ALSA maxvol:   100%
20240727 081205 worker: ALSA loopback: off
20240727 081205 worker: MPD mixer      Software
20240727 081205 worker: Audio formats: S16_LE, S24_LE, S32_LE
20240727 081205 worker: CamillaDSP:    off
20240727 081205 worker: CDSP volume:   0dB
20240727 081205 worker: CDSP volrange: 60dB
Enjoy the Music!
moodeaudio.org | Mastodon Feed | GitHub
Reply


Forum Jump: