* mixer: fix cache coherency issue in multi-application scenario
[not found] <alsa-project/alsa-lib/pr/490@alsa-project.org>
2025-12-16 8:47 ` mixer: fix cache coherency issue in multi-application scenario GitHub pull_request - opened
@ 2025-12-16 8:54 ` GitHub pull_request - edited
1 sibling, 0 replies; 2+ messages in thread
From: GitHub pull_request - edited @ 2025-12-16 8:54 UTC (permalink / raw)
To: alsa-devel
alsa-project/alsa-lib pull request #490 was edited from DevreeseJorik:
Remove conditional hardware writes in set_volume_ops and set_switch_ops to ensure hardware state is always updated. This fixes an issue where setting controls to the same value repeatedly does nothing, even if the hardware state has changed due to actions from other applications.
---
Given this code has been in alsa-lib for 20 years, I assume there is a good reason for it, or perhaps a workaround exists that I could not find.
The issue we faced is that after an initial write, if the same value is written again, but in the meantime a different application altered the hardware state, the new change will not occur, yet no error code is provided. Also, reading the current state returns the current application's state, rather than the actual hardware state. Is alsa-lib not designed with multi-application uses in mind?
Request URL : https://github.com/alsa-project/alsa-lib/pull/490
Patch URL : https://github.com/alsa-project/alsa-lib/pull/490.patch
Repository URL: https://github.com/alsa-project/alsa-lib
^ permalink raw reply [flat|nested] 2+ messages in thread