Unable to adjust balance via alsa - Printable Version +- Moode Forum (https://moodeaudio.org/forum) +-- Forum: moOde audio player (https://moodeaudio.org/forum/forumdisplay.php?fid=3) +--- Forum: Support (https://moodeaudio.org/forum/forumdisplay.php?fid=7) +--- Thread: Unable to adjust balance via alsa (/showthread.php?tid=4022) |
Unable to adjust balance via alsa - PieEater - 07-14-2021 Hi I think my problem is going to be related to my external DAC which is an ifi Zen DAC V2. If I make changes to the volume in Alsamixer or manually via amixer commands the changes are ignored, I can see that the changes have been applied on the software level but it's like my DAC is overriding them. I am definitely selecting the correct device in Alsamixer and amixer, does anyone have any suggestions? ifi state that they are not issuing Linux drivers which may be part of the issue. I just need to adjust the balance on my left speaker slightly, I have managed to figure out how to configure Camilla DSP with a negative gain filter which works OK but I would prefer to avoid unnecessary processing if at all possible. Thanks in advance. RE: Unable to adjust balance via alsa - DRONE7 - 07-15-2021 What do you mean by "changes are ignored" ? Can you make audible changes, but these are lost on subsequent reboots, or are there no audible results when making adjustments ? From a quick look your DAC is USB compliant via the xmos chip so should work. When you run 'alsamixer' what card-name do you select for adjustment ? RE: Unable to adjust balance via alsa - PieEater - 07-15-2021 (07-15-2021, 02:15 AM)DRONE7 Wrote: What do you mean by "changes are ignored" ? There are no audible results when making changes !! I can reduce all volume levels down to zero and still nothing changes on my music playback. I've tried on a fresh install of Moode in case any custom settings were affecting it. RE: Unable to adjust balance via alsa - Tim Curtis - 07-15-2021 Reboot and post the Moode startup log. Code: moodeutl -l RE: Unable to adjust balance via alsa - PieEater - 07-15-2021 (07-15-2021, 11:56 AM)Tim Curtis Wrote: Reboot and post the Moode startup log. 20210715 130824 worker: -- Start 20210715 130824 worker: Successfully daemonized 20210715 130824 worker: Integrity check (passed) 20210715 130825 worker: File check (OK) 20210715 130825 worker: Session vacuumed 20210715 130825 worker: Session loaded 20210715 130825 worker: Debug logging (OFF) 20210715 130825 worker: -- Audio debug 20210715 130825 worker: ALSA cards: (0:b1 | 1:Headphones | 2:Audio | 3:empty 20210715 130825 worker: MPD config: (2:iFi (by AMR) HD USB Audio | mixeriFi by AMR HD USB Audio ) | card:2) 20210715 130826 worker: ALSA mixer actual (iFi by AMR HD USB Audio ) 20210715 130826 worker: ALSA iFi by AMR HD USB Audio volume set to (amixer: Unable to find simple control 'iFi by AMR HD USB Audio ',0) 20210715 130826 worker: -- System 20210715 130827 worker: Host (moode) 20210715 130827 worker: moOde (7.3.0 2021-06-25) 20210715 130827 worker: RaspiOS (10.6) 20210715 130827 worker: Kernel (5.4.77-v7l+ #1371) 20210715 130827 worker: Platform (Pi-4B 1.4 4GB) 20210715 130827 worker: ARM arch (armv7l, 32-bit kernel) 20210715 130827 worker: MPD ver (0.22.8_p0x3) 20210715 130827 worker: CPU gov (ondemand) 20210715 130827 worker: USB boot not available 20210715 130827 worker: File system expanded 20210715 130827 worker: HDMI port off 20210715 130827 worker: -- Network 20210715 130827 worker: eth0 exists 20210715 130827 worker: eth0 address not assigned 20210715 130827 worker: wlan0 exists 20210715 130827 worker: wifi country (GB) 20210715 130827 worker: wlan0 trying SSID (Python) 20210715 130827 worker: IP addr (192.168.1.202) 20210715 130827 worker: Netmask (255.255.255.0) 20210715 130827 worker: Gateway (192.168.1.1) 20210715 130827 worker: Pri DNS (192.168.1.1) 20210715 130827 worker: Domain (None) 20210715 130827 worker: Pi integrated wlan0 power save disabled 20210715 130827 worker: -- Audio config 20210715 130827 worker: ALSA card number (2) 20210715 130827 worker: MPD audio output (iFi (by AMR) HD USB Audio) 20210715 130828 worker: Audio formats (S16_LE, S32_LE, SPECIAL, S24_3LE, DSD_U32_BE) 20210715 130828 worker: ALSA mixer name (iFi by AMR HD USB Audio ) 20210715 130828 worker: MPD volume control (none) 20210715 130828 worker: Hdwr volume controller not detected 20210715 130828 worker: ALSA output mode (Default: plughw) 20210715 130828 worker: ALSA loopback (On) 20210715 130828 worker: Reset renderer active flags 20210715 130828 worker: CamillaDSP (Paul_03.yml) 20210715 130828 worker: -- MPD startup 20210715 130828 moode.php: MPD connect failed: cmd=(loadlib) 20210715 130828 moode.php: MPD connect failed: cmd=(lsinfo) 20210715 130828 worker: MPD started 20210715 130829 worker: MPD accepting connections 20210715 130829 worker: MPD output 1 ALSA Default (on) 20210715 130829 worker: MPD output 2 ALSA Bluetooth (off) 20210715 130829 worker: MPD output 3 HTTP Server (off) 20210715 130829 worker: MPD crossfade (off) 20210715 130829 worker: MPD ignore CUE files (yes) 20210715 130829 worker: -- Feature availability 20210715 130829 worker: Source select (available) 20210715 130829 worker: Source select (source: MPD) 20210715 130829 worker: Source select (output: iFi (by AMR) HD USB Audio) 20210715 130829 worker: Bluetooth (available) 20210715 130829 worker: Airplay renderer (available) 20210715 130829 worker: Spotify renderer (available) 20210715 130829 worker: Squeezelite (available) 20210715 130829 worker: RoonBridge renderer (not installed) 20210715 130829 worker: UPnP renderer (available: started) 20210715 130829 worker: DLNA server (available) 20210715 130829 worker: UPnP browser (available) 20210715 130829 worker: GPIO button handler (available) 20210715 130829 worker: Stream recorder (n/a) 20210715 130829 worker: -- Music sources 20210715 130829 worker: USB source (PiMusic) 20210715 130829 worker: NAS and UPnP sources (none configured) 20210715 130829 worker: -- Other 20210715 130829 worker: USB volume knob (Off) 20210715 130829 worker: Shellinabox SSH started 20210715 130829 worker: USB auto-mounter (udisks-glue) 20210715 130829 worker: LED0 (Off) 20210715 130829 worker: LED1 (Off) 20210715 130829 worker: Saved MPD vol level (0) 20210715 130829 worker: Preamp volume level (0) 20210715 130829 worker: MPD volume level (0) restored 20210715 130829 worker: ALSA volume level (None) 20210715 130829 worker: Auto-play (Off) 20210715 130829 worker: Maintenance interval (3 hours) 20210715 130829 worker: Screen saver activation (Never) 20210715 130829 worker: Session permissions (OK) 20210715 130829 worker: Watchdog started 20210715 130829 worker: Ready RE: Unable to adjust balance via alsa - Tim Curtis - 07-15-2021 It's prolly the use of parenthesis by the vendor in the mixer name thats causing an issue in the code that parses the mixer name "iFi (by AMR) HD USB Audio" What is output from command below? Code: sudo /var/www/command/util.sh get-mixername RE: Unable to adjust balance via alsa - PieEater - 07-15-2021 (07-15-2021, 12:33 PM)Tim Curtis Wrote: It's prolly the use of parenthesis by the vendor in the mixer name thats causing an issue in the code that parses the mixer name "iFi (by AMR) HD USB Audio" pi@moode:~ $ sudo /var/www/command/util.sh get-mixername (iFi (by AMR) HD USB Audio ) (iFi (by AMR) HD USB Audio ) pi@moode:~ $ Don't know if it is significant that this is different to both the MPD name and the Alsamixer name; 20210715 130827 worker: MPD audio output (iFi (by AMR) HD USB Audio) - No space before final bracket ? 20210715 130828 worker: ALSA mixer name (iFi by AMR HD USB Audio ) - Space before final bracket but no brackets around "by AMR" The error "Unable to find simple control 'iFi by AMR HD USB Audio ',0" does look to be because the brackets are missing around "by AMR"; pi@moode:~ $ amixer -c 2 scontrols Simple mixer control 'iFi (by AMR) HD USB Audio ',0 Simple mixer control 'iFi (by AMR) HD USB Audio ',1 RE: Unable to adjust balance via alsa - Tim Curtis - 07-15-2021 This confirms that moOde code is not able to correctly parse mixer names that contain embedded parenthesis. I'll add to the TODO list to fix this for upcoming 7.4.0 release. The space vs no space in the names printed in the log is not an issue although it would not be obvious why thats the case. Whats happening is that "MPD audio output" is using the device name "iFi (by AMR) HD USB Audio" which is correctly being parsed while "ALSA mixer name" is using the incorrectly parsed mixer name "iFi by AMR HD USB Audio " which is missing the parenthesis around "by AMR". Couple things: 1. Vendors continue to use mixer names with trailing space. This is a bad practice on their part but moOde code does correctly parse this. 2. Vendors should just use simple ALSA mixer names for example "Master", "Digital", etc. 3. It's not obvious to me why alsamixer is not working for this device. This app is completely separate from moOde code and so possibly it also is not able to handle the mixer name?? RE: Unable to adjust balance via alsa - PieEater - 07-15-2021 (07-15-2021, 02:16 PM)Tim Curtis Wrote: This confirms that moOde code is not able to correctly parse mixer names that contain embedded parenthesis. I'll add to the TODO list to fix this for upcoming 7.4.0 release. Thanks Tim - If I understand correctly you will hopefully be able to address an issue with the MoOde code in the next revision so that it can parse the correct mixer name to alsamixer do you think this will resolve the issue or is it a case of wait & see? Do you think it is worth flagging this issue with iFi, maybe they could consider a firmware revision without the parenthesis and trailing space in the mixer names as presumably this would resolve this and potentially other issues with Linux distros? RE: Unable to adjust balance via alsa - Tim Curtis - 07-15-2021 Just the parenthesis parsing issue in moOde code, I don't know whats happening with the alsamixer app in your particular case. This DAC does not work at all with moOde, correct? |