Thank you for your donation!


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


USB DAC and Hardware Volume
#1
On previous devices I've set up with only Shairport-Sync I'm able to put in set up my .config file to utilize my USB DAC's hardware volume control. The benefits are much faster volume changes and louder overall volume output.

I'd like to do the same for Moode, but when I go into MPD config, only the Software volume setting will output anything. I have to change the Alsa volume to 100 and then set the volume dial in the moode web interface up above 40 to get any sound output. 

Is there a way to use Hardware volume with the USB DAC and generally get volume configured better on my setup?

Code:
pi@moode:~ $ aplay -L
null                                                                                                                                          
   Discard all samples (playback) or generate zero samples (capture)                                                                          
btaplay_dmix                                                                                                                                  
alsaequal                                                                                                                                      
plug_alsaequal                                                                                                                                
btstream                                                                                                                                      
crossfeed                                                                                                                                      
plug_bs2b                                                                                                                                      
eqfa4p                                                                                                                                        
plug_eqfa4p                                                                                                                                    
invpolarity                                                                                                                                    
default:CARD=ALSA                                                                                                                              
   bcm2835 ALSA, bcm2835 ALSA                                                                                                                
   Default Audio Device                                                                                                                      
sysdefault:CARD=ALSA                                                                                                                          
   bcm2835 ALSA, bcm2835 ALSA                                                                                                                
   Default Audio Device                                                                                                                      
dmix:CARD=ALSA,DEV=0                                                                                                                          
   bcm2835 ALSA, bcm2835 ALSA                                                                                                                
   Direct sample mixing device                                                                                                                
dmix:CARD=ALSA,DEV=1                                                                                                                          
   bcm2835 ALSA, bcm2835 IEC958/HDMI                                                                                                          
   Direct sample mixing device                                                                                                                
dmix:CARD=ALSA,DEV=2                                                                                                                          
   bcm2835 ALSA, bcm2835 IEC958/HDMI1                                                                                                        
   Direct sample mixing device                                                                                                                
dsnoop:CARD=ALSA,DEV=0                                                                                                                        
   bcm2835 ALSA, bcm2835 ALSA                                                                                                                
   Direct sample snooping device                                                                                                              
dsnoop:CARD=ALSA,DEV=1                                                                                                                        
   bcm2835 ALSA, bcm2835 IEC958/HDMI                                                                                                          
   Direct sample snooping device                                                                                                              
dsnoop:CARD=ALSA,DEV=2                                                                                                                        
   bcm2835 ALSA, bcm2835 IEC958/HDMI1                                                                                                        
   Direct sample snooping device                                                                                                              
hw:CARD=ALSA,DEV=0                                                                                                                            
   bcm2835 ALSA, bcm2835 ALSA                                                                                                                
   Direct hardware device without any conversions                                                                                            
hw:CARD=ALSA,DEV=1                                                                                                                            
   bcm2835 ALSA, bcm2835 IEC958/HDMI                                                                                                          
   Direct hardware device without any conversions                                                                                            
hw:CARD=ALSA,DEV=2                                                                                                                            
   bcm2835 ALSA, bcm2835 IEC958/HDMI1                                                                                                        
   Direct hardware device without any conversions                                                                                            
plughw:CARD=ALSA,DEV=0                                                                                                                        
   bcm2835 ALSA, bcm2835 ALSA                                                                                                                
   Hardware device with all software conversions                                                                                              
plughw:CARD=ALSA,DEV=1                                                                                                                        
   bcm2835 ALSA, bcm2835 IEC958/HDMI                                                                                                          
   Hardware device with all software conversions                                                                                              
plughw:CARD=ALSA,DEV=2                                                                                                                        
   bcm2835 ALSA, bcm2835 IEC958/HDMI1                                                                                                        
   Hardware device with all software conversions                                                                                              
default:CARD=Device                                                                                                                            
   USB Audio Device, USB Audio                                                                                                                
   Default Audio Device                                                                                                                      
sysdefault:CARD=Device                                                                                                                        
   USB Audio Device, USB Audio                                                                                                                
   Default Audio Device                                                                                                                      
front:CARD=Device,DEV=0                                                                                                                        
   USB Audio Device, USB Audio                                                                                                                
   Front speakers                                                                                                                            
surround21:CARD=Device,DEV=0                                                                                                                  
   USB Audio Device, USB Audio                                                                                                                
   2.1 Surround output to Front and Subwoofer speakers                                                                                        
surround40:CARD=Device,DEV=0                                                                                                                  
   USB Audio Device, USB Audio                                                                                                                
   4.0 Surround output to Front and Rear speakers                                                                                            
surround41:CARD=Device,DEV=0                                                                                                                  
   USB Audio Device, USB Audio                                                                                                                
   4.1 Surround output to Front, Rear and Subwoofer speakers                                                                                  
surround50:CARD=Device,DEV=0                                                                                                                  
   USB Audio Device, USB Audio                                                                                                                
   5.0 Surround output to Front, Center and Rear speakers                                                                                    
surround51:CARD=Device,DEV=0                                                                                                                  
   USB Audio Device, USB Audio                                                                                                                
   5.1 Surround output to Front, Center, Rear and Subwoofer speakers                                                                          
surround71:CARD=Device,DEV=0                                                                                                                  
   USB Audio Device, USB Audio                                                                                                                
   7.1 Surround output to Front, Center, Side, Rear and Woofer speakers                                                                      
iec958:CARD=Device,DEV=0                                                                                                                      
   USB Audio Device, USB Audio                                                                                                                
   IEC958 (S/PDIF) Digital Audio Output                                                                                                      
dmix:CARD=Device,DEV=0                                                                                                                        
   USB Audio Device, USB Audio                                                                                                                
   Direct sample mixing device                                                                                                                
dsnoop:CARD=Device,DEV=0                                                                                                                      
   USB Audio Device, USB Audio                                                                                                                
   Direct sample snooping device                                                                                                              
hw:CARD=Device,DEV=0                                                                                                                          
   USB Audio Device, USB Audio                                                                                                                
   Direct hardware device without any conversions                                                                                            
plughw:CARD=Device,DEV=0                                                                                                                      
   USB Audio Device, USB Audio                                                                                                                
   Hardware device with all software conversions  


Code:
pi@moode:~ $ cat /proc/asound/cards
0 [ALSA           ]: bcm2835_alsa - bcm2835 ALSA                                                                                                                                  
                     bcm2835 ALSA                                                                                                                                                
1 [Device         ]: USB-Audio - USB Audio Device                                                                                                                                
                     GeneralPlus USB Audio Device at usb-3f980000.usb-1.2, full speed                                                                                            

Code:
pi@moode:~ $ aplay -l
**** List of PLAYBACK Hardware Devices ****                                                                                                                                        
card 0: ALSA [bcm2835 ALSA], device 0: bcm2835 ALSA [bcm2835 ALSA]                                                                                                                
 Subdevices: 7/7                                                                                                                                                                  
 Subdevice #0: subdevice #0                                                                                                                                                      
 Subdevice #1: subdevice #1                                                                                                                                                      
 Subdevice #2: subdevice #2                                                                                                                                                      
 Subdevice #3: subdevice #3                                                                                                                                                      
 Subdevice #4: subdevice #4                                                                                                                                                      
 Subdevice #5: subdevice #5                                                                                                                                                      
 Subdevice #6: subdevice #6                                                                                                                                                      
card 0: ALSA [bcm2835 ALSA], device 1: bcm2835 IEC958/HDMI [bcm2835 IEC958/HDMI]                                                                                                  
 Subdevices: 1/1                                                                                                                                                                  
 Subdevice #0: subdevice #0                                                                                                                                                      
card 0: ALSA [bcm2835 ALSA], device 2: bcm2835 IEC958/HDMI1 [bcm2835 IEC958/HDMI1]                                                                                                
 Subdevices: 1/1                                                                                                                                                                  
 Subdevice #0: subdevice #0                                                                                                                                                      
card 1: Device [USB Audio Device], device 0: USB Audio [USB Audio]                                                                                                                
 Subdevices: 0/1                                                                                                                                                                  
 Subdevice #0: subdevice #0                                                                                                                                                      

Thanks for any suggestions.
Reply
#2
Post the contents of Moode log and I'll have a look.


Code:
moodeutl -l
Enjoy the Music!
moodeaudio.org | Mastodon Feed | GitHub
Reply


Forum Jump: