Thank you for your donation!


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


Solved: No Sound after active rotary encoder
#1
Hi,

I am new to moode and everything works perfect, but when i activate the rotary encoder there is no sound. When i turn the knob, the volume on the homescreen changes, but still no sound...

After disable the rotary encoder and restart the system the sound is back again. I tried it several times, always the same.


System:
- Moode 7.5.0
- Raspberry 4
- Hifiberry Amp2


Thanks!
Reply
#2
Quick test with my Allo Katana DAC + ALPS rotary encoder and no issues.

Leave the encoder ON in Audio Config then reboot and post the Moode startup log.

Code:
moodeutl -l
Enjoy the Music!
moodeaudio.org | Mastodon Feed | GitHub
Reply
#3
thanks for the reply Tim!


Code:
pi@Radio:~ $ moodeutl -l                                                                                                                                                                                  
20211113 174902 worker: -- Start                                                                                                                                                                          
20211113 174902 worker: Successfully daemonized                                                                                                                                                          
20211113 174902 worker: Integrity check (passed)                                                                                                                                                          
20211113 174902 worker: File check (OK)                                                                                                                                                                  
20211113 174903 worker: Session vacuumed                                                                                                                                                                  
20211113 174903 worker: Session loaded                                                                                                                                                                    
20211113 174903 worker: Debug logging (OFF)                                                                                                                                                              
20211113 174903 worker: -- Audio debug                                                                                                                                                                    
20211113 174903 worker: ALSA cards: (0:sndrpihifiberry | 1:empty | 2:empty | 3:empty                                                                                                                      
20211113 174903 worker: MPD config: (0:HiFiBerry Amp2 | mixer:(Digital) | card:0)                                                                                                                        
20211113 174903 worker: ALSA mixer actual (Digital)                                                                                                                                                      
20211113 174903 worker: ALSA Digital volume set to (0%)                                                                                                                                                  
20211113 174903 worker: -- System                                                                                                                                                                        
20211113 174904 worker: Host     (Radio)                                                                                                                                                                  
20211113 174904 worker: moOde    (7.5.0 2021-11-09)                                                                                                                                                      
20211113 174904 worker: RaspiOS  (10.6)                                                                                                                                                                  
20211113 174904 worker: Kernel   (5.4.77-v7l+ #1371)                                                                                                                                                      
20211113 174904 worker: Platform (Pi-4B 1.4 4GB)                                                                                                                                                          
20211113 174904 worker: ARM arch (armv7l, 32-bit kernel)                                                                                                                                                  
20211113 174904 worker: MPD ver  (0.23.3_p0x3)                                                                                                                                                            
20211113 174904 worker: CPU gov  (ondemand)                                                                                                                                                              
20211113 174904 worker: USB boot not available                                                                                                                                                            
20211113 174904 worker: File system not expanded yet                                                                                                                                                      
20211113 174904 worker: HDMI port on                                                                                                                                                                      
20211113 174904 worker: -- Network                                                                                                                                                                        
20211113 174904 worker: IP address check timeout (90 secs)                                                                                                                                                
20211113 174904 worker: eth0 adapter exists                                                                                                                                                              
20211113 174904 worker: eth0 IP address check (No)                                                                                                                                                        
20211113 174905 worker: eth0 address not assigned                                                                                                                                                        
20211113 174905 worker: wlan0 adapter exists                                                                                                                                                              
20211113 174905 worker: wifi country (CH)                                                                                                                                                                
20211113 174905 worker: wlan0 trying SSID (bischko_2)                                                                                                                                                    
20211113 174905 worker: IP addr (192.168.1.135)                                                                                                                                                          
20211113 174905 worker: Netmask (255.255.255.0)                                                                                                                                                          
20211113 174905 worker: Gateway (192.168.1.1)                                                                                                                                                            
20211113 174905 worker: Pri DNS (192.168.1.115)                                                                                                                                                          
20211113 174905 worker: Domain  (None)                                                                                                                                                                    
20211113 174905 worker: Pi integrated wlan0 power save disabled                                                                                                                                          
20211113 174905 worker: -- Audio config                                                                                                                                                                  
20211113 174905 worker: MPD conf updated                                                                                                                                                                  
20211113 174905 worker: ALSA card number (0)                                                                                                                                                              
20211113 174905 worker: MPD audio output (HiFiBerry Amp2)                                                                                                                                                
20211113 174905 worker: Audio formats (S16_LE, S24_LE, S32_LE)                                                                                                                                            
20211113 174905 worker: ALSA mixer name (Digital)                                                                                                                                                        
20211113 174905 worker: MPD mixer type (software)                                                                                                                                                        
20211113 174905 worker: Hdwr volume controller exists                                                                                                                                                    
20211113 174905 worker: Max ALSA volume (100%)                                                                                                                                                            
20211113 174905 worker: ALSA output mode (Default: plughw)                                                                                                                                                
20211113 174905 worker: ALSA loopback (Off)                                                                                                                                                              
20211113 174905 worker: Reset renderer active flags                                                                                                                                                      
20211113 174905 worker: CamillaDSP (off)                                                                                                                                                                  
20211113 174905 worker: -- MPD startup                                                                                                                                                                    
20211113 174906 worker: MPD started                                                                                                                                                                      
20211113 174906 worker: MPD accepting connections                                                                                                                                                        
20211113 174906 worker: MPD output 1 ALSA Default (on)                                                                                                                                                    
20211113 174906 worker: MPD output 2 ALSA Bluetooth (off)                                                                                                                                                
20211113 174906 worker: MPD output 3 HTTP Server (off)                                                                                                                                                    
20211113 174906 worker: MPD crossfade (off)                                                                                                                                                              
20211113 174906 worker: MPD ignore CUE files (yes)                                                                                                                                                        
20211113 174906 worker: -- Feature availability                                                                                                                                                          
20211113 174906 worker: Source select (available)                                                                                                                                                        
20211113 174906 worker: Source select (source: MPD)                                                                                                                                                      
20211113 174906 worker: Source select (output: HiFiBerry Amp2)                                                                                                                                            
20211113 174906 worker: Bluetooth (available)                                                                                                                                                            
20211113 174906 worker: Airplay renderer (available)                                                                                                                                                      
20211113 174906 worker: Spotify renderer (available: started)                                                                                                                                            
20211113 174906 worker: Squeezelite (available)                                                                                                                                                          
20211113 174906 worker: RoonBridge renderer (not installed)                                                                                                                                              
20211113 174906 worker: Multiroom sender (available)                                                                                                                                                      
20211113 174906 worker: Multiroom receiver (available)                                                                                                                                                    
20211113 174906 worker: UPnP renderer (available)                                                                                                                                                        
20211113 174906 worker: DLNA server (available)                                                                                                                                                          
20211113 174906 worker: UPnP browser (available)                                                                                                                                                          
20211113 174906 worker: GPIO button handler (available: started)                                                                                                                                          
20211113 174906 worker: Stream recorder (n/a)                                                                                                                                                            
20211113 174906 worker: -- Music sources                                                                                                                                                                  
20211113 174906 worker: USB sources (none attached)                                                                                                                                                      
20211113 174906 worker: NAS and UPnP sources (none configured)                                                                                                                                            
20211113 174906 worker: -- Other                                                                                                                                                                          
20211113 174906 worker: Rotary encoder on (100 2 3 18 17)                                                                                                                                                
20211113 174906 worker: USB volume knob (Off)                                                                                                                                                            
20211113 174906 worker: Shellinabox SSH started                                                                                                                                                          
20211113 174906 worker: USB auto-mounter (udisks-glue)                                                                                                                                                    
20211113 174906 worker: LED0 (On)                                                                                                                                                                        
20211113 174906 worker: LED1 (On)                                                                                                                                                                        
20211113 174906 worker: Saved MPD vol level (0)                                                                                                                                                          
20211113 174906 worker: Preamp volume level (0)                                                                                                                                                          
20211113 174907 worker: MPD volume level (8) restored                                                                                                                                                    
20211113 174907 worker: ALSA Digital volume (100%)                                                                                                                                                        
20211113 174907 worker: Auto-play (Off)                                                                                                                                                                  
20211113 174907 worker: Maintenance interval (3 hours)                                                                                                                                                    
20211113 174907 worker: Screen saver activation (Never)                                                                                                                                                  
20211113 174907 worker: Session permissions (OK)                                                                                                                                                          
20211113 174907 worker: Watchdog started                                                                                                                                                                  
20211113 174907 worker: Ready                                                                                                                                                                            
pi@Radio:~ $
Reply
#4
No errors in the log but the log does show both the rotary encoder and GPIO button handler are ON. The encoder uses GPIO pins and it's not evident what the GPIO button handler is controlling but possibly there is some sort of conflict. Also I see that the audio device supports hardware volume but MPD is still set to software volume. That won't matter to the rotary encoder driver but generally its preferable to use hardware volume if the audio device supports it.
Enjoy the Music!
moodeaudio.org | Mastodon Feed | GitHub
Reply
#5
GPIO is activ but no button is configured, so I turned it off and set MPD mixer to hardware, there ist still no sound after reboot. I have also already tried to reinstall the whole system and with another raspberry, unfortunately without success
Reply
#6
Problem fixed, i change de GPIO for the CLK and DT from 18/17 to standard 23/24, reboot and it works, whatever the reason Smile

Thanks!
Reply
#7
(11-14-2021, 06:23 AM)martene Wrote: Problem fixed, i change de GPIO for the CLK and DT from 18/17 to standard 23/24, reboot and it works, whatever the reason Smile

Thanks!

https://www.hifiberry.com/docs/hardware/...ry-boards/ says

Quote:HIFIBERRY AMP2

GPIO2-3 (pins 3 and 5) are used by our products for configuration. If you are experienced with I2C, you might add other slave devices. If you a a novice, we don’t recommend this at all.

GPIOs 18-21 (pins 12, 35, 38 and 40) are used for the sound interface. You can’t use these for any other purpose.

GPIO4 is used to control the MUTE function of the power stage. Pulling it to low will mute the output.

 Regards,
Kent
Reply


Forum Jump: