Thank you for your donation!


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


Thread Closed 
Problem: Volume goes to Zero on change
#48
Lightbulb 
Hi,

I have an ES9038Q2M based DAC, and the problem occur on my end as well. 
I use a slightly custom driver; based on i-sabre-codec/i-sabre-q2m.

The interesting phenomenon on my config is:
- When I'm using either the vol.sh script or the 'mpc volume' command, or the GUI interface: I always have a problem with volume going to -127dB. (zero in this case). It's somehow random, which GUI setting is responsible for going to Zero, but if I click GUI volume up multiple times, sometimes the HW volume goes back to normal.

Stange thing: If I control the volume from the ALSA interface directly from console using 'amixer sset', then the hardware volume is always correct.

---
I tracked it down on the I2C bus using a logic analyzer, and found, that ALSA commands perform the following actions (as normal):
Vol1Reg : Read old value / Write new value
Vol2Reg : Read old value / Write new value

example logic analyzer log:
2023-01-23 15:02:36.416874+00:00: R,  Volume 1 (0xf) DATA:0x20
2023-01-23 15:02:36.417320+00:00: R,  Volume 2 (0x10) DATA:0x20
2023-01-23 15:02:36.417777+00:00: R,  Volume 1 (0xf) DATA:0x20
2023-01-23 15:02:36.418205+00:00: R,  Volume 2 (0x10) DATA:0x20
2023-01-23 15:02:36.418641+00:00: R,  Volume 1 (0xf) DATA:0x20
2023-01-23 15:02:36.419069+00:00: W,  Volume 1 (0xf) DATA:0x10
2023-01-23 15:02:36.419385+00:00: R,  Volume 2 (0x10) DATA:0x20
2023-01-23 15:02:36.419837+00:00: R,  Volume 1 (0xf) DATA:0x10
2023-01-23 15:02:36.420267+00:00: R,  Volume 2 (0x10) DATA:0x20
2023-01-23 15:02:36.420707+00:00: R,  Volume 1 (0xf) DATA:0x10
2023-01-23 15:02:36.421133+00:00: R,  Volume 2 (0x10) DATA:0x20
2023-01-23 15:02:36.421578+00:00: R,  Volume 1 (0xf) DATA:0x10
2023-01-23 15:02:36.422353+00:00: R,  Volume 2 (0x10) DATA:0x20
2023-01-23 15:02:36.422788+00:00: W,  Volume 2 (0x10) DATA:0x10
2023-01-23 15:02:36.423219+00:00: R,  Volume 1 (0xf) DATA:0x10
2023-01-23 15:02:36.423655+00:00: R,  Volume 2 (0x10) DATA:0x10

However, mpc console and GUI of moode sends the following actions on I2C:

Vol1Reg : Read old value / Write new value / Read new value / Write '0xff'
Vol2Reg: Read old value / Write new value / Read new value / Write '0xff'.

example logic analyzer log:
2023-02-02 08:13:19.268154+00:00: R,  Volume 1 (0xf) DATA:0xff
2023-02-02 08:13:19.268590+00:00: R,  Volume 2 (0x10) DATA:0xff
2023-02-02 08:13:19.269034+00:00: R,  Volume 1 (0xf) DATA:0xff
2023-02-02 08:13:19.269464+00:00: W,  Volume 1 (0xf) DATA:0x2
2023-02-02 08:13:19.269782+00:00: R,  Volume 2 (0x10) DATA:0xff
2023-02-02 08:13:19.270235+00:00: R,  Volume 1 (0xf) DATA:0x2
2023-02-02 08:13:19.270673+00:00: R,  Volume 2 (0x10) DATA:0xff
2023-02-02 08:13:19.271191+00:00: R,  Volume 1 (0xf) DATA:0x2
2023-02-02 08:13:19.271617+00:00: R,  Volume 2 (0x10) DATA:0xff
2023-02-02 08:13:19.272066+00:00: R,  Volume 1 (0xf) DATA:0x2
2023-02-02 08:13:19.272492+00:00: W,  Volume 1 (0xf) DATA:0xff
2023-02-02 08:13:19.272809+00:00: R,  Volume 2 (0x10) DATA:0xff
2023-02-02 08:13:19.273273+00:00: R,  Volume 1 (0xf) DATA:0xff
2023-02-02 08:13:19.273720+00:00: R,  Volume 2 (0x10) DATA:0xff

However, I was not successful tracking down the source of the problem. But I can reproduce it on moode 8.2.5. 
My assumption : it's not based on ALSA driver level. Either some configuration is bad, or the MPD volume control has some strange setting, and this MPD volume control invalidates somehow immediately a newly written volume value in the HW register.

At my setup, the problem occurs ONLY with hardware volume control. (Software volume works perfectly).
I use ALSA in 'direct hw' output mode.


Messages In This Thread
Volume goes to Zero on change - by schliden - 04-05-2022, 02:41 AM
RE: Volume goes to Zero on change - by dad33 - 04-05-2022, 07:51 AM
RE: Volume goes to Zero on change - by schliden - 04-05-2022, 12:46 PM
RE: Volume goes to Zero on change - by dad33 - 04-06-2022, 06:34 AM
RE: Volume goes to Zero on change - by Tim Curtis - 04-05-2022, 12:45 PM
RE: Volume goes to Zero on change - by Tim Curtis - 04-05-2022, 01:00 PM
RE: Volume goes to Zero on change - by schliden - 04-05-2022, 01:04 PM
RE: Volume goes to Zero on change - by Tim Curtis - 04-05-2022, 01:22 PM
RE: Volume goes to Zero on change - by arczar - 04-05-2022, 05:23 PM
RE: Volume goes to Zero on change - by Tim Curtis - 04-05-2022, 06:38 PM
RE: Volume goes to Zero on change - by arczar - 04-05-2022, 09:34 PM
RE: Volume goes to Zero on change - by DRONE7 - 04-05-2022, 10:57 PM
RE: Volume goes to Zero on change - by Tim Curtis - 04-06-2022, 05:17 PM
RE: Volume goes to Zero on change - by romain - 04-07-2022, 09:28 AM
RE: Volume goes to Zero on change - by romain - 04-11-2022, 09:23 AM
RE: Volume goes to Zero on change - by Tim Curtis - 04-11-2022, 11:49 AM
RE: Volume goes to Zero on change - by romain - 04-11-2022, 11:57 AM
RE: Volume goes to Zero on change - by romain - 04-11-2022, 11:59 AM
RE: Volume goes to Zero on change - by arczar - 04-07-2022, 06:14 PM
RE: Volume goes to Zero on change - by Tim Curtis - 04-07-2022, 06:29 PM
RE: Volume goes to Zero on change - by dad33 - 04-08-2022, 02:42 PM
RE: Volume goes to Zero on change - by arczar - 04-08-2022, 08:46 PM
RE: Volume goes to Zero on change - by Tim Curtis - 04-08-2022, 09:14 PM
RE: Volume goes to Zero on change - by Tim Curtis - 04-11-2022, 01:52 PM
RE: Volume goes to Zero on change - by romain - 04-12-2022, 09:07 AM
RE: Volume goes to Zero on change - by schliden - 04-13-2022, 04:32 AM
RE: Volume goes to Zero on change - by romain - 05-01-2022, 01:32 PM
RE: Volume goes to Zero on change - by Tim Curtis - 01-10-2023, 01:30 PM
RE: Volume goes to Zero on change - by dad33 - 04-11-2022, 02:22 PM
RE: Volume goes to Zero on change - by Tim Curtis - 04-11-2022, 02:46 PM
RE: Volume goes to Zero on change - by schliden - 04-12-2022, 02:55 AM
RE: Volume goes to Zero on change - by dad33 - 01-10-2023, 10:16 AM
RE: Volume goes to Zero on change - by Tim Curtis - 01-10-2023, 01:32 PM
RE: Volume goes to Zero on change - by dad33 - 01-10-2023, 03:12 PM
RE: Volume goes to Zero on change - by Tim Curtis - 01-10-2023, 04:14 PM
RE: Volume goes to Zero on change - by dad33 - 01-10-2023, 06:33 PM
RE: Volume goes to Zero on change - by Tim Curtis - 01-10-2023, 06:50 PM
RE: Volume goes to Zero on change - by dad33 - 01-10-2023, 07:08 PM
RE: Volume goes to Zero on change - by Tim Curtis - 01-10-2023, 07:48 PM
RE: Volume goes to Zero on change - by dad33 - 01-10-2023, 07:58 PM
RE: Volume goes to Zero on change - by arczar - 01-11-2023, 08:56 PM
RE: Volume goes to Zero on change - by Tim Curtis - 01-11-2023, 10:39 PM
RE: Volume goes to Zero on change - by dad33 - 01-16-2023, 09:22 AM
RE: Volume goes to Zero on change - by dad33 - 01-27-2023, 08:02 AM
RE: Volume goes to Zero on change - by dad33 - 01-31-2023, 04:07 PM
RE: Volume goes to Zero on change - by Tim Curtis - 01-31-2023, 04:28 PM
RE: Volume goes to Zero on change - by meszarosa - 02-02-2023, 12:56 PM
RE: Volume goes to Zero on change - by Tim Curtis - 02-02-2023, 01:52 PM
RE: Volume goes to Zero on change - by dad33 - 02-04-2023, 04:32 PM
RE: Volume goes to Zero on change - by meszarosa - 02-09-2023, 05:31 PM
RE: Volume goes to Zero on change - by Tim Curtis - 02-09-2023, 05:53 PM
RE: Volume goes to Zero on change - by chano22000 - 12-05-2024, 03:02 PM
RE: Volume goes to Zero on change - by Tim Curtis - 12-05-2024, 03:12 PM

Forum Jump: