Thank you for your donation!


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


Problem: Vollume via rotary slow response
#1
Hardware:
Raspberry pi 4 8 gb.
Hifiberry amp2
Rotary at pin 23 and 24.

Moodesetings:
Volume mixer: software
Rorary encoder 110 4 4 24 23    : tried many options.

Hi all, maybe someone has a solution for the response of my rotary what i use to control the audio volume.
The problem is that the response is very slow .

Only when i set it to hardware control than it works responsive.

Please advice, rg Frank


Code:
S Y S T E M   P A R A M E T E R S

moOde release = 7.2.1 2021-05-06
RaspiOS = 10.6
Linux kernel = 5.4.77-v7l+ #1371
Platform = Pi-4B 1.4 2GB
Architecture = armv7l (32-bit)
System uptime = up 9 hours, 43 minutes
Timezone = Europe/Amsterdam
Current time = 2021-12-18 18:43:42

Host name = Woonkamer
Ethernet address = unassigned
Ethernet MAC = e4:5f:01:10:51:bb
WLAN address = 192.168.178.202
WLAN MAC = e4:5f:01:10:51:bc
WLAN country = NL

SoC identifier = bcm2711
Core count = 4
Kernel timer freq = 100 Hz
SDCard freq = 50 MHz
USB boot = not available
Warranty = OK

Root size = 3.8G
Root used = 78%
Root available = 829M
Root expand = not expanded
Memory free = 1562 MB
Memory used = 105 MB
SoC temperature = 60.9°C
Throttled bitmask = 0x0
Throttled text = No throttling has occurred

CPU governor = ondemand
Onboard WiFi = On
Onboard BT = Off
HDMI output = Off
LED state = 0,0
Eth addr wait = Off
USB auto-mounter = udisks-glue
Max USB current = Off
SSH term server = On

PHP-FPM version = 7.3.19
NGINX version = 1.14.2
SQLite3 version = 3.27.2
Hostapd version = 2.8-devel
WiringPi version = 2.50
RPi.GPIO version = 0.7.0

A U D I O   P A R A M E T E R S

Audio device = HiFiBerry Amp2
Interface = I2S
Mixer name = Digital
Hardware mixer = Yes
Supported formats = S16_LE, S24_LE, S32_LE
ALSA max volume = 95
ALSA loopback = Off
MPD max volume = 100
Volume step limit = 2
Display dB volume = Off
Audio source = Local
Output device = Local
Resume MPD = No
Volume knob = 0
Volume mute = Unmuted
Saved MPD vol = 0
Preamp volume = 0
ALSA version = 1.1.8-1+rpt1
SoX version = 0.1.2-3

Bluetooth controller = Off
Pairing agent = Off
Airplay receiver = On
Spotify receiver = On
Squeezelite = Off
RoonBridge = Not installed
UPnP client = Off
DLNA server = Off
GPIO button handler = Off
UPnP browser = Off

Auto-shuffle = Off
Ashuffle mode = Track
Ashuffle filter = None
Autoplay = On
Rotary encoder = On
Encoder params = 110 4 4 24 23
USB volume knob = Off
Polarity inversion = Off
Crossfeed = Off
Crossfade = Off
Parametric EQ = Off
Graphic EQ = Hi-Lo Boost Plus
CamillaDSP = off
MPD httpd = Off
Ignore CUE files = Yes

P R E F E R E N C E S

Appearance
----------------------
Theme = Default
Accent color = Emerald
Alpha blend = 1.0
Adaptive background = No
Background image = No
Cover backdrop = No
Cover blur = 20px
Cover scale = 1.25
Renderer backdrop = No
Font size = Normal

Playback
----------------------
Show Queue thumbs = Yes
Show extra metadata = album,genre,track,disc,date,composer,conductor,performer,encoded
Search site = Google
Playback history log = No

Library
----------------------
One touch action = Play
Albumview sort order = by Artist
Tagview sort order = by Artist
Recently added = 1 Month
Show sample rate = No
Cover search pri = Embedded cover
Pixel ratio = 1
Thumbnail resolution = Auto
Thumbnail columns = 6/2 (Default)

Library (Advanced)
----------------------
Tag view artist = Artist
Album key = Album@Artist (Default)
Include comment tag = No
Library filter = full_lib
Library filter str =
Ignore articles = a,an,the
Show tagview genres = Yes
Show tagview covers = Yes
Ellipsis limited text = No
UTF8 character filter = No

CoverView
----------------------
Automatic display = Never
Backdrop style = Gradient (Linear)

R A D I O   M A N A G E R   S E T T I N G S

Sort tag = Name
Group method = No grouping
Show moOde stations = No action
Show other stations = No action

M P D   S E T T I N G S

Version = 0.22.6_p0x3
Volume mixer = software
ALSA device = hw:0
SoX resampling = disabled
Selective resampling = disabled
SoX quality = high
SoX multithreading = off
DSD over PCM (DoP) = no
Replaygain = off
Replaygain preamp = 0
Volume normalization = No
Audio buffer = 4 (MB)
Output buffer size = 128 (MB)
Max playlist items = 16384
Input cache = Disabled

B L U E T O O T H   S E T T I N G S

Bluetooth ver = 5.50
Bluealsa ver = v3.0.0
Speaker sharing = No
Resume MPD = No
PCM buffer time = 500000 (µs)

A I R P L A Y   S E T T I N G S

Version = 3.3.6
Friendly name = Woonkamer
ALSA device = alsaequal
Interpolation = soxr
Output bit depth = S16
Output sample rate = 44100
Session interruption = no
Session timeout = 120 (ms)
Latency offset = 0.0 (secs)
Audio buffer = 0.2 (secs)
Resume MPD = Yes

S P O T I F Y   S E T T I N G S

Friendly name = Woonkamer
ALSA device = alsaequal
Bit rate = 320
Initial volume = 20
Volume curve = log
Volume normalization = No
Normalization pregain = 3
Autoplay = Yes
Resume MPD = Yes

S Q U E E Z E L I T E   S E T T I N G S

Version = 1.9.7-1270 "DSD/SRC enabled"
Friendly name = Moode
ALSA device = hw:0
ALSA params = 80:4::1
Output buffers = 40000:100000
Task priority = 45
Codec list = flac,pcm,mp3,ogg,aac,alac,dsd
Other options = -W -D 500 -R E -S /var/local
Resume MPD = No

L O C A L   D I S P L A Y   S E T T I N G S

Local UI display = Off
Mouse cursor = Off
Screen blank = 600 Secs
Wake display on play = Off
Brightness = 255
Pixel aspect ratio = Default
Rotate screen = 0 Deg

M O O D E   S T A R T U P   L O G

20211218 090019 worker: -- Start
20211218 090019 worker: Successfully daemonized
20211218 090019 worker: Integrity check (passed)
20211218 090020 worker: File check (OK)
20211218 090021 worker: Session vacuumed
20211218 090021 worker: Session loaded
20211218 090021 worker: Debug logging (OFF)
20211218 090021 worker: -- Audio debug
20211218 090021 worker: ALSA cards: (0:sndrpihifiberry | 1:empty | 2:empty | 3:empty
20211218 090021 worker: MPD config: (0:HiFiBerry Amp2 | mixer:(Digital) | card:0)
20211218 090021 worker: ALSA mixer actual (Digital)
20211218 090021 worker: ALSA Digital volume set to (0%)
20211218 090021 worker: -- System
20211218 090022 worker: Host     (Woonkamer)
20211218 090022 worker: moOde    (7.2.1 2021-05-06)
20211218 090022 worker: RaspiOS  (10.6)
20211218 090022 worker: Kernel   (5.4.77-v7l+ #1371)
20211218 090022 worker: Platform (Pi-4B 1.4 2GB)
20211218 090022 worker: ARM arch (armv7l, 32-bit kernel)
20211218 090022 worker: MPD ver  (0.22.6_p0x3)
20211218 090022 worker: CPU gov  (ondemand)
20211218 090022 worker: USB boot not available
20211218 090022 worker: File system not expanded yet
20211218 090022 worker: HDMI port off
20211218 090022 worker: -- Network
20211218 090022 worker: eth0 exists
20211218 090022 worker: eth0 address not assigned
20211218 090022 worker: wlan0 exists
20211218 090022 worker: wifi country (NL)
20211218 090022 worker: wlan0 trying SSID (verdonk)
20211218 090022 worker: IP addr (192.168.178.202)
20211218 090022 worker: Netmask (255.255.255.0)
20211218 090022 worker: Gateway (192.168.178.1)
20211218 090022 worker: Pri DNS (84.116.46.23)
20211218 090022 worker: Domain  (home)
20211218 090022 worker: Pi integrated wlan0 power save disabled
20211218 090022 worker: -- Audio config
20211218 090023 worker: MPD conf updated
20211218 090023 worker: ALSA card number (0)
20211218 090023 worker: MPD audio output (HiFiBerry Amp2)
20211218 090023 worker: Audio formats (S16_LE, S24_LE, S32_LE)
20211218 090023 worker: ALSA mixer name (Digital)
20211218 090023 worker: MPD volume control (software)
20211218 090023 worker: Hdwr volume controller exists
20211218 090023 worker: Max ALSA volume (95%)
20211218 090023 worker: ALSA loopback (Off)
20211218 090023 worker: Reset renderer active flags
20211218 090023 worker: CamillaDSP (off)
20211218 090023 worker: -- MPD startup
20211218 090023 worker: MPD started
20211218 090024 worker: MPD accepting connections
20211218 090024 worker: MPD output 1 ALSA Default (on)
20211218 090024 worker: MPD output 2 ALSA Bluetooth (off)
20211218 090024 worker: MPD output 3 HTTP Server (off)
20211218 090024 worker: MPD crossfade (off)
20211218 090024 worker: MPD ignore CUE files (yes)
20211218 090024 worker: -- Feature availability
20211218 090024 worker: Source select (available)
20211218 090024 worker: Source select (source: MPD)
20211218 090024 worker: Source select (output: HiFiBerry Amp2)
20211218 090024 worker: Bluetooth (available)
20211218 090024 worker: Airplay renderer (available: started)
20211218 090024 worker: Spotify renderer (available: started)
20211218 090024 worker: Squeezelite (available)
20211218 090024 worker: RoonBridge renderer (not installed)
20211218 090024 worker: UPnP renderer (available)
20211218 090024 worker: DLNA server (available)
20211218 090024 worker: UPnP browser (available)
20211218 090024 worker: GPIO button handler (available)
20211218 090024 worker: Stream recorder (n/a)
20211218 090024 worker: -- Music sources
20211218 090024 worker: USB sources (none attached)
20211218 090024 worker: NAS and UPnP sources (none configured)
20211218 090024 worker: -- Other
20211218 090024 worker: Rotary encoder on (110 4 4 24 23)
20211218 090024 worker: USB volume knob (Off)
20211218 090024 worker: LCD updater engine started
20211218 090024 worker: Shellinabox SSH started
20211218 090024 worker: USB auto-mounter (udisks-glue)
20211218 090024 worker: LED0 (Off)
20211218 090024 worker: LED1 (Off)
20211218 090024 worker: Saved MPD vol level (0)
20211218 090024 worker: Preamp volume level (0)
20211218 090024 worker: MPD volume level (0) restored
20211218 090024 worker: ALSA Digital volume (95%)
20211218 090024 worker: Auto-play (On)
20211218 090024 worker: Auto-playing id (3)
20211218 090024 worker: Maintenance interval (3 hours)
20211218 090024 worker: Screen saver activation (Never)
20211218 090024 worker: Session permissions (OK)
20211218 090024 worker: Watchdog started
20211218 090024 worker: Ready
Reply
#2
Just set MPD to use Hardware volume.
Enjoy the Music!
moodeaudio.org | Mastodon Feed | GitHub
Reply
#3
Hi Thanks for the quick response.
Just set to hardware control.
Now when i use spotify connect and turn the rotary then spotify gives no sound at all.
while spotify client is still connected and playing.

Many thanks frank
Reply
#4
Rotary encoder feature is for MPD only. Volume for Spotify is controlled at the client Spotify app on your phone, tablet, etc.
Enjoy the Music!
moodeaudio.org | Mastodon Feed | GitHub
Reply
#5
I know that spotify is controlled by other devices,
so it is normal that spotify stops when the rotary is turned.

Many thanks again Tim.
Reply
#6
I have no idea why Spotify playback would stop, the rotary encoder driver just sends volume commands to MPD.
Enjoy the Music!
moodeaudio.org | Mastodon Feed | GitHub
Reply


Forum Jump: